Text Strings Don't Match - What Can I Investigate?

Joined
Sep 7, 2018
Messages
8
Hi All,

I've run into a problem where I have two text strings which I believe are the same but they don't match each other (and therefore don't work in index match formulas).

I've checked the lengths of both cells and they match so there's no extra spaces etc. I'm no case matching but casing appears to match anyway. One of my text strings is a copy and paste from a website so I'm wondering if that is the cause, but if so, how would I go about checking what the actual value is?

I tried pasting the two values in here (not as plain text) and it seems to fail, so I'm thinking this might be the issue, but if that's the case, I don't understand why it's showing the same in excel?

Thanks in advance.
 
Last edited:

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Do you have spaces in your text?
if so try
=CODE(MID(A1,7,1))
Change A1 to a cell with the problem value & the 7 to get the space.
What does the formula return?
 
Upvote 0
Do you have spaces in your text?
if so try
=CODE(MID(A1,7,1))
Change A1 to a cell with the problem value & the 7 to get the space.
What does the formula return?

Many thanks for your response. On what I believe to be the problematic cell I get a value of 160, but in the one that I think is working correctly I get 32. Does this just mean different space types are being used?
 
Upvote 0
Yes it does, 32 is a normal space whilst 160 is a non-breaking space that typically comes from other software.
If you highlight the problem column, Ctrl H, int the Find What box type Alt 0160 (you must use the number keypad) & in the replace with box enter a space & then replace all
Make sure that "match entire cell" is unchecked.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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