Ghost Sheet

CLEAN and CHAR(160): characters TRIM cannot see

Why does TRIM not fix text copied from a website?

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
1Product (copied)QtyOur price
2Tea towel5
3 Oak tray 4
4Brass hook7
5 Tea towel 4
6Salt cellar12
7 Salt cellar 4
8 Brass hook 8
9 Coffee scoop 12
10 Tea towel 5
11Salt cellar5
12Tin box8
13
14
15
16
17
18
19
20
21
dashed: the answer to reachblack: matchesblue: right after new datared: wrong

Why it works

What it does
TRIM removes ordinary spaces only. CLEAN removes line breaks and other non-printing characters. Web pages also use a non-breaking space, CHAR(160), which neither removes: swap it for a normal space with SUBSTITUTE first.
The shape of the formula
=TRIM(CLEAN(SUBSTITUTE(text, CHAR(160), " ")))
How to remember it
Swap, clean, trim: the web space first, the invisibles next, the spaces last.
The usual mistake
Trusting TRIM alone on pasted web text. The names still will not match and every lookup says #N/A.

Keep practicing

Updated