Why a MATCH formula may not work?

excelos

Well-known Member
Joined
Sep 25, 2011
Messages
592
Office Version
  1. 365
Platform
  1. Windows
Hello,

Any idea why a MATCH command does not work? I definitely see the value but it returns N/A.
I have entered it as an array.

Is there a formatting issue?

Thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Looking for a value that is shown as text.

Some idea of the formula/data you are using may be useful.
 
Upvote 0
Without seeing your data, a few possibilities.
One of the values is text the other is numeric
One of the values has leading/trailing spaces.
If the values are numeric, one might be 1.22 & the other 1.219999 but formatted to appear as 1.22
If any of the values have been copied from another source, you may have hidden characters.
 
Last edited:
Upvote 0
Okay, that is extremely strange and I have never come across anything like that ever.

The data is the header of a table and no matter what formatting I choose, it does not change the displayed value (which is a date). Is this a 'feature'?

Any idea?
 
Upvote 0
If you're getting #N/A it's because the MATCH statement can't match your lookup value to its array. E.g., you're looking for the letter "E" in the array "A", "B", "C", "D". How to fix:

If you're doing an exact match (with the third argument as 0), then your lookup value has to be in the array.

If you're doing an approximate, <=, match, your array has to be in ascending order.

If you're doing an approximate, >=, match, your array has to be in descending order.

Based on your second post it sound to me like you are doing an exact match. If you're matching on text, try trimming the value you're trying to match on. Could be extra spaces.
 
Last edited:
Upvote 0
Sounds like the Header is date in text format and you are looking to match a date value.
 
Upvote 0
The data is the header of a table and no matter what formatting I choose, it does not change the displayed value (which is a date). Is this a 'feature'?
I believe that table headers are converted to text, when the table is created.
 
Upvote 0
That's the formula:

{=MATCH(J6,'Date Tracker'!$E$5:$DT$5,0)}

I tried to specify a date in J6 and it still does not find it.

I made sure that 'Date Tracker'!$E$5:$DT$5 and J6 are in date format.
 
Last edited:
Upvote 0
If its a date in a table header than match isnt going to match it. It will see the header as text. Something like this might work:

=MATCH(TRUE,INDEX(--('Date Tracker'!$E$5:$DT$5)=J6,0),0)
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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