Hands-On Excel Text functions

Excel text function exercises

Eleven exercises for cleaning up text in Excel: joining names and lists, fixing capitals and stray spaces, cutting codes apart with LEFT, RIGHT and MID, finding words with FIND and SEARCH, and swapping text with SUBSTITUTE. Each one runs on an Excel-style sheet in your browser and checks the result your formula gives.

11 lessonsAbout 33 minutesBy Updated

The 11 exercises

Each one is a short task on an Excel-style sheet in your browser, free and without sign-up. The checker looks at the result, so any formula that gets it right passes, and a wrong one gets the reason.

  1. Join text together &, CONCAT, PROPER, Core, 3 min

    & joins text from several cells, and PROPER capitalises the first letter of each word.

  2. Join a list with commas TEXTJOIN, Core, 3 min

    TEXTJOIN joins a range of cells into one text with a separator between them, and can skip the empty cells.

  3. Fix the capitals UPPER, LOWER, PROPER, Starter, 3 min

    UPPER makes every letter a capital, LOWER makes every letter small, and PROPER capitalises the first letter of each word.

  4. Stray spaces that break a count TRIM, Core, 3 min

    TRIM removes spaces at the start and end of text and turns double spaces inside it into single ones.

  5. Flag the bad entries TRIM, LEN, EXACT, Core, 3 min

    TRIM, LEN and EXACT test typed entries for stray spaces, the wrong length and the wrong capitals, without changing them.

  6. First and last characters LEFT, RIGHT, Starter, 3 min

    LEFT takes a number of characters from the start of a text, and RIGHT from the end.

  7. Pull from the middle MID, Core, 3 min

    MID takes a number of characters from the middle of a text, starting at a position counted from 1.

  8. FIND or SEARCH? FIND, SEARCH, Core, 3 min

    FIND and SEARCH give the position of one text inside another; FIND counts capitals and SEARCH ignores them.

  9. Split first and last names LEFT, MID + FIND, Core, 3 min

    FIND gives the position of a character, and LEFT and MID take the text before and after it.

  10. Clean a bank description TEXTBEFORE, TEXTAFTER, PROPER, Advanced, 3 min

    TEXTAFTER and TEXTBEFORE take the text after or before a marker character, however long the line is.

  11. Swap one word for another SUBSTITUTE, Core, 3 min

    SUBSTITUTE swaps every copy of one piece of text for another, wherever it sits in the cell.

Do module 8 in order, step by step, in the courseAll 126 exercises

FAQ

Which Excel text functions are worth learning first?
TRIM, &, LEFT and MID with FIND, and SUBSTITUTE. Between them they join, split and clean most imported lists. TEXTJOIN, TEXTBEFORE and TEXTAFTER are shorter ways to do the same jobs in newer versions.
Are Excel text functions case-sensitive?
Some are. FIND, EXACT and SUBSTITUTE count capitals. SEARCH, =, COUNTIF and the lookups ignore them, so "brk-311" and "BRK-311" match.
Formula or Flash Fill?
Flash Fill (Ctrl+E) is quicker for a one-off list, but it types fixed values, so nothing updates when the source changes. A formula updates, and it is what these exercises check: typed-in results don't pass.