# return first non blank value celli in a row

#### magatic

##### New Member
Hello! I have values calculated in a row with an if statement, so cells D33: H33 have values blank (formula returned), 1.70, 1.72, 1.87, 2. I need the formula to return first non blank cell, so in this case would be 1.70 & years.

### Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
maybe something like

=INDEX(D33:H33,MATCH(TRUE,D33:H33<>"",0)) control shift enter

Are the values always in ascending order?

=MIN(D3:H33)

Thank you for your response. The values are different, and the blank cell could be in a couple first cells, so I would like the formula to pick the first non-blank value.

It could be something like this...blank, blank, 0.95, 0.85, 5...The answer should be 0.95

Thank you.

Thank you very much. It worked.

Thank you for your response. The values are different, and the blank cell could be in a couple first cells, so I would like the formula to pick the first non-blank value.

It could be something like this...blank, blank, 0.95, 0.85, 5...The answer should be 0.95

Thank you.

See post #2.

If the data is numeric...

=INDEX(D33:H33,MATCH(TRUE,ISNUMBER(D33:H33),0))

confirmed with control+shift+enter, not just enter, would be more coherent.

Replies
2
Views
749
Replies
1
Views
488
Replies
0
Views
450
Replies
13
Views
3K
Replies
2
Views
724

1,196,484
Messages
6,015,466
Members
441,898
Latest member
kofafa

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