Practical AI
No. 2.03Track 2 · Automate office work

Clean data and get Google Sheets formulas

Lesson 3 of 55 min read1 task · 3 questions

Describe your columns in words. Get the exact formula back.

The idea

You do not need to remember formulas. You need to describe the problem clearly: which column has what, and what you want in the result.

Tell the AI the cell addresses and show 2 sample rows. Then ask for the formula for row 2 so you can fill it down.

Always test the formula on the sample rows first. If the result is wrong, paste the wrong result back and say what you expected.

Your task

Clean names and turn text amounts into numbers

Open a blank Google Sheet. Type the two sample rows below in cells A2 and B2 and A3 and B3. Then paste the prompt into your chatbot.

Your slip: copy-paste prompt
I use Google Sheets. Column A has names with extra spaces and wrong capital letters. Column B has amounts typed as text with a rupee sign and commas.

Sample rows:
A2: "  ravi KUMAR "   B2: "₹12,500"
A3: "meena  shah"     B3: "₹8,250"

Give me two formulas for row 2 that I can fill down:
1. In C2: the clean name, like "Ravi Kumar".
2. In D2: the amount as a real number, like 12500.
Show the formula only, then one line explaining how it works.

What you should get

A real example of a good result. Your wording will differ a little. The shape and the facts should match.

Printed resultExample

C2:
=PROPER(TRIM(A2))
It removes extra spaces, then sets each word to start with a capital letter.

D2:
=VALUE(SUBSTITUTE(SUBSTITUTE(B2,"₹",""),",",""))
It removes the rupee sign and the commas, then turns the text into a number.

Results for your sample rows:
C2 = Ravi Kumar, D2 = 12500
C3 = Meena Shah, D3 = 8250

Check yourself

Q1 What should you give the AI to get a correct formula?

Q2 The formula gives a wrong result. What is the best next step?

Q3 What does TRIM do?

Finished?

Stamp this ticket. Your pass on the home page gets punched.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5