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

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
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,222,045
Messages
6,163,583
Members
451,846
Latest member
ajk99

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