Ghost Sheet

TRIM: remove extra spaces

Why does a lookup fail on names that look identical?

This is the task for this topic. It is part of the plan; the level check before it is free.
C2Type a formula for C2, starting with =

Click the sheet or the button: the task opens in your workspace, ready to type

ABCDE
1OrderCustomerManager
2SO-7201Birch Legal
3SO-7202Kite Studio
4SO-7203Juniper Bakery
5SO-7204Juniper Bakery
6SO-7205Pinegate School
7SO-7206Moss Dental
8SO-7207Sable Architects
9SO-7208Fern & Field
10SO-7209Kite Studio
11SO-7210Larch & Co
12SO-7211Larch & Co
13
14
15
16
17
18
19
20
21
22
23
dashed: the answer to reachblack: matchesblue: right after new datared: wrong

Why it works

What it does
TRIM removes spaces at the start and end of text and squeezes runs of spaces inside to one. Names copied from other systems often carry a trailing space, which breaks exact matches. TRIM the key inside the lookup so the source data can stay as it is.
The shape of the formula
=MATCH(TRIM(key), list, 0)
How to remember it
An invisible space is still a character.
The usual mistake
Trimming the list once by hand. The next export from the sales system brings the spaces back.

Keep practicing

Updated