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