Why is my MATCH inserting a 0 if no match is found?

jmpatrick

Active Member
Joined
Aug 17, 2016
Messages
477
Office Version
  1. 365
Platform
  1. Windows
Good morning!

Here's my function:

Excel Formula:
=IFERROR(INDEX(Subdivisions!Z:Z,MATCH(AI872,Subdivisions!C:C,0)),"")

If no MATCH is found the result is a 0. I need it to be blank. What am I doing wrong?

jp
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
if no match is found - or if there is a match but the value in Z:Z is blank , then it will return a zero
the iferror will kick in if the value in AI872 is NOT found

so will Z:Z have blanks corresponding to lookup value in C:C
and do you want to return a blank
are there zeros in the data ?

this may help
 
Upvote 1
Solution
if no match is found - or if there is a match but the value in Z:Z is blank , then it will return a zero
the iferror will kick in if the value in AI872 is NOT found

so will Z:Z have blanks corresponding to lookup value in C:C
and do you want to return a blank
are there zeros in the data ?

this may help

The information from the link worked great. I changed the function to this:

Excel Formula:
=IFERROR(T(INDEX(Subdivisions!Z:Z,MATCH(AI872,Subdivisions!C:C,0))),"")

Thanks!
 
Upvote 0
you can use an ISBLANK() if you have a mixture of text and numbers or just all numbers returned , I tried the N function but still returned a zero for a blank
maybe a better way , but thats all i can find

=IFERROR(IF(ISBLANK(INDEX(Subdivisions!Z:Z,MATCH(AI872,Subdivisions!C:C,0)))) , "" ,INDEX(Subdivisions!Z:Z,MATCH(AI872,Subdivisions!C:C,0))),"")
 
Upvote 0

Forum statistics

Threads
1,216,116
Messages
6,128,930
Members
449,479
Latest member
nana abanyin

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