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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

DonkeyOte

MrExcel MVP
Joined
Sep 6, 2002
Messages
9,124
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
 
Upvote 0

Forum statistics

Threads
1,186,327
Messages
5,957,229
Members
438,294
Latest member
Soikeo79

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