Return a Blank instead of #N/A and/or 0 with INDEX/MATCH

richtks

New Member
Joined
Jun 1, 2019
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Trying to return a blank instead of a #N/A or 0 with INDEX and MATCH. Formula Below...

=INDEX(Data[GC],MATCH([Product Key],Data[Product Code],0))


Thanks in advance for your assistance and time.

Regards

Richard T.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi & welcome to MrExcel.
How about
=IFERROR(INDEX(Data[GC],MATCH([Product Key],Data[Product Code],0)),"")
 
Upvote 0
If the formula only returns the #NA error value then =IFERROR(
INDEX(Data[GC],MATCH([Product Key],Data[Product Code],0)),"") returns the value, or a null text string "" if the result is an error.
Otherwise you'll need an IF function as well:
=IFERROR(IF(
INDEX(Data[GC],MATCH([Product Key],Data[Product Code],0))=0,"",
INDEX(Data[GC],MATCH([Product Key],Data[Product Code],0))),"")
<strike>
</strike>

 
Upvote 0
Fluff's suggestion removed the #N/A's but still had the 0.

ClaireS, your suggestion HOOKED IT UP!!!

Thanks!!!
 
Upvote 0
What if I just have 0's

=INDEX(Data_InFlight[Hard Cost Vendor],MATCH([Product Key],Data_InFlight[Product Key],0))
 
Upvote 0
Claires removed the 0's and the #N/A's. your first suggestion removed the #N/A's. I have some columns that are just returning 0's.
 
Upvote 0
In that case use ClaireS' formula
 
Upvote 0
It worked. I must have done something wrong at first, cause it was removing some of the info.... Thanks Guys!!!
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

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