Function

E

excelblack

Hi,

I'd like to know if there is a function that can give me the last valid
result in a list. It can be in VBA.

Thank's
 
P

Peo Sjoblom

If there are no blank rows involved you can use something like

=OFFSET(A1,COUNTA(A:A)-1,)

if blanks can be involved

=INDEX(A:A,MAX((A1:A1000<>"")*ROW(INDIRECT("1:1000"))))

entered with ctrl + shift & enter (change the size if you expect more than
1000 rows)
 
J

Jason Morin

"Valid" can mean many things. Try:

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

Array-entered, meaning press ctrl/shift/enter. Change the
range to meet your needs.

HTH
Jason
Atlanta, GA
 

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