Why isn't that INDEX and MATCH returing #NA

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
698
Office Version
  1. 2010
Platform
  1. Windows
Hello:

This formula is return #NA.

Look up value in AY2 and E2 are sheet #2

INDEX(Sheet1!$A$2:$A$2201,MATCH(AY2,Sheet1!$B$2:$B$2201,0),MATCH(E2,Sheet1!$B$2:$C$2201,0))

Could you help please.


Regards,

Sean
 
You could try this:
=IFERROR(INDEX(Sheet1!$A$2:$A$2201,IFERROR(MATCH(E8,Sheet1!$B$2:$B$2201,0),MATCH(AY8,Sheet1!$B$2:$B$2201,0))),"Not Found")

Its going to look for a match of E8 in column B, if not found it will look to see if there is a match of AY8 in column B. If nether returns a match then it should return the "Not Found". Is that what you are trying to do?
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
@AhoyNC

Your formula returns the required results. Thank you very much.


Regards,

Sean
 
Upvote 0

Forum statistics

Threads
1,215,577
Messages
6,125,637
Members
449,242
Latest member
Mari_mariou

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