Finding the First Non Zero number in a list

sdohertyccb

Board Regular
Joined
Feb 15, 2005
Messages
91
Is there a way to pick the first non zero number in a list? The data is in a dynamic range that is updated each time a program is run, and I need to find the first non zero number in the list. Also, the data cannot be sorted to use the MATCH function as the numbers are specific to a date that is used for several sets of data. For example:
Code:
Date	       Set1	Set2	Set3
3/31/2006	0	0	0
4/30/2006	0	250	0
5/31/2006	350	200	120
6/30/2006	200	300	90
Is there a formula that will give me the first non zero number for Set1?
Any help you can give me would be greatly appreciated.
Thanks in advance for looking at this for me.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Is it possible that a zero could appear AFTER a non zero number ?

For example, is it possible that Set1 could contain values like this ?

0
0
350
200
0
400

?
 
Upvote 0
For example:

=INDEX($B$2:$B$10,MATCH(TRUE,$B$2:$B$10<>0,0))

array-entered with Ctrl+Shift+Enter.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top