Module 3 · Numbers and information

Spreadsheets with AI: formulas, cleanup and analysis

Lesson 7 of 15 9 min lesson Updated on October 30, 2026
Progress in the course47%

In this lesson

A spreadsheet is good at math and bad at explaining. AI is the opposite. Put the two together.

You do not need to memorize formulas. You need to know how to ask, understand and test.

The spreadsheet does the math

AI gets long calculations wrong without warning you. The spreadsheet does not. So the split is this: the AI writes the formula and explains it, the spreadsheet calculates, and you check with a case you already know.

The AI cannot see your spreadsheet. So say three things in your request: the program (Excel or Google Sheets), the language and the columns. In English, the separator is a comma, as in =SUMIF(B:B,"Paid",C:C). In Portuguese it is a semicolon, and the same function is called SOMASE. When a formula gives an error the moment you paste it, this is almost always why.

Asking for a formula

Context: I use Google Sheets in Portuguese (semicolon separator). On the Sales tab, A = date, B = salesperson, C = product, D = amount, E = status (Paid or Pending). Task: I want the sum of the paid amounts for one salesperson, whose name is in cell H1. Format: give the formula, explain each part in one sentence and give a test with 3 sample rows and the expected result.

Always test. Create 3 rows whose answer you know in your head and see if the formula matches. If it does, use it. If not, go back to the conversation with "I expected 300, I got 120" and ask for the fix.

Inherited a formula nobody understands? Paste it and ask: "explain it part by part, in words for someone who has never used a spreadsheet".

Cleaning up data

A messy customer list is the boring job that AI plans for you. Ask for the plan in order, with one formula per step, always in a helper column. Never on top of the original.

ProblemWhat to do
Extra spaces=TRIM(A2)
Mixed capital lettersStandardize before you compare
Duplicates=COUNTIF(A:A,A2) in a helper column. Look at the ones that give more than 1.
Number stored as textIt shows up aligned to the left. The sum ignores it. Ask how to convert it.
Context: I have an 800-row customer list from a building supplies store, in Excel in Portuguese. There are names with extra spaces, cities written in different ways and phone numbers stored as text. Task: put together the cleanup plan. Format: numbered steps, with the formula for each one, using helper columns next to the data. Explain in one sentence what each step does.

The plan takes half an hour to follow. By hand, this job would take an afternoon, and the chance of ruining the original would be much higher.

Analyzing a pasted table

Before you paste, take the people out. Delete name, CPF (the Brazilian taxpayer ID number), phone and address. An analysis of totals works without them. Then validate: ask for the sum per group and check two numbers in the spreadsheet itself with a formula. If one does not match, none of the rest counts.

An example: a manager pasted 60 rows of appointments, without names, and the AI said one health plan brought in the most revenue. She asked for the sum per health plan and checked two totals with SUMIF. They matched, and she used the analysis.

What the pros know

The spreadsheet also makes mistakes on its own. In 2016, researchers examined 3,597 papers from 18 scientific journals, published between 2005 and 2015, with gene lists in Excel. About a fifth had gene names swapped for dates or numbers, such as the gene SEPT2 turning into a date (study in Genome Biology). That is why, after importing or cleaning data, a professional checks the type of each column (text, number, date) before adding or comparing, and formats as Text whatever must not turn into a date.

Practice · 10 min

  1. Write 3 questions you would like your spreadsheet to answer, in everyday language.
  2. For each one, ask for the formula with the context (program, language, columns), the explanation part by part and a 3-row test.
  3. Test. Note what matched and what did not. Keep the best one in the spreadsheet, with a comment on the cell.

Summary

Sources

Read on October 30, 2026.

  1. Ziemann, Eren and El-Osta. Gene name errors are widespread in the scientific literature. Genome Biology (2016).

Lesson quiz

Three situations to apply what you learned.

Lesson 7 of 15

Before moving on to the next lesson

Put what you saw into practice. The boxes stay checked in this browser, so you can come back later.

Have a question about this lesson? The IV Help team answers personally on WhatsApp.

Ask on WhatsApp