View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default Last Value Greater Than Zero

=LOOKUP(2,1/(A1:A10000),A1:A1000)

--
HTH

Bob

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

"Anto111" wrote in message
...
Hi Guys,

I need to find the last value within a column range that is greater than
zero.

For example, Within A1:A8 I have values of 1,0,3,5,6,0,0,0 I therefore
need
excel to recognise the number 6 and ignore the subsequent 3 zero's.

I also need this to update with new data, so for example If A9 is zero
then
continue to recognise the last value as 6, but if A9 is 2 then recognise
the
most recent value as 2.

Sorry if the example is not clear.

Kind regards,

Ant