
Just because data looks identical, it doesn't mean it is.
That's the key message of this video, which demonstrates how two values that look the same are actually different.
'Hello world' is contained in cells B2 and B3, each referred to as Value A and Value B, respectively. After testing them for equality using =๐ฑ๐ธ=๐ฑ๐น, FALSE is returned. Their lengths are then checked for any trailing spaces. There turns out to be one in Value A, but even after removing it, the equality test does not change.
The difference only becomes apparent after returning the Unicode numbers for the spaces that separate the two words. This is done using =๐๐ฝ๐ธ๐ฒ๐พ๐ณ๐ด(๐ผ๐ธ๐ณ(๐ฑ๐ธ:๐ฑ๐น,๐ผ,๐ท)).
Unicode is a universal encoding standard that has a unique value assigned to every character, symbol, and script used in languages worldwide. Its purpose is to ensure the consistent representation of text across different platforms and devices.โ
Inside UNICODE, MID is nested and the range is specified before putting a ๐๐๐๐๐_๐๐๐ of 6 as both spaces are the sixth character. A ๐๐๐_๐๐๐๐๐ of 1 is also added to extract only that character.
The Unicode numbers returned are 32 and 160, proving there is a difference. Value A's space is copied across and pasted to replace Value B's. With both now featuring spaces that use number 32, all things are equal and TRUE is returned.
You might encounter this problem if you copy and paste something from the web. Nevertheless, it's worth being aware of when you're cleaning and transforming your data because it can mess up your analysis in a very sneaky way.
For more Excel tips and tricks like this, check out our Video Tutorials page.
Latest Articles

Sheetcast - A Natural Evolution for People Who Love Excel
.png)
How to Build Your First AI Agent in Excel

Leap into Excelโs AI revolution with COPILOTALT by Sheetcast
One week, two premier events
Join the European Excel Week - from learning and mastering new skills at Global Excel Summit to elite performance at the Excel Esports European Open.


.avif)