Nested IF statement

M

Mary Lou

I am trying to do a nested if statement with VLookup function. Here is an
example:

=IF(C156="NJ",(VLOOKUP($A156,Nigel!$A$10:$S$24,8,FALSE))),IF(C156="JAM",(VLOOKUP($A156,JAM!$A$10:$S$24,8,FALSE)))

Not sure what i am doing wrong. the first statement works (Nigel). for the
second one i get #VALUE

can someone help me? thanks
 
T

T. Valko

You have too many unnecessay ( ).

=IF(C156="NJ",VLOOKUP($A156,Nigel!$A$10:$S$24,8,0),IF(C156="JAM",VLOOKUP($A156,Jam!$A$10:$S$24,8,0),""))
 
G

Glenn

Mary said:
I am trying to do a nested if statement with VLookup function. Here is an
example:

=IF(C156="NJ",(VLOOKUP($A156,Nigel!$A$10:$S$24,8,FALSE))),IF(C156="JAM",(VLOOKUP($A156,JAM!$A$10:$S$24,8,FALSE)))

Not sure what i am doing wrong. the first statement works (Nigel). for the
second one i get #VALUE

can someone help me? thanks


Try this:

=IF(C156="NJ",VLOOKUP($A156,Nigel!$A$10:$S$24,8,FALSE),IF(C156="JAM",VLOOKUP($A156,JAM!$A$10:$S$24,8,FALSE)))
 
M

Mary Lou

THANK YOU - PERFECT!!!

Glenn said:
Try this:

=IF(C156="NJ",VLOOKUP($A156,Nigel!$A$10:$S$24,8,FALSE),IF(C156="JAM",VLOOKUP($A156,JAM!$A$10:$S$24,8,FALSE)))
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top