Get your API key

Lesson 2 of 6

Formulas and cleaning data with AI

Prompt patterns for formulas, fixing messy columns, and always testing on a copy.

7 min Log in to open
One step at a time, like flipping pages.

By the end of this lesson you will get correct formulas from AI on the first try, clean a messy column safely, and understand every formula before you trust it.

You need: Excel or Google Sheets, any AI chat (for example the Playground) and a sheet with some messy data · Time: 7 minutes

  1. Before you paste any AI formula into a real file, make a copy:

    • Google Sheets: File → Make a copy.
    • Excel: File → Save As (or Save a Copy), and add "-test" to the name, like sales-nov-test.xlsx.

    Try everything on the copy. When it works, repeat it on the real file, or keep the copy as the new version.

    Why?

    A cleaning step like "replace all" or "paste values" can silently change thousands of cells. Undo has limits, and a colleague may open the shared file while you are halfway. A copy costs five seconds.

    Tip

    Google Sheets also keeps old versions under File → Version history. It is a good safety net, but a copy is easier to compare side by side.

Log in free to read the rest of this lesson

Every lesson is free. A free account unlocks all of them and saves your progress.

Still to come in this lesson:

  1. The formula prompt pattern
  2. Look up values with XLOOKUP
  3. Clean messy columns
  4. Make the AI explain and test the formula
  5. Recap