Multiple If statement
If you insist on doing it using IF then the following works:
=IF(A1=1,B1,IF(A1=2,B2,IF(A1=3,B3,"No Match")))
"John Gregory" wrote:
I am trying to write a "IF" test to do the following:
If the value of A1 = 1, then cell = B1
If the value of A1 = 2, then cell = B2
If the value of A1 = 3, then cell = B3
The cell A1 is used as the selector, and I have data that is in each of the
B cells (too much data for a list). I have tried data validation, but could
not get it to work.
Any ideas?
|