=IF(ISERROR(MATCH Question

skyport

Active Member
Joined
Aug 3, 2014
Messages
374
I am using the following formula, which gives me one problem.

=IF(ISERROR(MATCH(AL1,AK:AK, 0)), "", "ALERT")

I need to be able to have some way for the solution to ignore the differences in upper and lower case between the two columns if that's possible. As an example, the entry in AL1 is exactly the same as one of the entries in column K except for words that are in caps in the one column and not in the other and that prevents the formula from recognizing the match.

Is there some way around this problem?
 
Depends where you have placed it. Did you add it to the searched value or the search array? Technically, if the case really is the problem, this below should solve it. (Added something to remove trailing spaces as well.)

IF(ISERROR(MATCH(TRIM(UPPER(AL1)),TRIM(UPPER(AK:AK)), 0)),"","ALERT")

confirm with ctrl + shift + enter.
 
Last edited:
Upvote 0
I would have thought that would do it but it did not. I am setting up a way for you to link to a sample I have
 
Upvote 0
Hi skyport,

I tried opening the file, but google drive is telling me I need permission to view the document. Probably a setting on the document itself. You have to 'publish' it.
 
Upvote 0
The accent after 'physician' is a different character. The code function returns 146 for one and 39 for the other.
 
Upvote 0
wow can't imagine that one. If I take the accent out of both columns it works fine. How can what appear to be the same character be different like that?
 
Upvote 0
wow can't imagine that one. If I take the accent out of both columns it works fine. How can what appear to be the same character be different like that?
We'll need someone a lot smarter to answer that one, I'm afraid. At least you know what has been bugging you.
 
Upvote 0
is there a way to convert any and all accents in column AK to the same one used in column AL? That would solve it.
 
Upvote 0
Sure.

CTRL + H will call the replace window native to excel.
Paste the accent used in AK into the top field, the accent used in AL into the field below, press 'replace all' and that should fix it.

You should be able to figure out where the accent is coming from. Is it you who's typing data into column AK or someone else. Some kind of data dump from an external source?
 
Upvote 0

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