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:

Some videos you may like

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

arthurbr

Well-known Member
Joined
Dec 8, 2006
Messages
2,167
Office Version
  1. 2010
Try =INDEX(A1:A13,MATCH(TRUE,INDEX((A1:A13<>""),0),0)) ( regular formula)
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,122,655
Messages
5,597,384
Members
414,141
Latest member
Joey_T92

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
Top