=IF((JANUARY!D6=K3),JANUARY!B6,"") This is the formula I'm using to try and pull information from the January tab, and place additional information on a different tab. This formula works, however, I need it to look for a specific value in two cells, and not just one. Basically, what I need the forumala to translate is, if the name Higgenbotham shows up on the January tab, in the cell D6 OR the cell E6,(not both at the same time), then I need the information from cell January tab, cell B6 to show up on the K1 tab in the C6 cell.
1 Answer
What's neede is an exclusive or (XOR):
=IF(XOR(JANUARY!D6="Higgenbotham", JANUARY!E6="Higgenbotham"),JANUARY!B6,"")
A XOR is essentially two AND
s wrapped in an OR
=IF(OR(AND(JANUARY!D6="Higgenbotham",JANUARY!E6<>"Higgenbotham"),AND(JANUARY!D6<>"Higgenbotham",JANUARY!E6="Higgenbotham")),JANUARY!B6,"")
IF(XOR(JANUARY!D6="Higgenbotham", JANUARY!E6="Higgenbotham"),JANUARY!B6,"")
?Evaluate
(on theFormulas tab
) to see where the problem is might help?