Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 360
Default 3 deep nested if gets the same value on every cell.

Hi thanks to you I have a formula to find nested ifs. I am currently on the
last sheet 7-24-2007.
If there is a #na in the last column then I want it to look for the value on
sheet 7/17/2007. If not there I want it to look on the sheet 7/03 in the I
column. It would actually be nice if it could just check the last 3 sheets
relatively since they add a new one each week? There are different numbers
of rows but the same column.

In any case I cannot get this nested if 3 deep to work. I get the same
value for each cell instead of it matching on a few of them??

=IF(ISNA(VLOOKUP(B4,'07-17-07'!B4:I70,FALSE)),
IF(ISNA(VLOOKUP(B4,'07-10-07'!B4:I66,FALSE)), VLOOKUP(B4,'07-03-07'!B4:I66,
8, FALSE), VLOOKUP(B4,'07-10-07'!B4:I66, 8, FALSE)),
VLOOKUP(B4,'07-17-07'!B4:I70,8,FALSE))


tia,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default 3 deep nested if gets the same value on every cell.

Couple of "typos" in the first two lookups but it worked fine for me.

Not sure what you mean when you say ....

I get the same value for each cell instead of it matching on a few of them??



=IF(ISNA(VLOOKUP(B4,'07-17-07'!B4:I70,8,FALSE)),
IF(ISNA(VLOOKUP(B4,'07-10-07'!B4:I66,8,FALSE)), VLOOKUP(B4,'07-03-07'!B4:I66,
8, FALSE), VLOOKUP(B4,'07-10-07'!B4:I66, 8, FALSE)),
VLOOKUP(B4,'07-17-07'!B4:I70,8,FALSE))


"Janis" wrote:

Hi thanks to you I have a formula to find nested ifs. I am currently on the
last sheet 7-24-2007.
If there is a #na in the last column then I want it to look for the value on
sheet 7/17/2007. If not there I want it to look on the sheet 7/03 in the I
column. It would actually be nice if it could just check the last 3 sheets
relatively since they add a new one each week? There are different numbers
of rows but the same column.

In any case I cannot get this nested if 3 deep to work. I get the same
value for each cell instead of it matching on a few of them??

=IF(ISNA(VLOOKUP(B4,'07-17-07'!B4:I70,FALSE)),
IF(ISNA(VLOOKUP(B4,'07-10-07'!B4:I66,FALSE)), VLOOKUP(B4,'07-03-07'!B4:I66,
8, FALSE), VLOOKUP(B4,'07-10-07'!B4:I66, 8, FALSE)),
VLOOKUP(B4,'07-17-07'!B4:I70,8,FALSE))


tia,

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
nested if based on nested if in seperate sheet. how? scouserabbit Excel Worksheet Functions 5 March 2nd 07 04:03 PM
IF statement (non nested) that compares cell value against range r2d3 Excel Worksheet Functions 4 August 10th 06 01:11 PM
too deep formula line Light Excel Discussion (Misc queries) 5 March 17th 06 07:16 PM
Nested IF statement with cell range reference Joe Spicer Excel Worksheet Functions 5 December 15th 05 07:21 PM
color of a cell within a nested if function Ian Excel Discussion (Misc queries) 2 May 22nd 05 12:57 AM


All times are GMT +1. The time now is 12:51 PM.

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"