Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
AEICHEN
 
Posts: n/a
Default Nested IF - Work Around for 7 nest Max

I have consecutive dates in column B and integers in column D. In column B,
there can be anywhere from 0 to 10 dates listed and in column D, there may or
may not be an integer associated with it. If column B is empty, column D
will also be empty.

I need to populate a cell with the date in column B that matches the last
integer in Column D.

For Example, if I have B1:1/1/04, B2:1/2/04, B3:1/3/04, B4:1/4/04 and
D1:900, D2:800, D3:700, D4: Empty. I'm looking for a formula that will
return 1/3/04

Previously, my maximum rows was 5 and I had this formula:
=IF(D5<0,B5,IF(D4<0,B4,IF(D3<0,B3,IF(D2<0,B2,I F(D1<0,B1,"n/a")))))

Now I'm being asked to expand this for 10 rows and with the 7 nested
limitation, I'm unable to. Is there a different formula I can use or a way
to get around this?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=INDEX(B1:B100,COUNTA(D1:D100))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"AEICHEN" wrote in message
...
I have consecutive dates in column B and integers in column D. In column

B,
there can be anywhere from 0 to 10 dates listed and in column D, there may

or
may not be an integer associated with it. If column B is empty, column D
will also be empty.

I need to populate a cell with the date in column B that matches the last
integer in Column D.

For Example, if I have B1:1/1/04, B2:1/2/04, B3:1/3/04, B4:1/4/04 and
D1:900, D2:800, D3:700, D4: Empty. I'm looking for a formula that will
return 1/3/04

Previously, my maximum rows was 5 and I had this formula:
=IF(D5<0,B5,IF(D4<0,B4,IF(D3<0,B3,IF(D2<0,B2,I F(D1<0,B1,"n/a")))))

Now I'm being asked to expand this for 10 rows and with the 7 nested
limitation, I'm unable to. Is there a different formula I can use or a

way
to get around this?



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
Is there away to keep "auto save" from jumping to the first work sheet in the work book? Marc New Users to Excel 2 April 21st 05 01:27 AM
How to copy the work sheets from different workbooks into one? Sesh Excel Discussion (Misc queries) 1 April 15th 05 06:03 PM
How to get saved old saved work that was saved over? Maral Excel Discussion (Misc queries) 1 February 20th 05 08:59 PM
Nested if, sum & vlookup Function Trying to excel in life but need help Excel Worksheet Functions 4 January 13th 05 07:29 PM
Change Path names in copied work book jheaney Excel Worksheet Functions 2 November 18th 04 07:29 PM


All times are GMT +1. The time now is 02:46 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"