How to Use AI in Microsoft Excel (Copilot, ChatGPT and Plugins to Analyze Data, Build Formulas and Automate Office Tasks)
Learn to use AI in Microsoft Excel with Copilot and ChatGPT: create complex formulas with natural language, analyze data in seconds and automate repetitive office tasks, even if you don't know advanced Excel.
Microsoft 365 Copilot
ChatGPT
Excel
Using AI in Microsoft Excel lets you create complex formulas using plain language, analyze data tables in seconds and automate office tasks that used to take hours, without needing to know advanced Excel. With Copilot (built into Microsoft 365) and ChatGPT (free), you have two paths: one seamless and one manual. In this guide I explain both.
Tap each step to open it and follow along at your own pace.
Before you start: if you don’t have an active Microsoft 365 subscription, you can still use AI in Excel through ChatGPT (free): it gives you formulas and you paste them. Integrated Copilot requires a subscription. Copilot steps are labeled so you know which path applies.
1Access Copilot in Excel (or set up the ChatGPT method)
If you have Microsoft 365 Personal or higher (with Copilot):
Open the Excel desktop app (Microsoft 365 version, not Office 2021 or earlier).
Open or create a workbook with data. Copilot works best when data is formatted as a table: select your data and press Ctrl + T to convert it to a table.
Click the “Copilot” button in the ribbon (Home tab, right side). A side panel opens.
You can now type what you need in plain language (see following steps).
If you don’t see the Copilot button, update Excel to the latest version from Home > Account > Office Updates. Confirm that your Microsoft 365 plan includes Copilot at microsoft.com.
If you use ChatGPT (free, without Copilot):
Open chatgpt.com in your browser.
Keep Excel open in another window. The flow is: describe the problem in ChatGPT, get the formula or analysis, and apply it manually in your sheet.
You don’t need to install anything extra.
2Create complex formulas with natural language
This is the most popular use case: asking AI for the exact formula without having to search Google or remember the syntax.
With Copilot (integrated in Excel):
In the Copilot panel, type what you need:
Create a formula that sums the sales in column C only when column B is "North".
In column E, calculate the percentage of each value in column D relative to the total of D.
Find the 5 highest values in column F and highlight them in yellow.
Copilot shows you the formula and explains it. Accept with the “Insert” button and it applies it directly to your sheet.
With ChatGPT (without Copilot):
Describe your sheet and what you need:
I have an Excel sheet with these columns: A (Date), B (Region), C (Product), D (Sales).What formula do I use to sum the sales in column D only when column B is "North" and column C is "Shoes"?Briefly explain how the formula works.
ChatGPT gives you the formula (likely a SUMIFS). Copy and paste it directly into the Excel cell.
If it gives an error, copy the error message and paste it in ChatGPT: “Excel gives me this error: #VALUE! What’s wrong?”
Formulas most often requested from AI:
Use case
You ask AI
Look up a value in another table
”formula to look up in another sheet by ID” → VLOOKUP or XLOOKUP
Count with condition
”count rows where column X = Yes” → COUNTIF
Date math
”days between two dates” → DAYS or DATEDIF
Text
”extract first name from full name column” → LEFT + FIND
3Analyze and summarize data with AI
Beyond formulas, AI can analyze your tables and give you conclusions in plain language, without you having to interpret the numbers yourself.
With Copilot in Excel:
In the Copilot panel, write direct questions about your data:
What are the 3 best-selling products this month?
Summarize the sales trends by region in one or two sentences.
Are there any outliers or anomalies in the sales column?
Copilot reads your table and responds in natural language, and can also create charts automatically:
Create a bar chart with sales by region.
With ChatGPT (without Copilot):
Copy a portion of your data (don’t paste confidential data into external services).
Paste it in ChatGPT with this instruction:
These are my sales data for [month]. Analyze them and tell me: (1) which is the best-selling product, (2) which region performs best, (3) what trend stands out.[Paste your data here, in table or CSV format]
ChatGPT analyzes the data and gives you the summary. You can also ask it to generate macro code to apply something to your sheet.
4Automate repetitive tasks with AI-generated macros
Excel macros (VBA) automate repetitive actions: formatting a report every week, generating a summary from one sheet to another, renaming sheets by date. They used to require programming knowledge; with AI, you just describe what you want.
With Copilot in Excel:
Create a macro that takes the data from the "Sales" sheet, calculates the total by region and copies the results to a new sheet called "Summary".
Copilot generates the VBA code and can apply it with one click.
With ChatGPT:
Describe the repetitive task you want to automate:
I want an Excel VBA macro that does the following:1. Goes through all the rows in column A.2. If the column B cell in that row says "Paid", highlights the entire row in green.3. If it says "Pending", highlights the row in yellow.Briefly explain how to run the macro once I have it in Excel.
ChatGPT gives you the complete VBA code with instructions on how to insert it.
How to run a macro in Excel:
Press Alt + F11 to open the Visual Basic editor.
Click Insert > Module.
Paste the code from AI.
Press F5 or close the editor and go to View > Macros > Run macro.
If you see a “Macros disabled” message, go to File > Options > Trust Center > Trust Center Settings > Macro Settings and enable “Enable all macros” (only for trusted files).
If something goes wrong
Problem
Fix
The Copilot button doesn’t appear in Excel
Update Excel to the latest version (Home > Account > Office Updates); also confirm your Microsoft 365 plan includes Copilot at microsoft.com
The formula AI gave me throws an error
Copy the error message and paste it back in ChatGPT or Copilot: “It gives this error: #NAME?, what’s wrong?”
ChatGPT gives me the formula in English but my Excel is in Spanish
Ask: “Give me the formula in Spanish Excel (e.g., SUMAR.SI instead of SUMIF)“
The macro doesn’t work as expected
Describe to AI exactly what it does differently from what you wanted: “The macro works but also highlights the header row. How do I fix it?”
Copilot doesn’t understand my question about the data
Make sure your data is formatted as a table (Ctrl + T) and columns have descriptive headers; Copilot needs that structure to read the data correctly
Frequently asked questions
Do I need a paid Microsoft 365 to use AI in Excel?
For Copilot integrated directly into Excel, you do need a Microsoft 365 subscription (Personal, $6.99/mo or higher). However, you can use ChatGPT for free to write complex formulas for you: simply describe what you need in natural language and paste the formula into your sheet. It's more manual, but works without paying anything.
What is the difference between using Copilot in Excel vs. using ChatGPT for Excel?
Copilot is built directly into Excel: it sees your sheet, applies changes, creates tables and charts without you copying anything. ChatGPT is external: you describe your problem, it gives you the formula or analysis and you apply it manually. Copilot is smoother; ChatGPT is more flexible and free.
Can AI in Excel replace a data analyst?
For simple analyses (summaries, trends, basic charts), AI greatly speeds up the work and makes it accessible to anyone. For advanced statistical analysis, predictive models or critical business interpretations, you still need human judgment. AI in Excel is ideal for automating repetitive tasks and getting a quick first look at your data.
Does Copilot work with any version of Excel?
No. Integrated Copilot requires Excel as part of Microsoft 365 (active subscription), not the one-time purchase version (Office 2021 or earlier). Excel Online (free on the web) has basic Copilot features in its latest version. Confirm available features at microsoft.com.
Can I use AI in Google Sheets instead of Excel?
Yes. Google Sheets has Gemini built in and is completely free with a Google account. If you don't have Microsoft 365 yet, Google Sheets with AI can be the most accessible path. Check out the tutorial [How to Use AI in Google Sheets](/tutorials/ia-en-google-sheets) to compare.