ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   last value "greater than zero" in a range (https://www.excelbanter.com/excel-worksheet-functions/187603-last-value-greater-than-zero-range.html)

TSW632

last value "greater than zero" in a range
 
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

Rick Rothstein \(MVP - VB\)[_452_]

last value "greater than zero" in a range
 
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


"TSW632" wrote in message
...
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



Bob Phillips

last value "greater than zero" in a range
 
=LOOKUP(2,1/(F70:AB700),F70:AB70)

--
---
HTH

Bob


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



"TSW632" wrote in message
...
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




TSW632

last value "greater than zero" in a range
 
On May 15, 11:47*am, "Bob Phillips" wrote:
=LOOKUP(2,1/(F70:AB700),F70:AB70)

--
---
HTH

Bob

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

"TSW632" wrote in message

...



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- Hide quoted text -


- Show quoted text -


Awesome!!! They both work. Thanks Rick and Bob!


All times are GMT +1. The time now is 08:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com