# Find first non-zero numeric value in a row

#### derekbez

##### New Member
Hi,
First post, but irregular visitor - thanks for previous help!

I have someone else's spreadsheet that tries to simulate a sort of gantt chart. However, it doesn't explicitly give the key dates of events, so I'd like to extract them into a column.

Imagine the sheet has dates in a row b3:bz3.
a4:a300 has a list of locations.
The 'content' b4:bz300 is populated by formulas and can be: zero, blank, text or numeric.

So for example, the row for location 'New York' could have:
{0,0,0,0,0,0,0,0, ,0,0,0,text,0,text,0,0,12,400,400,0,0,0,0,text,.....}

I'm only interested the column the first non-zero number appears in. In the example, this would be "12", in the 18th col.

The formula I have so far:
=INDEX(\$B\$3:\$BZ\$300,1,MATCH(TRUE,INDEX(\$B4:\$BZ4>0,0,0),0))

I think it's close... but it is returning the first text cell, not the first numeric one.

Any suggestions?

As said, this is someone else's (protected) spreadsheet which is updated every couple of weeks. I need to extract this date data for my part of the project, but I'll probably try encourage the owner to include the column in future.

### Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

#### DonkeyOte

##### MrExcel MVP
Perhaps

=INDEX(\$B\$3:\$BZ\$3,MATCH(1,INDEX(ISNUMBER(\$B4:\$BZ4)*(\$B4:\$BZ4>0),0),0))

#### derekbez

##### New Member
Perfect!

Thank you very much.

#### Russk68

##### Active Member
Perhaps

=INDEX(\$B\$3:\$BZ\$3,MATCH(1,INDEX(ISNUMBER(\$B4:\$BZ4)*(\$B4:\$BZ4>0),0),0))

Replies
12
Views
340
Replies
10
Views
503
Replies
1
Views
94
Replies
1
Views
174
Replies
5
Views
291

1,128,129
Messages
5,628,869
Members
416,347
Latest member
AT2021

### 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.

### Which adblocker are you using?

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

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