To streamline your input, have an input cell that defines what knowns are being input, similar to the triangle solver that IRstuff provided a link for.
That input cell could be set up with data validation for 1,2,3,4 for the 4 different combiination types of input known data.
The function CHOOSE...