Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Display the last non-zero value in a list of numbers

I am trying to find the last entered value in a list of basic weight data. I
enter new numeric values to the list on a daily basis, but would like to
always show the last entered value in another cell also. The list also
contains zero values, that I want to exclude or ignore from my result, e.g.

0
300
250
350
375
0
0

would always return 375, as the last value in the list (which will also
always be positive) it's also the VALUE I need, not the position in the list.

Regards,

IvanM
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Display the last non-zero value in a list of numbers

On Sat, 14 Oct 2006 04:19:01 -0700, IvanM
wrote:

I am trying to find the last entered value in a list of basic weight data. I
enter new numeric values to the list on a daily basis, but would like to
always show the last entered value in another cell also. The list also
contains zero values, that I want to exclude or ignore from my result, e.g.

0
300
250
350
375
0
0

would always return 375, as the last value in the list (which will also
always be positive) it's also the VALUE I need, not the position in the list.

Regards,

IvanM


Something like:

=LOOKUP(2,1/(-A1:A1000<0),A1:A1000)

should work.


--ron
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Display the last non-zero value in a list of numbers

=LOOKUP(2,1/(A1:A1000<0),A1:A1000)

works for me

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Ron Rosenfeld" wrote in message
...
On Sat, 14 Oct 2006 04:19:01 -0700, IvanM


wrote:

I am trying to find the last entered value in a list of basic weight

data. I
enter new numeric values to the list on a daily basis, but would like to
always show the last entered value in another cell also. The list also
contains zero values, that I want to exclude or ignore from my result,

e.g.

0
300
250
350
375
0
0

would always return 375, as the last value in the list (which will also
always be positive) it's also the VALUE I need, not the position in the

list.

Regards,

IvanM


Something like:

=LOOKUP(2,1/(-A1:A1000<0),A1:A1000)

should work.


--ron



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Display the last non-zero value in a list of numbers

On Sat, 14 Oct 2006 12:52:21 +0100, "Bob Phillips"
wrote:

=LOOKUP(2,1/(A1:A1000<0),A1:A1000)

works for me


Yes, of course. <sound of slap to forehead

Actually,

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

should work also, for non-zero numeric values.


--ron
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Display the last non-zero value in a list of numbers

Actually, that is what I meant, I don't know why I copied the <0 (slap for
me too <g)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Ron Rosenfeld" wrote in message
...
On Sat, 14 Oct 2006 12:52:21 +0100, "Bob Phillips"
wrote:

=LOOKUP(2,1/(A1:A1000<0),A1:A1000)

works for me


Yes, of course. <sound of slap to forehead

Actually,

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

should work also, for non-zero numeric values.


--ron



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to auto insert rows in a list of numbers zdek Excel Discussion (Misc queries) 3 June 16th 06 10:19 PM
Cells within a list to display a certain text but have different v GEM Excel Discussion (Misc queries) 1 June 9th 06 06:10 AM
find sum in list of of numbers Ron Coderre Excel Discussion (Misc queries) 10 January 5th 06 08:26 AM
find sum in list of of numbers Jim Thomlinson Excel Discussion (Misc queries) 5 January 4th 06 07:07 PM
How can I compare a number against a list of numbers johnny Excel Worksheet Functions 4 March 22nd 05 07:13 PM


All times are GMT +1. The time now is 01:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"