View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Glenn Glenn is offline
external usenet poster
 
Posts: 1,240
Default Nested IF statement

Mary Lou wrote:
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,F ALSE))),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,FA LSE),IF(C156="JAM",VLOOKUP($A156,JAM!$A$10:$S$24,8 ,FALSE)))