# RETURN LAST VALUE

Hi,
I would like a formula to return the last non zero non blank value in column AM on SHEET2
Many thanks
Ian
###### Who is Participating?

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
HI,

pls try ((as an array formula Ctrl-Shift-Enter)
``````=INDEX(Sheet2!AM:AM,MAX(IF(Sheet2!AM:AM<>0,ROW(Sheet2!AM:AM),"")))
``````
Regards
1
Excel & VBA ExpertCommented:
You may try something like this...

``````=INDEX(AM:AM,MATCH(9^9,AM:AM))
``````
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

retiredAuthor Commented:
Please note it is for sheet2
0
retiredAuthor Commented:
Neeraj I've added SHEET2! to the formula
0
Excel & VBA ExpertCommented:
Or you may replace the lookup value in the Match function with 1E+207 if any of the numbers in column AM may equal to 387420489 (9^9).

``````=INDEX(AM:AM,MATCH(1E+207,AM:AM))
``````
1
Excel & VBA ExpertCommented:
In that case, try this... :)

=INDEX(Sheet2!AM:AM,MATCH(1E+207,Sheet2!AM:AM))
1
retiredAuthor Commented:
Thanks Neeraj it works. I prefer this formula to a curly bracket one
Ian
0
Excel & VBA ExpertCommented:
You're welcome Ian! Glad it worked as desired. :)
1
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.