Module 8 · Text · Clean up patient names

Dana Novak manages the office at Copperleaf Dental

Dana sends reminder letters every week. But the export writes names like this: " anna KOWALSKI ". There are spaces in front, spaces at the end, and capitals everywhere. The letters look like the practice shouts at its patients.

Loading the spreadsheet…

Module 8 · Text

Clean up patient names

Dana Novak, manages the office at Copperleaf Dental
Dana Novak manages the office at Copperleaf Dental

Dana sends reminder letters every week. But the export writes names like this: " anna KOWALSKI ". There are spaces in front, spaces at the end, and capitals everywhere. The letters look like the practice shouts at its patients.

Steps

  1. Remove extra spaces with TRIM

    TRIM removes the spaces at the start and at the end of a text. Between two words, it keeps one space.

    How to do it

    1. Select the cell for the result.
    2. Type =TRIM(
    3. Type the cell with the text and a closing bracket.
    4. Press Enter.

    =TRIM(B5)

    Task: Remove the extra spaces from the second name. Put the result in cell C6.

  2. Fix the capitals with PROPER

    PROPER writes the first letter of each word as a capital and all other letters in lower case. You can put TRIM inside PROPER.

    How to do it

    1. Click cell D5.
    2. Type =PROPER(
    3. Put TRIM inside PROPER. Close both brackets.
    4. Press Enter.
    5. UPPER writes all letters as capitals: =UPPER(B5). LOWER writes all letters in lower case: =LOWER(B5).
    6. Copy the formula down with Ctrl+D to clean all names.

    =PROPER(TRIM(B5))

    Task: Clean all names. Fill in D6:D12.