Imported data is rarely clean — names in the wrong case, extra spaces, values that need splitting or joining. Excel's text functions fix it with formulas (repeatable, unlike manual edits). These are a daily tool for any analyst.
Joining & case
=A2 & " " & B2 first + last with a space=CONCAT(A2, " ", B2) same, function form=TEXTJOIN(", ", TRUE, A2:A5) join a range with a separator (skip blanks)=UPPER(A2) =LOWER(A2) =PROPER(A2) (PROPER = Title Case)
Trimming & length
=TRIM(A2) removes extra spaces (keeps single spaces between words)=CLEAN(A2) removes non-printable characters=LEN(A2) number of characters (great for validation)
Extracting parts
=LEFT(A2, 3) first 3 characters=RIGHT(A2, 4) last 4 characters=MID(A2, 4, 5) 5 characters starting at position 4=LEFT(A2, FIND("@", A2) - 1) the username before an @
Find & replace
=FIND("@", A2) position of @ (case-sensitive; SEARCH is not)=SUBSTITUTE(A2, "-", "") remove all dashes=TEXT(A2, "dd-mmm-yyyy") format a value as text ("12-Jan-2026")=VALUE("42") text "42" → the number 42
Practice
From a "First Last" column, split out the first and last names with LEFT/MID/FIND. Clean a messy imported column with TRIM. Build an email from names, and extract the domain from an email using MID + FIND.
Key takeaways
- 01Join text with & or CONCAT; TEXTJOIN joins a whole range with a separator.
- 02Change case with UPPER/LOWER/PROPER; clean with TRIM (spaces) and CLEAN (non-printables).
- 03Extract with LEFT/RIGHT/MID; LEN gives length; FIND/SEARCH locate a character.
- 04SUBSTITUTE swaps text; TEXT formats a value as a string; VALUE converts text to a number.
- 05TRIM is the first fix when lookups/matches fail on imported data (hidden spaces).
