return the value from the first non-blank cell in column

neveu

Board Regular
Joined
Jan 27, 2009
Messages
225
hello all,
i would need help in retrieving very fast what is the value in the first non-blank cell in a column. the data is organized as pivot tabel.

i though of applying the isblank field but then i would have a lot to work as i have to apply it individually to all the columns i have [31 columns]

does anyone else have a simpler approach?

thanks in advance,
neveu
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Not sure of your data layout, but something like this? (confirmed with Ctrl+Shift+Enter)

=INDEX(A1:A20,MIN(IF(A1:A20<>"",ROW(A1:A20))))
 
Upvote 0
Control+shift+enter, not just enter:

=INDEX(A1:A20,MATCH(TRUE,A1:A20<>"",0))

Hi, I have asked this a few times but never had a response! What exactly does the ctrl/Shift/Enter combo do to Excel? I have used a curly brace expression before but not sure what it does....

Sorry to jack the thread BTW! :)
 
Upvote 0
could you also advise how to the same thing but to return the value in last non-blank cell?
 
Upvote 0
Hi, I have asked this a few times but never had a response! What exactly does the ctrl/Shift/Enter combo do to Excel? I have used a curly brace expression before but not sure what it does....

Sorry to jack the thread BTW! :)

The key combination signals Excel that the formula is of "array formula" type , not an ordinary (range) formula. Have a look at "array formulas" in Excel's Help.
 
Upvote 0
could you also advise how to the same thing but to return the value in last non-blank cell?

=LOOKUP(9.99999999999999E+307,A1:A20)

if a number is expected.

Otherwise, one of:

=LOOKUP(9.99999999999999E+307,SEARCH("*",A1:A20),A1:A20)

=LOOKUP(REPT("z",255),A1:A20)
 
Upvote 0

Forum statistics

Threads
1,223,992
Messages
6,175,826
Members
452,673
Latest member
LaMiaAvy

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
Back
Top