20 of the best prompts for Gemini for Google sheets, step by step across 4 stages. Works with ChatGPT, Claude, and Gemini.
20 of the best prompts for Gemini for Google sheets, step by step across 4 stages. Works with ChatGPT, Claude, and Gemini.
Getting Gemini for Google Sheets right takes more than a single prompt. This 4-stage guide covers Formulas and Functions, Data Analysis and Cleaning, Pivot Tables and Dashboards, and more, breaking the whole process into focused steps where each prompt builds on the last. Write formulas, analyze data, and automate repetitive Sheets tasks with Gemini as your spreadsheet expert. Every prompt is optimized and runs in ChatGPT, Claude, and Gemini.
Gemini writes complex formulas from plain-language descriptions, eliminating formula syntax frustration.
Write Google Sheets formula
Write a Google Sheets formula that [DESCRIBE WHAT YOU WANT TO CALCULATE]. My data is in [COLUMNS/ROWS]. I want the result in [TARGET CELL OR COLUMN].
Use most appropriate lookup
I need a formula to look up [VALUE] from [COLUMN A] and return [VALUE] from [COLUMN B] when there is a match. Use the most appropriate lookup function for this case.
Write formula
Write a formula that sums [COLUMN] only when [CONDITION, E.G., THE VALUE IN COLUMN B EQUALS "PAID" AND COLUMN C IS GREATER THAN 100].
Flag rows
I want to flag rows where [CONDITION, E.G., THE DATE IN COLUMN A IS MORE THAN 30 DAYS OLD AND COLUMN C IS BLANK]. Write a formula that returns "Yes" or "No" based on this condition.
Explain what this formula
Explain what this formula does and rewrite it to be more readable: [PASTE FORMULA]. If there is a simpler approach that produces the same result, suggest it.
Gemini helps you analyze spreadsheet data and clean messy datasets quickly.
Spreadsheet data:
I have this spreadsheet data: [DESCRIBE STRUCTURE OR PASTE SAMPLE]. Help me identify: trends, outliers, and the key insights a decision-maker would want to know.
Data has these
My data has these quality issues: [DESCRIBE ISSUES, E.G., DUPLICATES, INCONSISTENT FORMATTING, MISSING VALUES]. Write the formulas or steps to clean each problem.
Write formula
I need to split [COLUMN WITH COMBINED DATA, E.G., "FIRST LAST" OR "CITY, STATE"] into separate columns. Write the formula for Sheets.
Write formula
Write a formula to remove duplicates from [RANGE] and return a unique list. I need this as a formula, not the built-in Remove Duplicates tool.
Summarize dataset
Summarize this dataset for me: [PASTE DATA OR DESCRIBE STRUCTURE AND SAMPLE]. What are the totals, averages, and top/bottom performers by [DIMENSION]?
Gemini guides you through building pivot tables and dashboard structures that answer your key questions.
Build pivot table
I want to build a pivot table from this data: [DESCRIBE DATA STRUCTURE]. I want to see [DESCRIBE WHAT YOU WANT TO ANALYZE, E.G., TOTAL SALES BY REGION BY MONTH]. Walk me through the setup.
Design dashboard layout
Design a dashboard layout for tracking [WHAT YOU ARE MEASURING, E.G., WEEKLY SALES PERFORMANCE]. What metrics should I show, how should I structure the sheet, and what chart types work best for each metric?
Raw data
I have this raw data and I need a summary table that shows [DESCRIBE SUMMARY]. Write the Sheets formulas to build it dynamically so it updates when I add new rows.
Chart type
What chart type should I use to show [DESCRIBE YOUR DATA AND WHAT YOU WANT TO COMMUNICATE]? Build it in Sheets and recommend the right settings.
Write Apps Script function
Write an Apps Script function to [DESCRIBE AUTOMATION, E.G., EMAIL ME A SUMMARY OF THIS SHEET EVERY MONDAY MORNING / HIGHLIGHT ROWS WHERE COLUMN D IS OVERDUE].
Gemini writes Apps Script code and workflow logic to automate repetitive Sheets tasks.
Write Google Apps Script
Write a Google Apps Script that [DESCRIBE AUTOMATION: SENDS AN EMAIL WHEN A CELL IN COLUMN B CHANGES TO "DONE" / CREATES A NEW ROW WHEN A FORM IS SUBMITTED / IMPORTS DATA FROM ANOTHER SHEET].
Automate this manual process
I want to automate this manual process in Google Sheets: [DESCRIBE THE PROCESS]. What is the best approach: formulas, macros, or Apps Script? Walk me through the implementation.
Write script
Write a script to format this sheet automatically: [DESCRIBE FORMATTING RULES, E.G., ROWS WITH STATUS "OVERDUE" SHOULD BE RED, ROWS WITH "COMPLETE" SHOULD BE GREEN].
Write Apps Script
I have [N] sheets with the same structure that I want to consolidate into one master sheet. Write an Apps Script to combine them and add a column identifying the source sheet.
Create custom function
Create a custom function in Apps Script that [DESCRIBE WHAT IT SHOULD DO]. I want to call it from a cell like =MYCUSTOMFUNCTION(arg1, arg2).
Gemini is available in Google Sheets via the side panel in Google Workspace. You can ask it to create formulas, analyze data, build tables, and even write Apps Script code. The integration is native, meaning it can read your sheet structure without you copying data out.
Yes. Gemini is strong at writing Google Apps Script, which can automate almost anything in Sheets: sending emails, updating data, connecting to other Google services, and running scheduled tasks. Describe what you want to automate in plain language.
All of them: VLOOKUP, INDEX/MATCH, XLOOKUP, SUMIFS, COUNTIFS, array formulas, FILTER, QUERY, IMPORTRANGE, and more. Tell Gemini what you want to accomplish and it selects the right function and writes the correct syntax.
Yes. Paste a complex formula or describe the sheet structure and Gemini explains what it does, what assumptions it makes, and how to modify it.
For Google Sheets users, Gemini has a native advantage. The integration is tighter, and Gemini can leverage Google Workspace context. If you primarily use Sheets rather than Excel, Gemini is the natural choice.
AI Prompts for Gemini for Google Docs
Use Gemini directly inside Google Docs to draft, rewrite, summarize, and format documents in a fraction of the time..
See promptsAI Prompts for Gemini for Data Analysis
Gemini connects to Google Sheets, BigQuery, and Looker Studio natively, making it one of the most practical AI tools for data work within the Google ecosystem.
See promptsAI Prompts for Gemini for Analysis
Use Gemini to analyze information, evaluate options, and surface insights that drive better decisions..
See prompts