Can this be done?

J

jkclub2000

I need a formula at cell A11 to pick up the last non-empty value of the
range (A1-A10). For example

A1 101
A2 102
A3 103
A4 104
A5 105
A6
A7
A8
A9
A10
A11 -> 105
----------

A1 101
A2 102
A3 103
A4 104
A5 105
A6 106
A7 107
A8
A9
A10
A11 -> 107

Thanks in advance for any help!
 
B

Bob Phillips

=INDEX(A1:A11,MAX(IF(LEN(A1:A11)>0,ROW(A1:A11))))

which is an array formula, so commit with Ctrl-Shift-Enter


--

HTH

RP
(remove nothere from the email address if mailing direct)
 
J

JulieD

Hi Bob

changing the formula to
=INDEX(A1:A10,MAX(IF(LEN(A1:A10)>0,ROW(A1:A10))))

might suit the OP better :)

Cheers
JulieD
 
B

Bob Phillips

Lol. In my testing I used A1:A9 (who knows why), but as I was replying I saw
the 11, so changed it. One would hope the OP had the nous to figure that.

Regards

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top