#N/A Help Please

nancybrown

Well-known Member
Joined
Apr 7, 2005
Messages
868
What do I need to do this formula so when I do an Index, no matches return blank? I tried adding ,"")) to the end, but it didn't work.

=index(sheet2!$A:$2:$A$300,match(sheet1!$B$2:$B$300,sheet2!$B$2:$B$300,0,),"")

thanks in advance.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
What do I need to do this formula so when I do an Index, no matches return blank? I tried adding ,"")) to the end, but it didn't work.

=index(sheet2!$A:$2:$A$300,match(sheet1!$B$2:$B$300,sheet2!$B$2:$B$300,0,),"")

thanks in advance.

Assuming that the formula is on sheet1 and B2 on sheet1 is the first lookup value...

If you are on Excel 2007 or beyond:

=IFERROR(INDEX(sheet2!$A$2:$A$300,MATCH(B2,sheet2!$B$2:$B$300,0)),"")

Otherwise:
Code:
=IF(ISNUMBER(MATCH(B2,sheet2!$B$2:$B$300,0)),
   INDEX(sheet2!$A$2:$A$300,MATCH(B2,sheet2!$B$2:$B$300,0),
   "")
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,704
Members
449,048
Latest member
81jamesacct

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