#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 44
Default last negative cell

Hi.
I have a column that contain numbers (either + or -). I want to find the
last cell that contains a -ve value and return the corresponding date from
the adjoining column

e.g

Col A Col B
1-Apr-2010 -1000
2-Apr-2010 -1000
3-Apr-2010 +500
4-Apr-2010 -1000
5-Apr-2010 +700

In this illustration, i did like to have the value 4-Apr-2010 returned

Can anyone please help

Regards

Nikhil
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 527
Default last negative cell

Try this array formula (Entered with CTRL + SHFT + ENTER)

=INDEX(A:A,MATCH(MAX(B2:B65536<0),B2:B65536)+1)


Regards
Peter


"Nikhil" wrote:

Hi.
I have a column that contain numbers (either + or -). I want to find the
last cell that contains a -ve value and return the corresponding date from
the adjoining column

e.g

Col A Col B
1-Apr-2010 -1000
2-Apr-2010 -1000
3-Apr-2010 +500
4-Apr-2010 -1000
5-Apr-2010 +700

In this illustration, i did like to have the value 4-Apr-2010 returned

Can anyone please help

Regards

Nikhil

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default last negative cell

=LOOKUP(2,1/(B1:B100<0),A1:A100)



"Nikhil" wrote:

Hi.
I have a column that contain numbers (either + or -). I want to find the
last cell that contains a -ve value and return the corresponding date from
the adjoining column

e.g

Col A Col B
1-Apr-2010 -1000
2-Apr-2010 -1000
3-Apr-2010 +500
4-Apr-2010 -1000
5-Apr-2010 +700

In this illustration, i did like to have the value 4-Apr-2010 returned

Can anyone please help

Regards

Nikhil

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
fill cell with colour if preceding cell is a negative value POP Excel Discussion (Misc queries) 4 April 27th 09 05:35 PM
want to equal a cell number in a different cell with a negative si gma Excel Worksheet Functions 8 October 21st 08 07:48 PM
Having the contains of a cell always be negative BW Excel Discussion (Misc queries) 5 June 28th 08 01:16 AM
How to find each cell with non-negative value? [email protected] Excel Discussion (Misc queries) 7 May 15th 07 06:23 AM
zero on negative cell help Excel Discussion (Misc queries) 1 July 28th 06 06:37 PM


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