Module 16 · Job Tests · Clean the export

Jamal Carter applies for a job at Meridian Supplies

Round four is about data cleaning. Meridian sends a customer export from its old system. The names have extra spaces and random capitals. The account column mixes the account ID and the company name. The task: clean both columns, then sort the list by revenue. Jamal sets the egg timer to 8 minutes.

Loading the spreadsheet…

Module 16 · Job Tests

Clean the export

Jamal Carter, applies for a job at Meridian Supplies
Jamal Carter applies for a job at Meridian Supplies

Round four is about data cleaning. Meridian sends a customer export from its old system. The names have extra spaces and random capitals. The account column mixes the account ID and the company name. The task: clean both columns, then sort the list by revenue. Jamal sets the egg timer to 8 minutes.

Steps

  1. Clean names and IDs with formulas

    TRIM removes extra spaces. PROPER fixes the capitals. TEXTBEFORE returns the text before a delimiter, for example before " - ".

    How to do it

    1. Select the first cell of the column.
    2. Type =PROPER(TRIM( and the cell with the name. Close both brackets.
    3. Press Enter.
    4. Select the formula and the cells below it.
    5. Press Ctrl+D.
    6. TEXTBEFORE needs two values: the text and the delimiter. Put the delimiter in quotation marks, with its spaces.

    =PROPER(TRIM(B5))

    Task: Put the account ID of each customer in F5:F12. The ID is the part before " - " in column C, for example MER-2041.

  2. Sort with one click

    Sort A to Z and Sort Z to A sort the whole list by the column of the active cell. Formulas move with their row.

    How to do it

    1. Click one cell in the column to sort by.
    2. On the Data tab, in the Sort & Filter group, click Sort A to Z.
    3. For numbers, Sort Z to A puts the largest number at the top.

    Aisha Khan, Emma O'Brien, Liam Brennan …

    Task: The test asks for the biggest customers first. Sort the list by revenue, largest to smallest.