last value "greater than zero" in a range

T

TSW632

Hi folks,

I have formulae in every other cell from F70:AB70. I'm looking for a
way to return the last value greater than zero contained in that
range. Can I do this without editing VBA?

Thanks for any assistance.

Troy
 
R

Rick Rothstein \(MVP - VB\)

There is probably a simpler formula, but until someone posts it...

=INDEX(70:70,,SUMPRODUCT(MAX(COLUMN(F70:AB70)*(F70:AB70<>0)*(F70:AB70<>""))))

Rick
 
B

Bob Phillips

=LOOKUP(2,1/(F70:AB70>0),F70:AB70)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
T

TSW632

=LOOKUP(2,1/(F70:AB70>0),F70:AB70)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)









- Show quoted text -

Awesome!!! They both work. Thanks Rick and 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