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

richtks

New Member
Joined
Jun 1, 2019
Messages
12
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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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
Can you please explain?
 
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,214,585
Messages
6,120,399
Members
448,958
Latest member
Hat4Life

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