AI Prompts for Gemini for Google Sheets

20 of the best prompts for Gemini for Google sheets, step by step across 4 stages. Works with ChatGPT, Claude, and Gemini.

AI Prompts for Gemini for Google Sheets

20 of the best prompts for Gemini for Google sheets, step by step across 4 stages. Works with ChatGPT, Claude, and Gemini.

Scroll to explore

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.

Formulas and Functions

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].

Formulas and Functions

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.

Formulas and Functions

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].

Formulas and Functions

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.

Formulas and Functions

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.

Formulas and Functions

Data Analysis and Cleaning

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 Analysis and Cleaning

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.

Data Analysis and Cleaning

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.

Data Analysis and Cleaning

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.

Data Analysis and Cleaning

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]?

Data Analysis and Cleaning

Pivot Tables and Dashboards

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.

Pivot Tables and Dashboards

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?

Pivot Tables and Dashboards

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.

Pivot Tables and Dashboards

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.

Pivot Tables and Dashboards

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].

Pivot Tables and Dashboards

Automation and Workflow

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].

Automation and Workflow

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.

Automation and Workflow

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].

Automation and Workflow

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.

Automation and Workflow

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).

Automation and Workflow

Frequently asked questions

How is Gemini integrated with Google Sheets?+

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.

Can Gemini write Apps Script for complex automations?+

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.

What formula types can Gemini help with?+

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.

Can Gemini help me understand someone else's complex spreadsheet?+

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.

Is Gemini better than Excel's Copilot for spreadsheets?+

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.