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

Looking for a formaula that finds the first non-zero value in a
vertical list of numbers. The zero values will always precede a number
greater than zero.

January 0 0
February 0 0
March 0 0
April 580 0
May 1000 1050
June 235 850
July 1032 1000
August 654 2635
September 6854 2654
October 987 9852
November 3214 1568
December 605 6387


the answer to above should be 580 for the first column and 1050 for the
second column.

THANK YOU FOR ANY HELP!

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

On 25 Nov 2006 17:21:15 -0800, "Dorff78" wrote:

Looking for a formaula that finds the first non-zero value in a
vertical list of numbers. The zero values will always precede a number
greater than zero.

January 0 0
February 0 0
March 0 0
April 580 0
May 1000 1050
June 235 850
July 1032 1000
August 654 2635
September 6854 2654
October 987 9852
November 3214 1568
December 605 6387


the answer to above should be 580 for the first column and 1050 for the
second column.

THANK YOU FOR ANY HELP!


=INDEX(rng,MATCH(TRUE,rng<0,0))

entered as an *array* formula (i.e. enter the formula by holding down
<ctrl<shift while hitting <enter. Excel will place braces {...} around the
formula).

rng is a vertical range that does not include the entire column.


--ron
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default find first non-zero value in a vertical list of numbers

AWESOME THANKS...

Why the Array formula entry though, what does this do to the formula?
Never used it before.

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

On 25 Nov 2006 18:07:06 -0800, "Dorff78" wrote:

AWESOME THANKS...

Why the Array formula entry though, what does this do to the formula?
Never used it before.


If you look in HELP "about array formulas and constants" it gives a pretty
good explanation.

Glad to help.


--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
Display the last non-zero value in a list of numbers IvanM Excel Discussion (Misc queries) 4 October 14th 06 03:56 PM
find sum in list of of numbers Jim Thomlinson New Users to Excel 3 January 4th 06 09:58 PM
find sum in list of of numbers Jim Thomlinson Excel Discussion (Misc queries) 5 January 4th 06 07:07 PM
find names on list 1 in list 2. list 1 4000 names list 2 400 name Ed Excel Worksheet Functions 1 September 4th 05 12:48 AM
Find in list function jrup New Users to Excel 2 August 23rd 05 12:16 AM


All times are GMT +1. The time now is 02:00 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"