Based on two input conditions, I wish to be able to output 1 of 4 output values. For example when checking for matches between two tables I would like to be able to access a function like:
=TRUTHTABLE(condition1,condition2,true-true,true-false,false-true,false-false)
to do something like:
=TRUTHTABLE(MATCH(value,array1,0),MATCH(value,array2,0),"Good","Missing","Redundant","Good")
The two options I've come up with so far are:
=IF(condition1,IF(condition2,true-true,true-false),IF(condition2,false-true,false-false))
or:
=CHOOSE(1--condition1*2--condition2,false-false,false-true,true-false,true-true)
Option 1 is cumbersome to maintain due to the repetition of condition2, and option 2 is convoluted to understand for future maintainers. I'm currently tending toward option 2, but does anyone know any better option?