return first non blank value celli in a row

magatic

New Member
Joined
Aug 29, 2014
Messages
3
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.
Please advise. Thank you so much!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
maybe something like

=INDEX(D33:H33,MATCH(TRUE,D33:H33<>"",0)) control shift enter
 
Upvote 0
Are the values always in ascending order?

=MIN(D3:H33)
 
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

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