Return First Non Blank Value in a row

BenDoc08

Board Regular
Joined
Dec 21, 2008
Messages
59
Hi All,

I've run into a dilemma where I need to return the first non blank value in a range. I've looked at using an array formula like this:

{=INDEX(range,MATCH(FALSE,ISBLANK(range),0))}

However I am running into a problem because the cells in my range are formulas. Here is an example of the type of formula in these cells:

=IF(RIGHT($A6,9)="Sheep Dog","Sheep Dog","")

Basically, what seems to be happening is that the index(match) array formula is treating "" as a non blank value. Is there a way around this?

To give a better understand of what I'm trying to achieve, I have a list of animals. In column A I have animal data (e.g. Red Sheep Dog, Large ****atoo). I don't care for colour or size, just type of animal. I only have a list of 20-25 animals so I've created a calculation cell for each type and it returns either the type I want or "". This is the range from which I want to return the first non blank value. Perhaps there is an easier way to do this then what I am doing, but I have no knowledge of VBA unfortunately.

Any help would be appreciated.

Thanks,
Ben
 
Last edited:

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try =INDEX(A1:A13,MATCH(TRUE,INDEX((A1:A13<>""),0),0)) ( regular formula)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,208
Members
448,554
Latest member
Gleisner2

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