Skip to main content
Albero Academy

Text Functions

Clean, split and combine text with LEFT, RIGHT, MID, TRIM and TEXTJOIN.

Formulas & Functions8 min

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

common text functions
=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

  1. 01UPPER/LOWER/PROPER change case; TRIM removes extra spaces; LEN gives length.
  2. 02LEFT/RIGHT/MID extract characters; FIND locates a character.
  3. 03SUBSTITUTE replaces text; CONCAT/TEXTJOIN combine values.
  4. 04TRIM fixes invisible-space bugs; Flash Fill/Text-to-Columns split quickly.

Finished this chapter?

Mark it complete to track your progress through Excel.