How to Use Gemini in Google Sheets for Data Analysis

Short answer: Open a Google Sheet, click Ask Gemini at the top right, and type what you want, for example "Summarise sales by region and show the top three". Gemini can create tables, formulas, analysis and charts, and apply actions such as pivot tables and conditional formatting. It needs an eligible Workspace or Google AI plan. Always check formulas and totals before you trust the result.
What Gemini can do in Sheets
Google's help page lists these abilities:
- Create tables and formulas.
- Generate data analysis and insights.
- Build charts and graphs.
- Summarise emails and Drive or Gmail files.
- Chat about and analyse large datasets in BigQuery.
- Perform actions such as conditional formatting, pivot tables, dropdowns and checkboxes, sorting and filtering, find and replace, number formats, freezing rows and columns, filling ranges and solving optimisation tasks.
Source: https://support.google.com/docs/answer/14356410
Check availability first
Google says the feature requires an eligible Google Workspace or Google AI plan, and is also offered through its Workspace Experiments trusted tester programme. Supported languages are listed on its pages. If you do not see Ask Gemini, check your plan and ask your administrator.
One practical point from Google: the feature works best with native Google Sheets files. If your data is in an Excel (.xlsx) file, use File, then Save as Google Sheets first.
Step by step

- 1Open a spreadsheet in Google Sheets.
- 2At the top right, click Ask Gemini.
- 3In the side panel, pick a suggested prompt or write your own.
- 4Review the response.
- 5Insert the result into your sheet, or undo an action if it is wrong.
Two tips from Google that save trouble:
- Insert what you want to keep. Your conversation history is lost if you reload the page, close and reopen the sheet or go offline.
- Focus on the right tab. If your file has several tabs, use the dropdown in the prompt box to choose only the tabs Gemini should use. Click Reset to all sources to use them all again.
Prepare your data first
Gemini does better with tidy data. Before you ask questions:
- Put headers in the first row, one per column.
- Keep one type of data in each column (all dates, all numbers).
- Remove blank rows and merged cells inside the table.
- Fix obvious errors, such as "N/A" mixed with numbers.
- Name tabs clearly.
Prompts that work
Summary: Summarise this sales data by month and region. Show total revenue, number of orders and average order value.
Insight: What are the three biggest changes between Q1 and Q2? Explain in plain language.
Formula: In column G, add a formula that shows the days between the order date in column B and the delivery date in column C.
Clean up: Highlight duplicate customer emails in column D.
Chart: Create a column chart of revenue by month for 2026.
Pivot table: Create a pivot table showing total sales by product and by region.
Explain: Explain the formula in cell H2 step by step.
Be clear about columns, time periods and what you want to see. Vague requests give vague results.
A safe workflow
- 1Work on a copy of your file, especially for the first tries.
- 2Ask for one thing at a time.
- 3Ask Gemini to show how it got the answer. Google's page includes a Show code option that displays the code used to generate output, which helps you check the method.
- 4Check the answer by hand on a small sample.
- 5Compare totals with a simple SUM on the original data.
- 6Insert and label the result so others know it came from an AI-assisted step.
Check before you trust it

- Formulas. Click into the cell and read the formula. Does it refer to the right columns?
- Totals. Match them against a basic SUM or a pivot table you build yourself.
- Filters. Make sure no rows were hidden or left out.
- Source data. Confirm that errors in the original do not carry through.
Google's Learning Center also warns that Gemini may suggest inaccurate information and should not be relied on for professional advice. That includes financial and tax figures. If the numbers feed a report, a budget or an invoice, have someone confirm them.
What to do when results look wrong
- Ask again with more detail: "Use only rows where Status is Paid."
- Use Retry to get a different response, or Retry with Google Search for outside information.
- Check that the right tab and range are selected.
- Undo the last action if it changed your data.
- Do the calculation yourself and ask Gemini to explain the difference.
Privacy
Think before using Gemini on sheets with customer, staff or financial data. Follow your company's policy, ask your administrator what is enabled, and avoid putting personal data into prompts that does not need to be there. See our overview How to Use Gemini with Google Workspace.
Common mistakes
- Using messy data and expecting clean insight.
- Not checking the formula Gemini wrote.
- Letting it overwrite the original data instead of working on a copy.
- Forgetting to insert results before closing the sheet.
- Treating an "insight" as proof of cause. A pattern in numbers is not an explanation.
FAQ
Where is Gemini in Google Sheets?
Click Ask Gemini at the top right of an open spreadsheet.
Does it work with Excel files?
It works best with native Google Sheets files. Save an Excel file as a Google Sheet first.
Can Gemini build charts and pivot tables?
Yes, according to Google's help page, it can create charts and perform actions such as creating a pivot table.
Is it free?
It requires an eligible Workspace or Google AI plan. Check Google's current plan pages.
Can I trust its numbers?
Check them. Use the Show code option, compare with a simple SUM and review the formulas.
Sources
- Google Docs Editors Help, "Collaborate with Gemini in Google Sheets": https://support.google.com/docs/answer/14356410
- Google Workspace Learning Center, "Start with a great prompt": https://support.google.com/a/users/answer/14590328
Checked December 2026. Features and availability vary by plan, language and country.
Key takeaways
- Click Ask Gemini, choose your tabs and ask for one thing at a time.
- Tidy data and clear prompts give better results.
- Work on a copy, insert what you want to keep and verify formulas and totals.
- Keep sensitive data within your company's rules.
Want your reporting automated and checked properly? Book a free 30 minute call with Tech AI Labs.
FAQ
Quick answers
Where is Gemini in Google Sheets?
Click Ask Gemini at the top right of an open spreadsheet.
Does it work with Excel files?
It works best with native Google Sheets files. Save an Excel file as a Google Sheet first.
Can Gemini build charts and pivot tables?
Yes, according to Google's help page, it can create charts and perform actions such as creating a pivot table.
Is it free?
It requires an eligible Workspace or Google AI plan. Check Google's current plan pages.
Can I trust its numbers?
Check them. Use the Show code option, compare with a simple SUM and review the formulas.
IN THE DIRECTORY
See how this tool compares, what it costs and what it is best for.
Open the tool page →

