Get value in last non-zero value cell in column
On Sun, 29 Jul 2007 08:02:28 -0700, mjones
wrote:
Hi,
I can find the first empty cell in a column, but I'm hoping someone
can help me when the cell 'looks empty', but there's a formula in the
cell that results in zero.
Specifically, I'm trying to put the value in cell E34 in another
worksheet called AP-AR. The value should be the last non-zero result
from formuals in column H starting from H9 and going down.
Cells from H9 down have formulas in them like this =IF(AND(F14=0,
G14=0), 0, +H13-F14+G14). They're cumulative totals of credits and
debits with the last H column value being the bank balance.
Thanks everyone. What a wonderful resource this newsgroup is. I've
learned so much and met so many nice people! I do my share of
volunteering in other ways and I hope your kind help here comes back
to you, too.
Michele J. Jones, PMP
This array-entered formula will return the last non-zero numeric value in your
range:
=LOOKUP(9.99E+307,IF(H9:H65535=0,"",H9:H65535))
To array-enter a formula, hold down <ctrl<shift while hitting <enter. Excel
will place braces {...} around the formula.
--ron
|