Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
MickJJ
 
Posts: n/a
Default Display value if next cell below is zero

I have two sets of data starting at cell ref A41, Col A displaying JAN, FEB,
MAR, APR...etc down to DEC, Col B diplaying YTD values from other workbooks:

JAN 2500
FEB 3000
MAR 4000
APR 2750
MAY 0
Etc
etc

I wish to display in CEll ref Q16 the YTD value of the month before the 1st
0 (zero) value in col B (in my example above the value displayed would be
2750...is there any way I can do this?

There will never be a 0 value shown above a value greater than 0..i.e. once
the year starts there will always be a value in JAN and the data will be
built up over the following months.

Regards

  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
try
=INDEX(B41:B100,MATCH(0,B41:B100,0)-1))

--
Regards
Frank Kabel
Frankfurt, Germany
"MickJJ" schrieb im Newsbeitrag
...
I have two sets of data starting at cell ref A41, Col A displaying JAN,
FEB,
MAR, APR...etc down to DEC, Col B diplaying YTD values from other
workbooks:

JAN 2500
FEB 3000
MAR 4000
APR 2750
MAY 0
Etc
etc

I wish to display in CEll ref Q16 the YTD value of the month before the
1st
0 (zero) value in col B (in my example above the value displayed would be
2750...is there any way I can do this?

There will never be a 0 value shown above a value greater than 0..i.e.
once
the year starts there will always be a value in JAN and the data will be
built up over the following months.

Regards



  #3   Report Post  
MickJJ
 
Posts: n/a
Default

Hi Frank

Thanks for the help, this is exactly what I needed.

Regards

Mick

"Frank Kabel" wrote:

Hi
try
=INDEX(B41:B100,MATCH(0,B41:B100,0)-1))

--
Regards
Frank Kabel
Frankfurt, Germany
"MickJJ" schrieb im Newsbeitrag
...
I have two sets of data starting at cell ref A41, Col A displaying JAN,
FEB,
MAR, APR...etc down to DEC, Col B diplaying YTD values from other
workbooks:

JAN 2500
FEB 3000
MAR 4000
APR 2750
MAY 0
Etc
etc

I wish to display in CEll ref Q16 the YTD value of the month before the
1st
0 (zero) value in col B (in my example above the value displayed would be
2750...is there any way I can do this?

There will never be a 0 value shown above a value greater than 0..i.e.
once
the year starts there will always be a value in JAN and the data will be
built up over the following months.

Regards




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
Display answer only in another cell of one containing a formula Mally Excel Discussion (Misc queries) 5 January 21st 05 01:07 PM
How do I set a cell to "Empty" so that it does not display in a ch Ian Charts and Charting in Excel 3 January 7th 05 01:12 AM
Display actual contents of cell xmasbob Excel Discussion (Misc queries) 1 December 6th 04 05:09 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
how to display heading of column corresponding to the cell angelrain Excel Worksheet Functions 2 November 2nd 04 04:57 PM


All times are GMT +1. The time now is 06:00 PM.

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

About Us

"It's about Microsoft Excel"