Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Nested IF statement

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Nested IF statement

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), ""))

--
Biff
Microsoft Excel MVP


"Mary Lou" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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)))
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Nested IF statement

THANK YOU - PERFECT!!!

"Glenn" wrote:

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)))
.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Nested IF statement

You're welcome!

Mary Lou wrote:
THANK YOU - PERFECT!!!

"Glenn" wrote:

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)))
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF Statement or nested IF Rahim Excel Worksheet Functions 4 October 5th 09 04:04 PM
Nested IF/OR/AND statement Gayla Excel Discussion (Misc queries) 0 June 20th 07 07:46 PM
Nested IF Statement aposatsk Excel Discussion (Misc queries) 1 August 1st 06 05:19 PM
Nested IF Statement aposatsk Excel Discussion (Misc queries) 1 August 1st 06 05:16 PM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM


All times are GMT +1. The time now is 08:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"