Copy a prompt into ChatGPT, Claude, Gemini, or the AI assistant inside Excel or Google Sheets. Fill in the [BRACKETS] with the app you use, the cell ranges, the column headers, and what you want to happen. Describing the layout is the part people skip, and it is what makes the difference between a formula that works first time and one that does not. Formula names and features can differ between Excel versions and Google Sheets, so say which you use. Test every formula on rows where you already know the answer, and work on a copy before running any macro or script. Use made up sample rows instead of pasting real customer or payroll data.
Writing formulas
Write a formula from a plain description
Any time you know what you want but not the formula.
I use [EXCEL OR GOOGLE SHEETS]. My data is in [RANGE, E.G. A1:F500] with headers in row 1: [LIST COLUMN HEADERS AND WHAT THEY CONTAIN]. Write a formula that [WHAT YOU WANT, E.G. TOTALS SALES FOR EACH REP IN MARCH]. Tell me which cell to put it in, explain each part in plain words, and mention any version of the app it will not work in.
Look up a value from another table
For matching customer, product, or price data between sheets.
In [EXCEL OR GOOGLE SHEETS], I have [SHEET 1 DESCRIPTION] and [SHEET 2 DESCRIPTION]. I want to pull [VALUE TO RETURN] from sheet [SHEET NAME] into column [COLUMN] by matching on [MATCHING COLUMN]. Write the formula using XLOOKUP, and also an INDEX and MATCH version for older versions. Show what to return if no match is found: [FALLBACK TEXT].
Sum or count with conditions
For reports by customer, month, product, or status.
Write a formula for [EXCEL OR GOOGLE SHEETS] that [SUMS OR COUNTS] [COLUMN] where [CONDITION 1] and [CONDITION 2], for example only paid invoices from a certain client in a date range. My columns are: [COLUMN LETTERS AND HEADERS]. Make the conditions reference cells so I can change them without editing the formula.
Work with dates
For due dates, aging, scheduling, and monthly reports.
My sheet has dates in column [COLUMN] formatted as [DATE FORMAT]. Write formulas to: [TASKS, E.G. GET THE MONTH NAME, COUNT DAYS BETWEEN TWO DATES, FLAG INVOICES OVER 30 DAYS OLD, FIND THE NEXT WORKING DAY]. Use [EXCEL OR GOOGLE SHEETS] and explain how to fix dates that are stored as text.
Build an IF formula with several outcomes
For status labels, tiers, commissions, and grades.
In [EXCEL OR GOOGLE SHEETS], column [COLUMN] contains [VALUE TYPE]. I want column [OUTPUT COLUMN] to show [OUTCOME 1] when [RULE 1], [OUTCOME 2] when [RULE 2], and [OUTCOME 3] otherwise. Write it with IFS and with nested IF, and tell me which is easier to maintain.
Calculate percentages and growth
For margins, growth rates, and targets.
Write formulas for [EXCEL OR GOOGLE SHEETS] to calculate [WHAT, E.G. MONTH OVER MONTH GROWTH, MARGIN PERCENTAGE, SHARE OF TOTAL] using these columns: [COLUMNS AND HEADERS]. Handle divide by zero errors cleanly, show how to format the result as a percentage, and give an example with made up numbers so I can check it.
Write a running total and balance
For simple cash, inventory, or account tracking.
My sheet tracks [TRANSACTIONS, STOCK OR CASH] with dates in [COLUMN], money in in [COLUMN], and money out in [COLUMN]. Write a running balance formula for [EXCEL OR GOOGLE SHEETS] starting from an opening balance in [CELL]. Explain how to copy it down without breaking it and how to handle blank rows.
Cleaning and organizing data
Clean messy text
When imported data from forms or other apps is messy.
Column [COLUMN] in my [EXCEL OR GOOGLE SHEETS] file has messy data, for example: [PASTE 5 SAMPLE VALUES]. Write formulas to [TASKS, E.G. TRIM SPACES, FIX CAPITALS, REMOVE SYMBOLS, STANDARDIZE PHONE NUMBERS]. Then explain how to replace the original column with the cleaned values.
Split or combine columns
For names, addresses, and codes in the wrong shape.
In [EXCEL OR GOOGLE SHEETS], column [COLUMN] contains values like [EXAMPLE VALUES]. I want to [SPLIT INTO FIRST AND LAST NAME, SPLIT ADDRESS PARTS, OR COMBINE COLUMNS] into columns [OUTPUT COLUMNS]. Give me a formula approach and a no formula approach using built in tools, and warn me about rows that might not split correctly.
Find and remove duplicates
For customer lists and imported records.
My sheet has [NUMBER] rows of [DATA TYPE] in [RANGE]. Duplicates are rows where [COLUMNS THAT DEFINE A DUPLICATE] match. Give me a formula to flag duplicates first so I can review them, then the steps to remove them safely in [EXCEL OR GOOGLE SHEETS] while keeping the [FIRST OR MOST RECENT] entry.
Extract part of a text value
For pulling codes, emails, or IDs out of longer text.
Column [COLUMN] contains text like [PASTE EXAMPLES]. Write a formula for [EXCEL OR GOOGLE SHEETS] that pulls out [WHAT TO EXTRACT, E.G. THE ORDER NUMBER, THE DOMAIN FROM AN EMAIL, THE TEXT BETWEEN BRACKETS]. Explain how it works and test it against each example I gave.
Fix a formula error
When a formula breaks and you cannot see why.
This formula in [EXCEL OR GOOGLE SHEETS] returns [ERROR, E.G. #N/A, #VALUE!, #REF!, OR WRONG RESULT]: [PASTE FORMULA]. The data it uses looks like this: [DESCRIBE OR PASTE SAMPLE ROWS]. Explain the most likely causes in order, show how to check each one, and give a corrected formula.
Explain a formula someone else wrote
When you inherit a spreadsheet you do not understand.
Explain this formula in plain English, step by step, for someone who is not a spreadsheet expert: [PASTE FORMULA]. Tell me what each function does, what the cell references point to ([DESCRIBE SHEET LAYOUT]), and whether there is a simpler way to get the same result.
Set up data validation
To stop typos before they spread.
I want column [COLUMN] in my [EXCEL OR GOOGLE SHEETS] file to only accept [ALLOWED VALUES OR RULE, E.G. A DROPDOWN OF STATUSES, DATES IN THIS YEAR, NUMBERS ABOVE ZERO]. Give me step by step instructions to set up data validation, a custom error message, and how to highlight existing entries that break the rule.
Reports, summaries and dashboards
Build a pivot table summary
For monthly sales, expense, and job reports.
My data in [RANGE] has these columns: [COLUMN HEADERS]. I want a summary showing [WHAT, E.G. TOTAL SALES BY MONTH AND PRODUCT]. Give step by step instructions to build it as a pivot table in [EXCEL OR GOOGLE SHEETS], including grouping dates by month, and a formula alternative using SUMIFS or QUERY.
Design a simple dashboard
When you want key numbers at a glance.
I want a one page dashboard in [EXCEL OR GOOGLE SHEETS] for my [BUSINESS TYPE] showing [METRICS, E.G. MONTHLY REVENUE, TOP PRODUCTS, OUTSTANDING INVOICES]. My raw data is on a sheet named [SHEET NAME] with columns [COLUMNS]. Suggest the layout, the formulas for each number, the best chart for each metric, and how to keep it updating automatically.
Highlight important rows automatically
So problems stand out without reading every row.
Write conditional formatting rules for [EXCEL OR GOOGLE SHEETS] that highlight [CONDITION, E.G. OVERDUE INVOICES, LOW STOCK BELOW REORDER LEVEL, DUPLICATE EMAILS] in range [RANGE]. Give the exact custom formula for each rule, the colors to use, and the steps to apply them.
Write a QUERY formula in Google Sheets
For flexible reports in Google Sheets.
In Google Sheets, my data is in [SHEET NAME]![RANGE] with headers [COLUMN HEADERS]. Write a QUERY formula that [SELECTS, FILTERS, GROUPS, SORTS AS NEEDED, E.G. TOTAL HOURS BY EMPLOYEE FOR THIS MONTH, SORTED HIGHEST FIRST]. Explain each clause and how to make the filter values come from cells.
Create a dynamic filtered list
For live lists like open jobs or unpaid invoices.
In [EXCEL OR GOOGLE SHEETS], I want a separate area that automatically lists all rows from [RANGE] where [CONDITION], sorted by [COLUMN], updating as new data is added. Write it with FILTER and SORT and tell me what happens if no rows match and how to show a friendly message instead.
Compare two lists
For reconciling customer lists, stock counts, or payments.
I have two lists in [EXCEL OR GOOGLE SHEETS]: [LIST 1 LOCATION AND CONTENT] and [LIST 2 LOCATION AND CONTENT]. Write formulas to show which items are in both, only in the first, and only in the second. Make it work even if spacing and capital letters differ.
Choose the right chart
Before you make a chart for a meeting or report.
I want to show [WHAT YOU WANT TO SHOW, E.G. SALES TREND OVER 12 MONTHS, EXPENSE BREAKDOWN, TARGET VS ACTUAL] to [AUDIENCE] using this data: [DESCRIBE DATA]. Recommend the best chart type in [EXCEL OR GOOGLE SHEETS], explain why, and give step by step instructions to build and format it clearly.
Templates and automation
Design a spreadsheet from scratch
When you are starting a new tracker.
Design a [EXCEL OR GOOGLE SHEETS] spreadsheet for [PURPOSE, E.G. TRACKING JOBS, INVOICES, INVENTORY, OR EMPLOYEE HOURS] for a [BUSINESS TYPE]. Give me the tabs, the columns for each tab with data types, the formulas needed, dropdowns, and a summary tab. Keep it simple enough for staff with basic skills.
Build a quote or invoice template
For simple quoting and invoicing without extra software.
Build an invoice template layout in [EXCEL OR GOOGLE SHEETS] for [BUSINESS NAME]. Include line items with quantity, unit price, and line total, a subtotal, tax at [TAX RATE], discount, and grand total. Give the formulas for each total, which cells to lock, and how to number invoices.
Write a macro or Apps Script
For repetitive tasks you do every week.
Write a [VBA MACRO FOR EXCEL OR APPS SCRIPT FOR GOOGLE SHEETS] that [TASK, E.G. COPIES ROWS MARKED DONE TO AN ARCHIVE SHEET, OR EMAILS ME WHEN STOCK FALLS BELOW A LEVEL]. My sheet layout is: [SHEET NAMES AND COLUMNS]. Comment each line, tell me exactly how to install and run it, and remind me to test it on a copy first.
Build a budget versus actual sheet
For keeping spending on track month by month.
Create a monthly budget versus actual layout in [EXCEL OR GOOGLE SHEETS] for a [BUSINESS TYPE] with categories [CATEGORIES]. Include columns for budget, actual, difference, and difference percentage, conditional formatting for overspending, and a year to date total. Give every formula.
Turn a manual process into a sheet
When a weekly task eats hours of copying and adding.
Every [FREQUENCY] I [DESCRIBE MANUAL PROCESS, E.G. COPY BOOKINGS FROM EMAILS AND ADD UP COMMISSIONS]. Suggest how to turn this into a [EXCEL OR GOOGLE SHEETS] workflow: the layout, the formulas, what still needs to be typed by hand, and what could be imported or automated.
Questions people ask
Can ChatGPT write Excel formulas?
Yes. ChatGPT, Claude, and Gemini are good at writing and explaining Excel and Google Sheets formulas. The trick is to describe your sheet: which columns hold what, where the headers are, which app and version you use, and what result you want. Always test the formula on a few rows where you know the right answer before trusting it across your data.
What is the best ChatGPT prompt for Excel?
State the app, describe the data layout with column letters and headers, give a few sample values, and describe the result in plain words. For example: 'In Google Sheets, column A has dates and column C has sale amounts. Write a formula that totals sales for the month in cell F1.' Then ask it to explain each part.
Is it safe to paste my spreadsheet into ChatGPT?
You usually do not need to paste real data. Describe the columns and use a few made up sample rows instead. Avoid pasting customer details, employee pay, or financial records into a public chatbot. If you want AI to work directly on your files, the assistants built into Excel and Google Sheets keep your data inside those apps under your account's terms.