Messy text — extra spaces, inconsistent case, values that need splitting or joining — is a constant. Excel's text functions clean and reshape it.
The text toolkit
=UPPER(A2) =LOWER(A2) =PROPER(A2) case=TRIM(A2) remove extra spaces=LEN(A2) length=LEFT(A2, 3) =RIGHT(A2, 4) =MID(A2, 2, 3) extract characters=FIND("@", A2) position of a character=SUBSTITUTE(A2, "-", "") replace text=CONCAT(A2, " ", B2) =TEXTJOIN(", ", TRUE, A2:A5) join
Key takeaways
- 01UPPER/LOWER/PROPER change case; TRIM removes extra spaces; LEN gives length.
- 02LEFT/RIGHT/MID extract characters; FIND locates a character.
- 03SUBSTITUTE replaces text; CONCAT/TEXTJOIN combine values.
- 04TRIM fixes invisible-space bugs; Flash Fill/Text-to-Columns split quickly.
