PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Charting need a formula

Reply

need a formula

 
Thread Tools Rate Thread
Old 11-02-2004, 02:47 AM   #1
Bill H.
Guest
 
Posts: n/a
Default need a formula


Is there a formula that can return the last non-zero number in a column of
numbers?

I have a column of numbers that I add to daily, and I need to know the value
of the last number in that column for use in another formula.

Thanks!
--
Bill




  Reply With Quote
Old 11-02-2004, 03:35 AM   #2
Debra Dalgleish
Guest
 
Posts: n/a
Default Re: need a formula

The following formula will return the last non-zero number in cells
A1:A20 --

=INDEX(A:A,MAX((A1:A20<>0)*ROW(INDIRECT("1:20"))))

It's an array formula -- type the formula in the cell, then hold the
Ctrl + Shift keys, and press the Enter key.

Bill H. wrote:
> Is there a formula that can return the last non-zero number in a column of
> numbers?
>
> I have a column of numbers that I add to daily, and I need to know the value
> of the last number in that column for use in another formula.
>
> Thanks!



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  Reply With Quote
Old 11-02-2004, 06:45 AM   #3
Bill H.
Guest
 
Posts: n/a
Default Re: need a formula

thanks!


"Debra Dalgleish" <dsd@contexturesXSPAM.com> wrote in message
news:4029A319.2040404@contexturesXSPAM.com...
> The following formula will return the last non-zero number in cells
> A1:A20 --
>
> =INDEX(A:A,MAX((A1:A20<>0)*ROW(INDIRECT("1:20"))))
>
> It's an array formula -- type the formula in the cell, then hold the
> Ctrl + Shift keys, and press the Enter key.
>
> Bill H. wrote:
> > Is there a formula that can return the last non-zero number in a column

of
> > numbers?
> >
> > I have a column of numbers that I add to daily, and I need to know the

value
> > of the last number in that column for use in another formula.
> >
> > Thanks!

>
>
> --
> Debra Dalgleish
> Excel FAQ, Tips & Book List
> http://www.contextures.com/tiptech.html
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off