|
|
|
date: Fri, 3 Oct 2008 22:38:01 -0700,
group: microsoft.public.excel.newusers
back
Re: last value
On Fri, 3 Oct 2008 22:38:01 -0700, Satya
wrote:
>Help me with a function which will return the value of the last cell >0 in a
>series of non contiguous cells in the same row.
>
>for example:
>
> D I N S X AC AH
> AM
>1 2 1 3 0 0 0 0
> =function?
>
>I want the last value >0 to return in AM1
>
>Thanks in advance
Normally entered:
=LOOKUP(2,1/(A1:AL1<>0),A1:AL1)
will check every cell.
If you only want to check the cells in the seven columns you list above, then
one way would be to download and install Longre's free morefunc.xll add-in from
http://xcell05.free.fr
and use:
=LOOKUP(2,1/ARRAY.JOIN(D1,I1,N1,S1,X1,AC1,AH1),ARRAY.JOIN(D1,I1,N1,S1,X1,AC1,AH1))
--ron
date: Sat, 04 Oct 2008 07:31:50 -0400
author: Ron Rosenfeld
|
|