Selected Answer
No, it doesn't make sense. At least, it isn't clear what you want but perhaps this will help. Consider
=COUNTA(A2:B2)
This function will return 0 if both cells are blank, 1 if one of them is blank and 2 if both have something in them. Therefore the formula below would tell you when there is a value in either of the two cells you are interested in.
=IF(COUNTA(A2:B2)=1,"Got one,"Have none or two")
You might tweak the formula to do what you need it to do. Note that the "Value" could be a number or a text string.