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: 63

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
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,"")
 
Upvote 0

Forum statistics

Threads
1,215,474
Messages
6,125,024
Members
449,204
Latest member
LKN2GO

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