Cellwise Try it free

Unit 10 of 12 Lesson 1 free ยท Plus

Data cleanup

Fix messy exports before they bite.

Functions in this unit: SUBSTITUTE, TEXTBEFORE, TEXTAFTER, ISNUMBER, VALUE, IF, ISBLANK, ISTEXT, COUNTIF, COUNTA, UNIQUE

Key ideas

Replace text

=SUBSTITUTE(A2,"-","")

Swap out characters everywhere they appear, like dashes in phone numbers.

Split on a delimiter

=TEXTBEFORE(A2,"@")

TEXTBEFORE and TEXTAFTER grab text on either side of a character.

Find duplicates

=COUNTIF($A$2:A2,A2)>1

An expanding range counts how many times a value has appeared so far.

Lesson 1: Find and replace

  1. Strip the dashes out of the phone number in B2. Fill to B4.

    AB
    1PhoneDigits
    2816-555-0142
    3913-555-0199
    4785-555-0110

    Hint: =SUBSTITUTE(A2,"-","")

    Show answer

    =SUBSTITUTE(A2,"-","") in B2. Replacing with "" deletes the character.

  2. Pull the username (before the @) from each email into B2. Fill to B4.

    AB
    1EmailUser
    2ava.chen@acme.com
    3ben@northwind.io
    4cara.diaz@acme.com

    Hint: =TEXTBEFORE(A2,"@")

    Show answer

    =TEXTBEFORE(A2,"@") in B2. No more counting characters with LEFT and FIND.

  3. Pull the company domain (after the @) into B2. Fill to B4.

    AB
    1EmailDomain
    2ava.chen@acme.com
    3ben@northwind.io
    4cara.diaz@acme.com

    Hint: =TEXTAFTER(A2,"@")

    Show answer

    =TEXTAFTER(A2,"@") in B2. Great for grouping leads by company.

  4. What will A1 show?

    A
    1

    A1 contains =SUBSTITUTE("Q1 report Q1","Q1","Q2",2)

    Show answer

    Q1 report Q2. The 4th argument replaces only the 2nd match.

  5. Match each function to what it does

    SUBSTITUTE
    Swaps text for other text
    TEXTBEFORE
    Text left of a character
    TEXTAFTER
    Text right of a character
    VALUE
    Turns text into a number

Lesson 2: Check your data

Lesson 2 is part of Cellwise Plus. Lesson 1 above is free to read here and to practice in the app.

See what Plus includes

Lesson 3: Duplicates and uniques

Lesson 3 is part of Cellwise Plus. Lesson 1 above is free to read here and to practice in the app.

See what Plus includes

Guides on this topic