Return first non blank cell from a given point

raymaster98

Board Regular
Joined
Oct 28, 2009
Messages
212
In Excel 2003, I am using the following formula to return a time:

{=OFFSET(INDEX(BW5:BW24,MATCH(TRUE,BW5:BW24<>"",0)),0,-5)}

I need to modify the above formula to look for the first non blank cell above that point. Any help would be most appreciated. Thanks, Kenny
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

DonkeyOte

MrExcel MVP
Joined
Sep 6, 2002
Messages
9,123
I'm a tad confused - presumably you're saying the first non-blank above the range returned by the OFFSET ?

I base the above on the fact that the existing function is finding the first non-blank in BW range so by definition there are no non-blanks above that cell (other than perhaps in BW1:BW4)

If so... perhaps you could use:

=LOOKUP(9.99E+307,BR5:INDEX(BR5:BR24,MAX(1,MATCH(TRUE,INDEX(BW5:BW24<>"",0),0)-1)))

The above assume BR5:BR24 contain numerics - based on Time comment
 

Watch MrExcel Video

Forum statistics

Threads
1,133,564
Messages
5,659,567
Members
418,508
Latest member
deepakfer

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top