DataWorks with Gemini
Best Gemini Prompts for Data Analysis
The best Gemini prompts for data analysis: 20 copy-paste templates for Google Sheets, CSV files and the AI function, each with a check step built in.
Updated / 20 prompts / 20 free
01Describe the sheet before any analysis
Before you analyse anything, describe this sheet back to me: what one row represents, what each column means, the unit of every number column (currency, percent, count, days), the date range covered, and how many rows there are. List anything you are unsure about as a question. Do not calculate or chart anything yet.
Make sure Gemini reads your columns the way you do
02Find the problems in an export
Check this sheet for problems before I use it: blank cells by column, duplicate rows, the same thing spelled two ways (for example 'UK' and 'United Kingdom'), numbers stored as text, dates in more than one format, and values that look impossible (negative quantities, dates in the future). Give me a table with the column, the problem, how many rows, and two example rows. Do not fix anything yet.
Catch blanks, duplicates and mixed formats first
03Clean the data with a log of every change
Clean this sheet: trim spaces, make one spelling for each category in [column], convert [column] to numbers, and put every date in [YYYY-MM-DD]. Do not delete any rows. Add a new column called 'cleaning note' that says what you changed in that row, and leave it empty where nothing changed. Then tell me how many rows you changed for each type of fix.
Tidy the sheet without losing track of what changed
04Answer one business question from the sheet
Using this sheet, answer one question: [your question, e.g. which product line grew most from Q2 to Q3]. Give the answer in one sentence first. Then show the numbers it is based on as a small table, the exact columns and filters you used, and one thing in the data that could make the answer wrong.
Get a direct answer instead of a general summary
05Month-over-month change with the reason
Compare [metric] for [this month] with [last month] in this sheet. Break the change down by [category column] and show which categories explain most of the difference, as a table with the old value, new value, change and share of the total change. Finish with three possible reasons I should check, and say clearly that they are possibilities, not findings.
Explain a change in your numbers
06Pivot table from a plain request
Create a pivot table on a new tab that shows total [value column] by [row category] and [column category, e.g. month]. Sort rows from largest to smallest total. Add a grand total row and column. Tell me which columns you used and whether any rows were left out because of blanks.
Summarise a long sheet without building the pivot by hand
07Chart that makes one point
Make one chart from this sheet that shows [the point, e.g. that weekend orders doubled since June]. Choose the chart type that makes that point easiest to see, give it a title that states the finding in plain words, label both axes with units, and tell me which rows and columns the chart uses. If the data does not support the point, say so instead of making the chart.
Build a chart for a slide or an email
08Formula from a plain description
Write a Google Sheets formula for cell [cell] that [what it should do, e.g. returns the total of column D for rows where column B is 'Renewal' and column C is in November 2026]. Explain each part in one line. Then give me two test rows I can type in to check that the formula returns the right result.
Get the formula without remembering the syntax
09Fix a formula that returns the wrong answer
This formula in [cell] returns [what it returns] but I expected [what you expected]: [paste the formula]. Explain in plain words what it actually does, find the reason for the difference, and give me a corrected formula. Point out anything in the data (text numbers, blank cells, extra spaces) that could still break it.
Debug a formula you inherited
10Conditional formatting that flags what matters
Add conditional formatting to [range] so that [rule, e.g. rows where days overdue is more than 30 turn red, and 15 to 30 turn amber]. Use one colour per rule, no more than three colours in total. Tell me the exact rule you applied so I can change it later.
Make problems visible at a glance
11Categorise free-text rows with the AI function
=AI("Put this customer comment into exactly one of these categories: Price, Delivery, Product quality, Support, Other. Reply with the category name only.", B2)
Tag hundreds of comments or ticket titles
12Sentiment column with the AI function
=AI("Rate the sentiment of this review as Positive, Neutral or Negative. Reply with one word only. If the review mixes praise and complaints, reply Neutral.", C2)
Score reviews or survey comments in bulk
13Check the AI function's labels
Column [D] has categories that the AI function assigned to the comments in column [B]. Pick 20 rows at random, read each comment, and tell me for each one whether you agree with the category. Give me the agreement rate, list the rows you disagree with and why, and suggest a clearer category list if the same confusion appears more than twice.
Spot-check bulk labels before you report them
14Compare two files that should match
I attached two files: [file A, e.g. the payment provider export] and [file B, e.g. our invoice list]. Match rows on [ID column, or date plus amount if there is no ID]. Give me three lists: rows in A but not B, rows in B but not A, and rows in both where the amount differs. Show counts first, then the rows. Do not assume a match on amount alone.
Reconcile an export with your own records
15Weekly report from a raw export
From this export, write a one-page weekly report for [audience, e.g. the sales team]. Start with the three numbers that matter most this week compared with last week: [list metrics]. Then one table by [region / product / channel], then three short bullet points on what changed. Under 250 words. Mark any number you had to estimate.
Turn the Monday export into a one-page summary
16Survey results by group with a minimum size
Summarise this survey export. For each question, give the average score overall and by [group column], but leave out any group with fewer than [5] responses and list which ones you left out. Then show the three questions with the lowest scores and the three with the biggest gap between groups.
Present results without identifying anyone
17Spot unusual values
Look for unusual values in [column] in this sheet: values far above or below the rest, sudden jumps between consecutive dates, and repeated identical values that look like copy and paste. List each one with its row, the value, and why it stands out. Do not remove or change anything: I will decide what is a real problem.
Find the rows worth a second look
18Simple forecast with its limits stated
Using the monthly [metric] in this sheet, estimate next month's value. Use a simple method and tell me which one (for example the average of the last three months, or the same month last year plus this year's growth). Give a low, middle and high number, and list three things that would make the estimate wrong. Do not present it as a prediction.
Give a rough number for next month
19Explain the result to someone who did not see the data
Write a short email to [name and role] explaining what this analysis found: [paste the key findings or say 'the summary above']. Start with the conclusion in one sentence, then two or three numbers that support it, then what you recommend and what is still uncertain. No jargon, under 180 words.
Write the email that goes with the numbers
20Instructions for a reusable data-check skill
Write instructions for a Gemini skill called 'Data check' that I will use before every analysis. The skill should: describe what one row represents and the unit of every column, list blanks, duplicates and mixed formats, ask me before changing any data, show the columns and filters behind every number, and end every answer with one thing that could make it wrong. Keep the instructions under 200 words.
Save your checking rules once
Get three new prompts every Monday
27,325 readers get them by email first. Members-only prompts unlock with the same signup.
The best Gemini prompts for data analysis make Gemini read your sheet before it calculates anything: what one row is, what each column means, which units the numbers are in. These 20 templates cover a normal analysis week in Google Sheets and the Gemini app: checking and cleaning an export, answering one business question, pivot tables, charts and formulas, bulk labels with the AI function, reconciling two files, weekly reports and survey summaries. Each one asks Gemini to show the columns and filters behind its numbers, so you can check an answer in a minute instead of trusting it.
If your data already lives in Google Sheets, that is Gemini's advantage: it works inside the sheet, and it can build the pivot table or the formatting instead of telling you how.
Which prompt to use for which job
- A new export just arrived: describe the sheet, find the problems, then clean it with a log of every change.
- Someone asked you a question: answer one business question, or the month-over-month change if the question is "why did this number move".
- You need a summary of a long sheet: the pivot table prompt, then the chart that makes one point.
- You are stuck on a formula: formula from a plain description for a new one, fix a formula for one that returns the wrong answer.
- You have hundreds of comments or tickets: the two AI function templates, then the spot-check prompt before you report anything.
- Two systems disagree: compare two files that should match.
- The numbers have to go somewhere: the weekly report, the survey summary, and the email that explains the result.
If you only keep five
- Describe the sheet before any analysis. Most wrong answers come from a column Gemini read differently from you, such as revenue in cents or a date column that is really the ship date.
- Find the problems in an export. Five minutes here saves a meeting spent arguing about a number that was a duplicate row.
- Answer one business question from the sheet. One question with its filters shown beats "summarise this data", which gets you a tour of the columns.
- Check the AI function's labels. Bulk labels look finished. A 20-row spot-check tells you whether they are.
- Explain the result to someone who did not see the data. The analysis only counts once the person who asked understands it.
A weak data prompt, and the same prompt fixed
A typical first try, with a sales export open in Sheets:
Analyze this data and give me insights.
Gemini will describe the columns, mention the largest values and suggest a chart. None of it answers a question you have, and you cannot tell which rows it used. The fixed version:
Using this sheet, answer one question: which region's revenue fell most from October to November?
Give the answer in one sentence first.
Then show the October and November totals by region as a table, and the exact columns and filters you used.
Finish with one thing in the data that could make the answer wrong.
The second version names the question, asks for the answer before the explanation, makes the working visible and asks Gemini to argue against itself. That last line is the cheapest check there is: it often names the exact problem, a missing week or a region that was renamed, before your manager does.
Where to run these prompts
In Google Sheets. Google's help page for Gemini in Sheets says you select a suggested prompt or write your own in the side panel, and lists what it can do: generate data analysis and insights, build charts and graphs, create formulas and tables, and take actions such as applying conditional formatting, creating a pivot table, adding a dropdown or checkbox, sorting and filtering, finding and replacing text, setting a number format, inserting, deleting or freezing rows and columns, and solving optimisation tasks. The same page says the feature works best with native Google Sheets files, so convert an Excel file to a Google Sheet first. It also notes that a generated chart does not update when the original data changes, so make the chart last, after the data is clean.
With the AI function. For row-by-row work, such as labelling 400 comments, Sheets has a formula: =AI("prompt", range). Google's help page "Use the AI function in Google Sheets" says it can generate text, summarise, categorise, analyse sentiment and look up real-time information from Google Search. Write the prompt once, fill it down the column, then generate. The same page says only the first 350 selected cells with AI functions are generated at a time (you can select more once they finish), and there are short and long term limits, so work in batches. Two of the templates above are ready to paste as formulas; change the cell reference to match your sheet.
In the Gemini app. At gemini.google.com you attach the file instead. Google's Gemini Apps help says you can attach up to 10 files in one prompt, each up to 100 MB (2 GB for video), and ask Gemini to make a chart from an attached spreadsheet, then zoom in and customise it. All of this needs an eligible Google Workspace or Google AI plan for the Sheets features, and what you see can differ by plan.
How much data Gemini can hold at once
A spreadsheet uses up the AI's working space quickly. The limit is called the context window, measured in tokens (small pieces of words and numbers). Google's Gemini Apps help, read on 1 December 2026, lists 32k tokens without a plan, 128k on Google AI Plus and 1 million tokens on Pro and Ultra. A 100 MB file can be far bigger than any of those. When a file is too large for the window, the AI is working from part of it, and its totals can be wrong without any warning.
Three habits keep you on the safe side. Filter to the rows the question needs before you ask, rather than attaching the whole year. Ask for totals in a pivot table or formula, which Sheets calculates, instead of asking Gemini to add up numbers it has read. And check one total by hand against the sheet before you send anything.
Keep the check in every prompt
Every template here ends with a way to check it: the columns and filters used, a count of rows changed, a list of rows left out, or one thing that could make the answer wrong. That is deliberate. An AI answer about data looks exactly as confident when it is wrong as when it is right, and the check is how you tell the difference. If you only add one line to your own prompts, make it "show me the columns and filters you used".
The same idea works for the bulk labels from the AI function. Before you count "how many complaints were about delivery", read 20 labelled rows yourself. If you disagree with more than two or three, rewrite the category list so each category is clearly different from the others, and run it again.
Five mistakes with Gemini and spreadsheets
- Asking for "insights". Ask one question. Gemini answers the question you ask, and "insights" is not one.
- Analysing before checking. Duplicates, text numbers and two spellings of the same region change every total. Run the problems prompt first.
- Letting it add up numbers it has read. Ask for a pivot table or a formula, so the spreadsheet does the arithmetic.
- Trusting bulk labels without a spot-check. Read 20 rows before you report a count.
- Making the chart first. A Gemini chart does not update with the data, so clean first and chart last.
More data analysis prompts
The Claude prompts for data analysis pack covers the same work with long files and SQL in mind, and the ChatGPT prompts for data analysis pack is built around Excel, CSV and SQL. The data analysis prompts page has guided step-by-step prompts such as checking a spreadsheet export before you trust it, going from a messy export to a one-page report and explaining a change in your numbers to your manager, plus writing a spreadsheet formula from a plain description. If your data is HR data, the Gemini prompts for HR pack has the survey and training prompts with a minimum group size built in. When a template works for your team, save it in Prompt Builder so everyone starts from the same version.
How to use these prompts
- 01
Pick the prompt that matches your task
Each prompt below targets one job. Choose the one closest to what you need instead of asking for everything at once.
- 02
Replace every bracketed placeholder
Swap [like this] for your real context: the product, the audience, the document, the constraints. Context is what separates a usable draft from generic output.
- 03
Run it, then push back
Read the first output critically and ask for a revision: tighter, more specific, a different angle, or with the weak assumptions named.
- 04
Save the version that worked
Once a prompt produces the output you want, keep it as a reusable template so the next run starts from your best version, not a blank box.
Questions
What are the best Gemini prompts for data analysis?
The ones that make Gemini read the sheet before it calculates: describe the sheet back to you, list the problems in the export, then answer one specific question and show the columns and filters it used. The 20 templates on this page follow that order, and each one ends with a check you can do in a minute.
Where do I use these prompts: Google Sheets or the Gemini app?
Both. In Google Sheets, Google's help page says you open Gemini in the side panel and can ask it to generate analysis and insights, build charts, create formulas and tables, and do actions such as creating a pivot table or applying conditional formatting. In the Gemini app you attach the file instead. Both need an eligible Google Workspace or Google AI plan for the Sheets features.
How big a file can I give Gemini?
Google's Gemini Apps help says you can attach up to 10 files in one prompt and that files other than video can be up to 100 MB each. How much of a file Gemini can hold in mind at once depends on the context window, which Google lists as 32k tokens with no plan, 128k on Google AI Plus and 1 million tokens on Pro and Ultra (read 1 December 2026).
What is the AI function in Google Sheets?
It is a formula, written as =AI("prompt", range), that runs a prompt on each row. Google's help page "Use the AI function in Google Sheets" says it can generate text, summarise, categorise, analyse sentiment and pull real-time information from Google Search. The same page says only the first 350 selected cells with AI functions are generated at once, and there are short and long term limits: if you hit a long term limit you wait 24 hours.
Can Gemini analyse Excel files?
You can attach an Excel file in the Gemini app. Inside Sheets, Google's help says the Gemini features work best with native Google Sheets files, so save an Excel file as a Google Sheet first.
Do Gemini charts update when the data changes?
Not for a normal sheet. Google's help page says a generated chart does not link or respond to changes in the data used to make it, so regenerate it after you update the numbers. Charts from a BigQuery connected sheet are the exception and refresh with the data.
Gemini, Claude or ChatGPT for data analysis?
Gemini is the easiest choice when the data already lives in Google Sheets, because it works inside the sheet and can create the pivot table or formatting for you. Claude is strong on long files and careful reasoning about a schema. ChatGPT is a good general choice for Excel and CSV files. This site has a data analysis pack for each.