GPTPrompts.AI
Prompt Guides
AI Agents
All Guides

Learn AI

  • Free AI Course
  • AI Courses & Certifications
  • Learn AI Fundamentals
  • Learn AI by Country
  • What is Prompt Engineering?
  • How to Use ChatGPT
  • How to Use Claude
  • How to Use Gemini

AI Tools & Agents

  • AI Tools Directory
  • AI Agents Directory
  • AI Tool Comparisons
  • Free AI Tools
  • AI Image Generators
  • AI Automation
  • AI for Business

Prompt Guides

  • ChatGPT Prompts
  • Claude Prompts
  • Gemini Prompts
  • Midjourney Prompts
  • Perplexity Prompts
  • Advanced Techniques
  • All Prompt Guides

Career & Industry

  • AI for Professions
  • Make Money with AI
  • Prompt Engineering Career
  • AI for Marketing
  • AI for Students
  • AI for Data Analytics
  • AI for Exams
GPTPrompts.AI·Your complete AI learning platform
AI CoursesAI ToolsContact / Advertise

© 2026 GPTPrompts.AI · All rights reserved

Excel60+ prompts

ChatGPT Prompts for Excel 2026:
60+ Copy-Paste Templates

Copy-paste prompts for every Excel challenge — formula writing, data cleaning, PivotTables, charts, dashboards, VBA macros, and Power Query. Works with ChatGPT, Claude, and Gemini.

60+
Excel prompts
5
Categories
10
FAQ answers
Formula writingData cleaningPivotTables & chartsDashboardsVBA & Power Query

Formula Writing & Explanation

Get ChatGPT to write, fix, or explain any Excel formula — from basic lookups to complex nested logic.

Formulas

Write a Formula from Plain English

Write an Excel formula that does the following:
[Describe what you want it to do in plain English]

Context:
- Column A contains: [describe data]
- Column B contains: [describe data]
- I want the result in column: [which column]
- Any special conditions: [e.g. "if value is blank, return 0", "ignore case", "only include rows where column C = 'Active'"]

Give me the formula, then explain each part of it in plain English so I understand how it works.
Formulas

Fix a Broken Formula

My Excel formula is returning an error or wrong result. Please help me fix it.

Formula: [paste your formula]
Expected result: [what it should return]
Actual result or error: [what it's currently returning — e.g. #VALUE!, #REF!, wrong number]
Data description: [briefly describe what's in each relevant column]

Please: (1) identify the bug, (2) show the corrected formula, (3) explain what was wrong and why the fix works.
Formulas

Explain This Formula Step by Step

Explain this Excel formula in plain English, step by step:

[paste formula here]

Context: This formula is used to [briefly describe what it's supposed to do].

Break it down so someone who isn't an Excel expert could understand it. Explain: what each function does, how they're nested, and what the formula returns overall.
Formulas

Convert VLOOKUP to XLOOKUP

Convert this Excel VLOOKUP formula to the modern XLOOKUP equivalent:

VLOOKUP: [paste formula]

After converting:
1. Show me the XLOOKUP formula
2. Explain what changed and why XLOOKUP is better for this use case
3. Highlight any differences in behaviour I should be aware of (e.g. handling of errors, column count changes)

Data Cleaning & Transformation

Prompts for cleaning messy data, standardising formats, splitting columns, and removing duplicates.

Data Cleaning

Clean and Standardise a Data Column

I have a column in Excel with messy data that needs cleaning. Help me write formulas or steps to:
[Choose what applies:]
- Remove leading/trailing spaces
- Standardise capitalisation (all UPPER / all lower / Title Case)
- Remove special characters except [specify which to keep]
- Remove numbers/text from a mixed column
- Standardise date formats to DD/MM/YYYY or YYYY-MM-DD
- Extract only the [first name / last name / domain / number] from mixed text

Column description: [What's in it and what it looks like now]
Desired output: [What it should look like]
Data Cleaning

Split One Column into Multiple

I need to split a single Excel column into multiple columns. Here's what the data looks like:

Current format: [e.g. "John Smith, john@email.com, London" all in one cell]
Desired output:
- Column A: [First part — e.g. First Name]
- Column B: [Second part — e.g. Last Name]
- Column C: [Third part — e.g. Email]

The separator is: [comma / space / dash / semicolon / other]

Give me the formulas to split this data into separate columns, plus any edge cases I should watch for.
Data Cleaning

Find and Handle Duplicates

Help me find and deal with duplicate rows in my Excel spreadsheet.

My data is in columns [A through X] and has [number] rows.
A "duplicate" means: [e.g. same email address / same order ID / all columns match / first 3 columns match]

I want to:
[Choose one:]
- Highlight duplicates with conditional formatting
- Create a formula column that flags duplicates as TRUE/FALSE
- Keep only the first occurrence and remove the rest
- Keep only the most recent row (based on column [X] which contains dates)

Show me the steps or formulas to accomplish this.
Data Cleaning

Combine Data from Multiple Sheets

I have data spread across [number] sheets in the same Excel workbook and need to combine them into one master sheet.

Sheet names: [List them — e.g. January, February, March]
Data structure: Each sheet has the same columns: [list column headers]
Starting row of data: Row [X] (row 1 is headers)

Options I want help with:
1. A formula approach to pull data from each sheet into a master sheet
2. A Power Query approach (if that's better for this case)
3. How to keep the master sheet automatically updated when I add rows to other sheets

Which approach do you recommend and why?

Data Analysis & Calculations

Prompts for building calculations, running comparisons, summarising data, and finding insights.

Analysis

Build a Summary Calculation Table

Help me build a summary table in Excel that calculates key metrics from my raw data.

My raw data is on a sheet called [Sheet Name] and contains:
- [Column A]: [description]
- [Column B]: [description]
- [Column C]: [description]

I want a summary table that shows:
- Total [metric] by [category]
- Average [metric] per [group]
- Count of [items] where [condition]
- [Any other metrics you need]

Should I use SUMIF/COUNTIF formulas, a PivotTable, or SUMPRODUCT? Recommend the best approach and show me how to build it.
Analysis

Year-over-Year or Period Comparison

I need to compare data across two time periods in Excel and calculate the variance.

Data setup:
- Column A: [Category names]
- Column B: [Current period values — e.g. 2025]
- Column C: [Previous period values — e.g. 2024]

I need formulas to calculate:
1. Absolute variance (Current minus Previous)
2. Percentage change ((Current - Previous) / Previous)
3. Direction indicator: UP / DOWN / FLAT
4. Optional: a simple in-cell bar using REPT to visualise size

Format the percentage to 1 decimal place. Handle divide-by-zero errors for rows where the previous period is 0.
Analysis

Running Total and Cumulative Calculations

I need to add running totals and cumulative calculations to my Excel spreadsheet.

Column layout:
- Column A: [Date or period]
- Column B: [Values to accumulate — e.g. sales, revenue, units]

Help me create:
1. A running total column (cumulative sum from row 1 to current row)
2. Running percentage of total (what % of the overall total has been reached so far)
3. A formula that resets the running total each time a new month/year starts (if applicable)

Make the formulas work correctly even when I add new rows at the bottom.
Analysis

Statistical Summary of a Dataset

Help me calculate a statistical summary of my dataset in Excel.

My data is in column [X], rows [Y to Z], and represents [describe what the data is].

I want to calculate:
- Count of values
- Sum
- Average (mean)
- Median
- Mode
- Standard deviation
- Min and Max
- 25th percentile (Q1), 75th percentile (Q3), and IQR
- Count of outliers (values more than 2 standard deviations from the mean)

Show me the formula for each one and put them all in a clean summary table layout.

PivotTables, Charts & Dashboards

Build powerful PivotTables, create the right charts, and design Excel dashboards that communicate clearly.

PivotTables

Build a PivotTable — Step by Step

Walk me through building a PivotTable in Excel to answer this question:
[Describe what you want to know — e.g. "What are total sales by product category for each month?"]

My raw data has these columns:
[List your column headers]

The data is on sheet: [Sheet name]
Row count: approximately [number]

Please:
1. Tell me exactly where to place the PivotTable
2. Which field goes in Rows, Columns, Values, and Filters
3. How to format the value field (sum, count, average, %)
4. Any grouping I should apply (e.g. group dates by month)
5. How to sort the PivotTable to show the most useful view first
PivotTables

Choose the Right Chart Type

I need to visualise this data in Excel and I'm not sure which chart type to use:

Data description: [Describe what you have — e.g. "Monthly revenue by product category for 12 months, 5 categories"]
What I want to show: [e.g. "How each category contributes to total revenue each month" / "Which category grew the fastest" / "How values compare at a single point in time"]

Please:
1. Recommend the best chart type for this goal and explain why
2. Tell me the alternatives and when I'd choose those instead
3. Walk me through how to create the recommended chart in Excel (which columns to select, chart type to choose)
4. Give me 2-3 tips to make the chart look cleaner and more professional
PivotTables

Build a Simple Excel Dashboard

Help me plan and build a simple one-page Excel dashboard to track [describe what you're tracking — e.g. monthly sales performance / project milestones / budget vs actuals].

My raw data includes: [List your key data columns]
Audience: [Who will use this — e.g. my manager, the team, myself]
Key questions the dashboard should answer:
1. [Question 1]
2. [Question 2]
3. [Question 3]

Please help me:
1. Decide which charts and tables to include
2. How to structure the layout on the page
3. How to use named ranges or dynamic references so the dashboard updates automatically
4. How to use slicers or dropdowns to let users filter the data
PivotTables

Dynamic Chart with Dropdown Filter

I want to create a chart in Excel that updates dynamically based on a dropdown selection.

My data: [Describe your data structure]
What I want to filter by: [e.g. product category, region, year, sales rep]
Chart type: [e.g. bar chart, line chart]

Walk me through:
1. How to create a Data Validation dropdown list in a cell
2. How to use INDEX/MATCH or OFFSET to create dynamic source data that changes based on the dropdown
3. How to link the chart to the dynamic range
4. Testing — how to verify it's working correctly

I'm using Excel [version: 365 / 2019 / 2016].

Automation, VBA & Power Query

Prompts for automating repetitive tasks, writing VBA macros, and using Power Query to transform data.

Automation

Write a VBA Macro for a Repetitive Task

Write a VBA macro in Excel that automates this repetitive task:
[Describe exactly what you do manually — e.g. "Every week I copy column A from Sheet1, paste it as values into Sheet2 column B, then sort Sheet2 by column C descending, then save the file"]

Additional requirements:
- Add a confirmation message before the macro runs
- Show a success message when it's done
- Handle errors gracefully (don't crash if a sheet is missing)

I'll run this macro by clicking a button. Include instructions for how to add it to a button on the sheet.
Automation

Power Query — Clean and Import Data

Help me use Power Query in Excel to import and clean data from [CSV file / another Excel file / web URL / SharePoint].

Source: [Describe the source and what the raw data looks like]

Transformations I need:
- Remove columns: [list columns to drop]
- Rename columns: [old name → new name]
- Filter rows where [column] [is / is not / contains] [value]
- Remove blank rows
- Change data type of [column] to [Text / Number / Date]
- [Any other transformations]

Goal: Load the cleaned data into Excel sheet [Sheet name] and set it to refresh automatically [manually / on file open / on schedule].

Walk me through the steps in Power Query Editor.
Automation

Automate a Monthly Report

I create the same Excel report every month and want to automate it. Help me plan the automation.

Current manual process:
1. [Step 1 — e.g. copy data from system export CSV into Raw Data tab]
2. [Step 2 — e.g. run calculations in Summary tab]
3. [Step 3 — e.g. update charts]
4. [Step 4 — e.g. save as new file with current month name]

My Excel version: [365 / 2019 / 2016]

Please:
1. Identify which steps can be automated with Power Query, formulas, or VBA
2. Recommend the best approach for each step
3. Give me a high-level plan for how to build this automation
4. Highlight any steps that will still need manual input
Automation

Create a Dynamic Drop-Down List

Help me create a dynamic drop-down list in Excel that automatically updates when I add new items.

Setup:
- My list of options is in column [X] on sheet [Sheet name]
- The drop-down should appear in cell [or range] [specify]
- When I add a new item to the list, the drop-down should automatically include it

Method options:
1. Using a named range + OFFSET (older approach)
2. Using a Table (Excel Table) + structured reference (recommended modern approach)
3. Using UNIQUE formula (if Excel 365)

Recommend the best method for my setup and walk me through creating it step by step, including how to handle blank entries in the list.

ChatGPT for Excel — FAQ

Everything you need to know about using AI for Excel.

Related Prompt Guides

ChatGPT Prompts for Google Sheets

Formulas, data analysis, and automation for Google Sheets

AI Prompts for Data Analysts

SQL, Python, dashboards, and data storytelling prompts

ChatGPT for Data Analysis

Analyse datasets, find insights, and build reports with AI

AI Prompts for Personal Finance

Budget trackers, expense analysis, and financial planning

Data & Spreadsheets

  • Google Sheets Prompts
  • SQL Prompts
  • AI for Data Analysts
  • ChatGPT Data Analysis

Business Productivity

  • ChatGPT for Business
  • Business Plan Prompts
  • AI for Consultants
  • AI Prompts for Finance

AI Models

  • ChatGPT Prompts
  • Claude Prompts
  • Gemini Prompts
  • Grok Prompts