Match and Index function on blank cells

Ldoug

New Member
Joined
Oct 9, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
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
    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
Joined
Feb 6, 2012
Messages
1,894
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,"")
 

Watch MrExcel Video

Forum statistics

Threads
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.
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