Tutorials · Beginner
How to use AI in Google Sheets to automate analysis and reports
Step-by-step guide to using AI in Google Sheets: clean data, generate formulas, analyze and build reports in minutes. With the free path and the built-in Gemini one.
- Google Sheets
- Gemini
- Claude
- ChatGPT
If you spend hours inside a spreadsheet reconciling numbers, building formulas and formatting reports, this guide is for you. You’ll learn to use AI in Google Sheets to clean data, generate formulas, analyze and create reports in minutes, without fighting the syntax.
There are two paths and you’ll see both: the free one (copy your data into Claude or ChatGPT) and the built-in one (Gemini living inside the sheet, paid). Start with the free one: you don’t need to pay anything to follow almost the whole tutorial.
Before you start: AI is your assistant, not your accountant. Always review the numbers it returns before making decisions or presenting them.
1 Prepare your data in Google Sheets
AI works much better with tidy data. First things first:
- Put a clear header row in the first row (Date, Category, Amount, Client).
- Make sure each column has one type of data (dates with dates, numbers with numbers).
- Remove fully empty rows or obvious duplicates.
It doesn’t have to be perfect: in step 3 the AI helps you clean up what’s left.
2 Free path: analyze with Claude or ChatGPT
This path costs nothing and works with any sheet (Google Sheets or Excel).
- In your sheet, select the data range and copy it (
Ctrl + Con WindowsMac withCmd + C). - Open Claude (claude.ai) or ChatGPT (chat.openai.com) and paste the table into the chat.
- Say what you want. For example:
“Here are my sales for the month. Summarize income and expenses by category, point out the 5 largest amounts, and tell me if anything looks off compared to the rest.”
- Copy the answer back into your sheet, or ask it to return the result as a table so you can paste it straight in.
For large files, you can export the sheet to CSV (File > Download > CSV) and upload the file to the chat.
3 Generate formulas by describing what you want
This is the part that saves the most time. Instead of remembering the syntax, describe the formula and let the AI write it.
In Claude or ChatGPT, paste a couple of sample rows and ask:
“In Google Sheets, give me the formula to sum column C only when column B says ‘Paid’. My data starts in row 2.”
It returns something like =SUMIF(B2:B, "Paid", C2:C) with the explanation. Copy it into your cell and you’re done. It works for VLOOKUP, pivot tables, counting, averaging and cleaning text.
Tip: if a formula gives an error, copy it along with the error message and ask “why is it failing and how do I fix it?”.
4 Built-in path: enable Gemini in Google Sheets
If you want the AI inside the sheet (without leaving for another chat), Google has Gemini built in. It’s paid: it comes with Google AI Pro (personal account) or Google Workspace Business Standard and up (businesses). Confirm prices and availability on the official page.
With Gemini active you can:
- Open the Gemini side panel (the star icon in the top right) and ask it: “create a table with these columns” or “summarize this sheet”.
- Use the =AI function in a cell:
=AI("classify this text as complaint or praise", A2)and the AI fills the result down. - Use Smart Fill: type a couple of examples and Sheets completes the pattern on its own.
Note: the
=AIfunction and the panel roll out by region and plan. If you don’t see them, check that your account includes Gemini.
5 Create an automatic report
With your data cleaned and analyzed, ask the AI for the final report. In Claude or ChatGPT:
“With this data, write me a one-page monthly report in plain language: total sales, comparison with last month, the 3 categories that grew the most, and one recommendation.”
And for the visual dashboard:
“Tell me step by step which charts to create in Google Sheets to see income versus expenses by month and the margin.”
You review, adjust and present. The heavy lifting is already done by the machine. If you do this often, also see how to automate marketing reports with AI and how to create presentations with AI for the next step.
If something goes wrong
- The formula shows
#ERROR!or#N/A: copy the formula and the error into the chat and ask for the fix. It’s almost always a mistyped range. - The AI “made up” a number: give it less data at a time and ask it to show how it got the result. Always double-check by hand.
- I don’t see the Gemini panel or the =AI function: your account doesn’t include Gemini, or it’s not available yet in your region. Use the free path from step 2.
And that’s it. You don’t have to automate your whole sheet at once: start with the task you dread most and let the AI give you that time back. You still bring the judgment, which is what truly matters.
Frequently asked questions
Do I need to pay to use AI in Google Sheets?
No. The path of copying your data into Claude or ChatGPT is free. You only pay if you want Gemini built into the sheet (=AI function, Smart Fill), which comes with Google AI Pro or Google Workspace Business Standard and up.
What is the =AI function in Google Sheets?
It's a Gemini formula you type in a cell, for example =AI("classify this comment as positive or negative", A2), and the AI fills in the result. It needs an account with Gemini enabled. Check availability in your account, since it rolls out by region and plan.
Is it safe to upload my company's data?
With Gemini in Google Workspace, Google states it doesn't use your organization's data to train its public models. Even so, don't upload confidential client information without confirming the tool's privacy policy, and strip out personal data when you can.
Can the AI get calculations wrong?
Yes. AI is great at generating formulas, summarizing and classifying, but it can trip up on cross-sheet references or complex calculations. Always review the numbers before presenting them: use it for drafts and organization, not as your final source of truth.
Does this also work for Excel?
Yes. The free copy-and-paste path into Claude or ChatGPT works the same with Excel. Microsoft also has its own AI (Copilot) built into Excel with a paid plan.