# Match and Index function on blank cells

#### Ldoug

##### New Member
Hi, need some help using match and index function on blank cells. Currently, a blank cell match gives #N/A

Have attached an example

=INDEX(A9:D11,MATCH(A2,A9:A9,0),MATCH(A1,A8:D8,0))

My current formula for matching Ref Code returns value as a match, but for column B is still a blank match but holds an error value in cell

=INDEX(A9:D11,MATCH(B2,B9,0),MATCH(B1,A8:D8,0))

Anyone know how to embed a logical test into this equation to determine whether cells are blank or not?

Thanks

#### Attachments

• example.PNG
13.6 KB · Views: 17

### Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

#### mrshl9898

##### Well-known Member
This isn't really making sense and the formulas seem nonsensical. If you want a Blank for a MATCH that gives an N/A just use

=IFERROR(yourformula,"")

Replies
3
Views
200
Replies
3
Views
538
Replies
13
Views
114
Replies
0
Views
130
Replies
1
Views
51

1,132,970
Messages
5,656,160
Members
418,283
Latest member
Venkateswara Rao

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