Excel Formulas From Plain English: The ChatGPT Workflow
Describe what you need, get a working formula back. How to use ChatGPT for Excel formulas, spreadsheet analysis and macros, with examples you can copy.

Describe the result you want in plain English, paste the formula ChatGPT returns into the sheet, and check it on one row before trusting it. That workflow covers formulas, data cleaning, and macros without learning syntax. ChatGPT does not run inside Excel; it is the consultant next to it, and the examples below show exactly how to phrase a request so the first answer works.
Excel formulas used to require memorizing cryptic syntax or endless Googling. Now you can just ask ChatGPT.
Whether you need a complex VLOOKUP, want to analyze sales data, or need to automate repetitive tasks with macros, ChatGPT can help. Hereâs how to use it effectively.
What ChatGPT Can Do for Excel
Letâs be clear about capabilities:
ChatGPT Excels At:
- â Writing formulas from plain English descriptions
- â Explaining what complex formulas do
- â Debugging formulas that arenât working
- â Suggesting better approaches to problems
- â Creating VBA macros and scripts
- â Analyzing uploaded spreadsheets (free and Plus)
- â Teaching Excel concepts
ChatGPT Cannot:
- â Edit your Excel file directly
- â Connect to live Excel data
- â Run inside Excel (thatâs Copilot)
- â Access your computerâs files automatically
Bottom line: ChatGPT is your Excel consultant. You still copy-paste the formulas yourself.
Getting Started: Three Ways to Use ChatGPT for Excel
Method 1: Describe Your Problem (Works for Everyone)
Simply tell ChatGPT what youâre trying to do:
You: âI have sales data in column A (product names) and column B (sales amounts). I need a formula to sum all sales for products containing âPremiumâ in the name.â
ChatGPT:
=SUMIF(A:A,"*Premium*",B:B)This works with the free tier. Just describe your spreadsheet structure clearly.
Method 2: Upload Your Spreadsheet (Free and Plus)
Both free and Plus users can upload .xlsx files directly:
- Click the attachment icon in ChatGPT
- Select your Excel file
- Ask questions about your actual data
Example prompts after uploading:
- âSummarize this dataâ
- âFind any anomalies or outliersâ
- âCreate a formula to calculate monthly growthâ
- âWhat trends do you see?â
ChatGPT sees your actual column names, data types, and values, giving much more accurate help.
Note: Free users can upload up to 3 files per day (~50 MB for spreadsheets, 512 MB for other files). Plus users get significantly higher limits.
Method 3: Screenshot Your Spreadsheet
Prefer not to upload your file? Take a screenshot instead:
- Screenshot the relevant part of your spreadsheet
- Upload the image to ChatGPT
- Ask your question
ChatGPT can read the structure and give formula help based on what it sees. This is also useful when youâre working with sensitive data youâd rather not upload as a file.
Formula Help: From Basic to Advanced
Simple Formulas
âSum column Bâ
=SUM(B:B)âAverage of cells B2 to B100â
=AVERAGE(B2:B100)âCount non-empty cells in column Aâ
=COUNTA(A:A)ChatGPT handles these instantly, but the real value is in complex formulas.
VLOOKUP and INDEX-MATCH
âI need to look up a price from a separate table. Product name is in A2, price table is in Sheet2 columns A and Bâ
=VLOOKUP(A2,Sheet2!A:B,2,FALSE)âSame thing but the lookup column isnât the first columnâ
=INDEX(Sheet2!B:B,MATCH(A2,Sheet2!A:A,0))ChatGPT will explain when to use VLOOKUP vs INDEX-MATCH and why.
Conditional Formulas
âIf sales > 1000, show âHighâ, if > 500 show âMediumâ, otherwise âLowââ
=IF(B2>1000,"High",IF(B2>500,"Medium","Low"))âSum sales only where region is âEastâ and month is âJanuaryââ
=SUMIFS(C:C,A:A,"East",B:B,"January")Text Manipulation
âExtract the first name from a full name in A2â
=LEFT(A2,FIND(" ",A2)-1)âCombine first name in A2 and last name in B2 with a spaceâ
=A2&" "&B2Or using CONCAT (useful when joining ranges):
=CONCAT(A2," ",B2)Date Formulas
âCalculate age from birthdate in A2â
=DATEDIF(A2,TODAY(),"Y")âGet the last day of the month for a date in A2â
=EOMONTH(A2,0)âFind the number of business days between two datesâ
=NETWORKDAYS(A2,B2)Array Formulas (The Powerful Stuff)
âFind the second largest value in column Bâ
=LARGE(B:B,2)âSum the top 5 values in column Bâ
=SUM(LARGE(B2:B100,{1,2,3,4,5}))âCount unique values in column Aâ
Modern Excel (365/2021+):
=ROWS(UNIQUE(A2:A100))Older Excel:
=SUMPRODUCT(1/COUNTIF(A2:A100,A2:A100))Real-World Examples
Example 1: Sales Commission Calculator
Your situation: âI have a sales table with columns: Salesperson (A), Sales Amount (B), Region (C). Commission is 5% for sales under $10,000, 7% for $10,000-$50,000, and 10% for above $50,000.â
ChatGPTâs formula:
=IF(B2>50000,B2*0.1,IF(B2>=10000,B2*0.07,B2*0.05))Bonus: Ask ChatGPT to explain the formula, and it will break down each part.
Example 2: Dynamic Dashboard Metrics
Your situation: âI need to calculate Month-over-Month growth percentage. Current month sales in B2, previous month in B3.â
ChatGPTâs formula:
=(B2-B3)/B3*100Or formatted as percentage:
=(B2-B3)/B3(Then format cell as percentage)
Handle division by zero:
=IF(B3=0,"N/A",(B2-B3)/B3)Example 3: Data Cleanup
Your situation: âColumn A has names in all caps. I need proper capitalization.â
ChatGPTâs formula:
=PROPER(A2)Your situation: âRemove extra spaces from messy data in A2â
=TRIM(A2)Your situation: âExtract numbers from text like âOrder #12345ââ
=TEXTJOIN("",TRUE,IF(ISNUMBER(MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1)*1),MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1),""))(This is where ChatGPT really shines, who wants to figure that out manually?)
Example 4: Conditional Formatting Formula
Your situation: âI want to highlight rows where sales are below averageâ
ChatGPTâs answer:
- Select your data range
- Conditional Formatting â New Rule â Use a formula
- Enter:
=$B2<AVERAGE($B:$B) - Choose your highlight color
ChatGPT gives you the formula AND the steps to apply it.
Creating VBA Macros with ChatGPT
Need to automate repetitive tasks? ChatGPT writes VBA code too.
Example: Auto-Format New Data
Your request: âWrite a macro that formats any new data I paste: bold headers, auto-fit columns, add bordersâ
ChatGPTâs VBA:
Sub FormatNewData() Dim ws As Worksheet Set ws = ActiveSheet
' Find the used range Dim dataRange As Range Set dataRange = ws.UsedRange
' Bold the header row dataRange.Rows(1).Font.Bold = True
' Auto-fit all columns dataRange.Columns.AutoFit
' Add borders With dataRange.Borders .LineStyle = xlContinuous .Weight = xlThin End With
MsgBox "Formatting complete!"End SubHow to use it:
- Press Alt + F11 to open VBA editor
- Insert â Module
- Paste the code
- Close editor
- Run with Alt + F8
Example: Batch Process Files
Your request: âWrite a macro to combine all .xlsx files from a folder into one sheetâ
ChatGPT will generate a complete VBA script that:
- Opens a folder picker dialog
- Loops through all Excel files
- Copies data to a master sheet
- Handles headers properly
This kind of automation used to require hiring a developer or hours of learning VBA.
Analyzing Data with ChatGPT
Upload and Explore
After uploading a spreadsheet (available on both free and Plus tiers), try these prompts:
Initial exploration:
- âWhatâs in this spreadsheet?â
- âSummarize the key metricsâ
- âWhatâs the date range of this data?â
Finding insights:
- âWhat trends do you see?â
- âAre there any outliers or anomalies?â
- âWhich product category performs best?â
Specific analysis:
- âCalculate the correlation between marketing spend and salesâ
- âWhatâs the average order value by region?â
- âShow me month-over-month growthâ
Creating Visualizations
Ask ChatGPT:
- âCreate a bar chart of sales by regionâ
- âShow me a trend line of monthly revenueâ
- âMake a pie chart of market shareâ
ChatGPT will generate charts using its built-in data analysis feature. You can download the chart or ask for modifications.
Pro Tips for Better Results
1. Be Specific About Your Data
Bad: âWrite a formula for commissionâ
Good: âWrite a formula for commission. Sales amount is in column C, starting row 2. Commission is 5% for sales under $1000, 8% for $1000-$5000, 12% above $5000.â
2. Mention Your Excel Version
Some functions only work in newer Excel:
Include this: âIâm using Excel 365â or âIâm using Excel 2019â
ChatGPT will avoid suggesting functions your version doesnât support.
3. Describe the Expected Output
Good: âI need a formula that returns TRUE if both conditions are met, FALSE otherwiseâ
This prevents ambiguity about what you want.
4. Ask for Explanations
Add: âExplain how this formula works step by stepâ
Understanding the formula helps you modify it later and builds your Excel skills.
5. Request Error Handling
Add: âInclude error handling for blank cells and division by zeroâ
ChatGPT will wrap your formula in appropriate IFERROR or IF statements.
6. Test Edge Cases
After getting a formula, ask:
- âWhat happens if the cell is empty?â
- âWhat if thereâs no match?â
- âWill this work with negative numbers?â
ChatGPT vs Microsoft Copilot for Excel
Both can help with Excel, but they work differently:
| Feature | ChatGPT | Copilot in Excel |
|---|---|---|
| Works inside Excel | No | Yes |
| Edits cells directly | No | Yes |
| Formula explanations | Excellent | Good |
| Complex formula help | Excellent | Very Good |
| VBA macro creation | Excellent | Limited |
| Learning/teaching | Excellent | Good |
| Live data analysis | No | Yes |
| Price | $20/mo (Plus) | Included in M365 Personal/Family; $30/mo (Copilot for Business) |
| Free option | Yes | Yes (Copilot Chat, limited) |
Important: Copilot in Excel requires a Microsoft 365 subscription (Personal, Family, or Business). The standalone Copilot Pro plan was discontinued in late 2025. Free Copilot Chat is rolling out inside M365 apps with basic AI features, though premium capabilities like editing cells directly still require a paid plan.
When to Use Each:
Use ChatGPT when:
- You need to understand how a formula works
- Youâre creating complex or nested formulas
- You need VBA macros
- You want detailed explanations
- Youâre on a budget (free tier works for file uploads and formula help)
Use Copilot when:
- You want AI directly in Excel
- You need to analyze live data without uploading
- You want one-click formula insertion
- You use Microsoft 365 heavily already
Use both when:
- Learn with ChatGPT, execute with Copilot
- Use ChatGPT for complex formulas, Copilot for quick tasks
For a detailed comparison, see our Microsoft Copilot Review.
Common Excel Tasks: Quick Reference
Here are prompts you can copy-paste for common tasks:
Lookups
Write an INDEX-MATCH formula to look up [value] from [source column]and return the corresponding value from [result column].Conditional Sums
Write a SUMIFS formula to sum [sum column] where [condition column 1]equals [value 1] AND [condition column 2] is greater than [value 2].Date Calculations
Write a formula to calculate the number of [days/months/years]between the date in [cell 1] and [cell 2/today].Text Extraction
Write a formula to extract [first X characters / everything afterthe @ symbol / numbers only] from [cell].Data Validation
Write a formula for data validation that only allows [specificcriteria, e.g. dates in the future, numbers between X and Y].Pivot Table Alternative
Write a formula to summarize [column] by [category column],showing [sum/average/count] for each category.Limitations to Know
ChatGPT Can Get Formulas Wrong
Always test formulas before using them on important data:
- Try with a small sample first
- Verify the output makes sense
- Check edge cases (empty cells, zeros, negative numbers)
Complex Spreadsheets Need Context
For intricate spreadsheets with multiple sheets and references:
- Upload the file for best results (available on free and Plus)
- Or describe the structure in detail
- Include sample data in your prompt
Some Functions Are Version-Specific
ChatGPT might suggest:
- XLOOKUP (Excel 365/2021+ only)
- FILTER (Excel 365/2021+ only)
- Dynamic arrays (Excel 365/2021+ only)
Mention your version to avoid compatibility issues.
No Real-Time Connection
ChatGPT canât:
- See changes you make after uploading
- Update formulas automatically
- Connect to your live workbooks
Youâll always copy-paste manually.
Getting Started Today
-
Try a simple formula first
- Open ChatGPT (free works)
- Ask: âWrite an Excel formula to [your task]â
- Copy the result to Excel and test
-
Build complexity gradually
- Start with basic formulas
- Move to conditional logic
- Try lookup functions
- Experiment with VBA
-
Upload a real spreadsheet
- Works on both free and Plus (free allows up to 3 files/day)
- Use a copy, not your original
- Ask for analysis and suggestions
- Request specific formulas for your columns
-
Learn while you solve
- Always ask âexplain this formulaâ
- Build your Excel knowledge
- Eventually youâll need ChatGPT less
Related Articles
- ChatGPT Mastery Guide, Everything you need to know about ChatGPT
- Copilot in Word Tutorial, AI in Microsoft Office
- Microsoft Copilot Review, Is Copilot worth it?
- AI Tools Guide, All AI tools for work compared
- AI for Google Sheets, The same workflow for Google Sheets users
- Best AI Tools for Office Work, Curated productivity tools
Top Ranked Frontier AI Models
Empirical rankings sourced from Artificial Analysis, Arena.ai, LLM Stats & BenchLM.
Related Articles

15 ChatGPT Custom Instructions Templates You Can Copy
15 copy-paste ChatGPT custom instructions templates for work, writing, coding, and more. Grab a template, paste it in, and get better responses instantly.

ChatGPT for Email: 13 Templates That Actually Work in 2026
Stop writing emails from scratch. Thirteen ChatGPT prompts for outreach, declines, follow-ups, apologies, vendor issues, and thank-yous, plus editing tips.

Best ChatGPT Plugins in 2026 Are Now Custom GPTs (Top 12)
ChatGPT Plugins are gone. Custom GPTs replaced them. Here are the 12 best Custom GPTs for productivity, research, coding, and writing in 2026.
