• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

ChatGPT for Excel

You are here: Home / Excel / ChatGPT for Excel
chatgpt for excel
February 16, 2023 by Mynda Treacy

Everyone’s talking about using ChatGPT for Excel and how it can improve your productivity with claims it’ll make you n times more productive and the like. I can tell you it’s not all it’s cracked up to be!

If you want to be more productive in Excel, learn Power Query.

That’s not to say ChatGPT isn’t worth using, but you have to know what to use it for and what not to waste your time on, 'cause believe me, you can waste a lot of time on it.

In this post I’ll show you what the best uses of ChatGPT are for Excel, what not to waste your time on and most importantly, what to watch out for, because it can return a lot of inaccuracies and because it comes across so authoritative, it’s easy to assume it’s right.

Note: these tests were done with ChatGPT-3.


Watch the ChatGPT for Excel Video


Subscribe YouTube


ChatGPT for Excel Function Explanations

Beginners will probably get the most out of ChatGPT because it’s good at answering simple questions.

For intermediate to advanced Excel users, it becomes less useful because it struggles with complex questions.

For example, ask it to explain how a function works and it does a pretty good job. I asked it to explain the XLOOKUP function:


chatgpt explain xlookup


It explains the purpose, the syntax and the various arguments. It stops short of an example, but you could ask a follow up question to get that:


chatgpt example xlookup


It provides a simple example, but there’s a lot more to XLOOKUP not covered here and without knowing what it’s capable of, you wouldn’t know to ask about it.

ChatGPT for Excel Formula Writing

If you have a fairly straight forward formula question, it can usually give you a solution. We get a lot of questions about IF formulas like this one left in the comments on our blog:

“A formula I currently have is as follows; =IF(B45<=50,450,450+((B45-50)*D45))

I still need the above but I also want to add to it that if B45 is left blank, a value of 0 is shown.”

I plugged that question into ChatGPT and it returned the correct answer:


chatgpt excel formula writing


We can see ChatGPT is great at giving you instant answers to simple questions. This is going to save Excel beginners a lot of time. But it comes at a cost.



You’re not learning if you just ask ChatGPT to do the work for you.



Therefore, I recommend you try to find a solution yourself and then if you get an error, a better question to ask is ‘what’s wrong with my formula, it should be doing xyz’.

This way ChatGPT will not only fix your formula, but it’ll also explain where you went wrong and what the correct solution should be.

ChatGPT Troubleshoot Excel Formula Errors

Let’s say you’re trying to write a formula but it’s returning an error. You can simply ask ChatGPT what’s wrong with the formula and it will explain the issues and the solution:


chatgpt troubleshoot excel formula


Keep in mind that ChatGPT doesn’t know what data you’re working with, so if the formula is returning a result, but not the one you were expecting, then it’s probably not going to be able to help with that.

ChatGPT Explain Excel Formulas

If you’ve inherited an Excel file with a complex formula, ChatGPT is good at explaining what that formula does in layman’s terms.


chatgpt explain excel formula


However, it was less good at simplifying that formula and even tries to avoid doing it:


chatgpt simplify excel formula


In hindsight, I should have been more explicit with my question and asked it to simplify it, which I tried next.


chatgpt simply another excel formula


The formula in the screenshot above is truncated, but here’s the complete formula ChatGPT returned:

=CEILING(((IF(C11="consignment",IF(G11>30,(H11-AGO/365*30*IntRate),0),0)+CEILING((IF(B11="Station A",B4,B5)+IF(F11>10,F11,0)-D11),10)+20)/FXRate),10)

It may be shorter, but it returned the wrong result by a factor of nearly 6. It also included 3 pairs of parentheses that weren’t required.

From this we can see that its knowledge of Excel functions isn’t as advanced as it appears. One way to simplify this nested IF formula is like so:

=CEILING(

XLOOKUP([@[Reference station]],$A$4:$A$5,$B$4:$B$5,,0)

-[@[Applicable discount]]

+([@[Nature of Delivery]]="Consignment")*20

+([@[Transport Rate]]>10)*[@[Transport Rate]]

+([@[Credit days]]>30)*([@[Provision for Financial Charges]]-AGO/365*30*IntRate),10)

/FXRate

ChatGPT for Power Query Questions

Similar to Excel formula questions, ChatGPT is also ok at simple Power Query formula questions. For example, I asked it:

“How do you round to the nearest 0.5 in Power Query?”

ChatGPT got confused at first and gave me a formula containing Excel functions. But it returned the wrong answer even then:


chatgpt for power query formula


I asked again and it got it right:


chatgpt explain power query function


Of course, as a beginner you need to know what to do with the code above and while you can ask ChatGPT where to put the code, it’s unlikely to give you the answer you actually need. For example, I only wanted the formula to use in a custom column, so I needed this part of it:

=Number.Round([Number]*2,0)/2

The rest is redundant.

ChatGPT for Power Pivot Questions

ChatGPT did better with the Power Pivot DAX question I asked it. I found a question on our Excel Forum and copied and pasted it word for word to see how ChatGPT would fare.

I’m pleased to say it did quite well and even wrote the formula using the table and column names mentioned in the question:


chatgpt for power pivot functions


However, I suspect that like Excel and Power Query formulas, as the questions get more complex, the answers get less reliable.

ChatGPT for VBA

ChatGPT also did well with the VBA question I found on our Excel VBA forum, returning an almost identical answer to one of our experienced VBA forum moderators:


chatgpt for vba


However, I know it doesn’t always get it right, so don’t count on it being able to automate everything you do 😉

Things to Avoid Asking ChatGPT

I really want to love ChatGPT, and I do for some things but there are some things you should never use it for, well at least not with the current version, which is ChatGPT-3.

First, don’t get it to do math or check math results. It will give you an answer and assure you it’s correct, but unless the result is two digits or smaller, it’s unlikely to get it right, and even then, it might not.

I was horrified at the math results it returned (see screenshot below). It clearly doesn’t have a calculator built into its logic, which I’d have thought is pretty simple to do. Even my Google speaker gets the correct answer.


what not to ask chatgpt


The bottom line is ChatGPT is a natural language AI tool, and it doesn’t have a built in calculator, yet. Maybe it’ll get one in later versions. Until then it should be taught to decline answering math questions.

Asking ChatGPT Leading Questions

If you give it a leading question, it will follow. For example, I asked ChatGPT if Excel has a BETWEEN function. We can see in the screenshot below that there is RANDBETWEEN function in Excel, but no BETWEEN function:


chatgpt mistake on function name


However, because I asked it in a leading way, it went along with me and gave me the answer it thought I wanted, even though it isn’t true. It even went as far as to make up the arguments and then explain them!


chatgpt confirms excel function exists


It’s therefore important to phrase your questions in a neutral way to ensure you don’t get a biased result. That said, even when I started a new chat with an unbiased question, it still assured me there was a BETWEEN function (maybe it was influenced by my previous question):


phrase questions properly for chatgpt

ChatGPT for Excel – The Bottom Line

ChatGPT is a bit like a politician, you have to fact check everything it tells you. Some of it will be right, some of it will be embellished and some of it will be plain wrong.

I’m sure with each iteration of ChatGPT and other large language models we’ll see improvements on the limitations I’ve covered here, and let’s hope improvements in math capabilities arrive soon.

chatgpt for excel

More Excel Posts

tips for working in multiple excel files

Hacks for Working in Multiple Excel Files

Awesome tips for navigating, arranging and working in multiple Excel files. Guaranteed to streamline your workflow and increase productivity.
excel templates

Where to Find Free Excel Templates

Where to find free Excel templates and how to create your own Excel templates. Using templates saves time and effort.
Easily Remove Password Protection from Excel Files

Easily Remove Excel Password Protection

How to remove Excel password protection when you’ve forgotten the password. Works for sheets, workbooks and read only files.
Import data from a picture to Excel

Import Data from a Picture to Excel

Import data from a picture to Excel. Works with pictures from a file or the clipboard and loads it to the spreadsheet.
excel online

5 Excel Online Features Better than Desktop

5 Excel Online Features Better than Desktop including searchable data validation, track changes, single line ribbon and more.

10 Common Excel Mistakes to Avoid

10 common Excel mistakes to avoid, including merge cells, external links, formatting entire rows/columns and more.
new Excel features

Cool New Features in Excel for Microsoft 365

Cool New Features in Excel for Microsoft 365 including the navigation pane, smooth scroling, unhide multiple sheets and more.
dynamic dependent data validation

Dynamic Dependent Data Validation

Dynamic Dependent Data Validation with dynamic array formulas like FILTER make it quick and easy to set up.
QAT

Excel Quick Access Toolbar

The Excel Quick Access Toolbar is not only a handy for your mouse, but it also enables some super easy keyboard shortcuts.

Share and Collaborate in Excel

Share and Collaborate in Excel just like Google Sheets! Show changes, custom views, threaded comments with @ mentions and more.


Category: Excel
Previous Post:excel infographic toolsExcel Infographic Tools
Next Post:AI Aided Excel Formula Editorai-aided excel formula editor

Reader Interactions

Comments

  1. Julian Chen

    February 19, 2023 at 9:56 am

    ChatGPT replied me with a code sample as shown below to explan the class module but failed to fix the problems with red highlights on first and last lines on VBE. Could you please dig out for me where the errors existed?

    Let’s create a BankAccount class with three properties (AccountNumber, Balance, and AccountType) and two methods (Deposit and Withdraw). We then create a new instance of the BankAccount class and assign it to the variable myAccount, set its properties, and call its Deposit and Withdraw methods to modify the account balance. Finally, we display the current account balance in a message box.

    Public Class BankAccount
    Public AccountNumber As Long
    Public Balance As Double
    Public AccountType As String

    Public Sub Deposit(amount As Double)
    Balance = Balance + amount
    End Sub

    Public Sub Withdraw(amount As Double)
    If amount <= Balance Then
    Balance = Balance – amount
    Else
    MsgBox "Insufficient funds."
    End If
    End Sub
    End Class

    With this class module, you can create new instances of the BankAccount class and use its properties and methods to manage the account balance.

    Dim myAccount As New BankAccount
    myAccount.AccountNumber = 123456789
    myAccount.AccountType = "Savings"
    myAccount.Deposit 1000
    myAccount.Withdraw 500
    MsgBox "Current balance: " & myAccount.Balance

    Reply
    • Mynda Treacy

      February 19, 2023 at 10:13 am

      Hi Julian, please post your question on our Excel forum in the VBA group where you can also upload a sample file/your code and we can help you further

      Reply
      • julian

        February 20, 2023 at 10:04 am

        done as instructed. Thanks a lot.

        Reply
  2. Jon Wittwer

    February 17, 2023 at 2:30 am

    Thanks for the examples. I found similar issues with OpenAI when I was experimenting with it. You definitely need to double-check everything it says because it can just make things up. For example, I told it to “Explain how to make a Gantt chart in Excel” and this is what it returned:
    1. Create a new spreadsheet in Excel.
    2. Enter the project tasks in the first column.
    3. Enter the start and end dates of each task in the second and third columns.
    4. Select the entire data range and click on the Insert tab.
    5. Click on the “Gantt Chart” option under the Charts section.
    6. A Gantt chart will be generated in the spreadsheet.
    7. Customize the chart to change the colors and other settings.
    8. Save the spreadsheet.

    Because of all the tutorials on the internet about how to make a Gantt chart using a stacked bar chart, I thought it would probably explain that method, but instead it just made up a fictitious feature. But maybe Microsoft could learn something from this and add this new chart type. 🙂

    Reply
    • Mynda Treacy

      February 17, 2023 at 8:54 am

      great idea for a new chart type, Jon! I suspect the AI has found examples of add-ins that create Gantt charts and it assuming all Excel users have this option. I don’t know how it will ever be able to distinguish between add-ins and built-in Excel features

      Reply
  3. Jon Peltier

    February 17, 2023 at 1:52 am

    I asked ChatGPT for a LAMBDA formula to calculate the moving range of a Dynamic Array, and I actually collected a dozen or so responses. The descriptions all sounded knowledgeable, but many of the results didn’t work. Some didn’t even use Excel formula syntax, some couldn’t be entered as written, and the ones that didn’t seem to have errors produced calculations that were definitely not moving averages.

    GPT in, GPT out.

    Reply
    • Mynda Treacy

      February 17, 2023 at 8:55 am

      I suspect its lack of knowledge post 2021 is limiting its ability to write LAMBDAs for Excel. Well, I hope that’s the reason.

      Reply
  4. Jon Peltier

    February 17, 2023 at 1:48 am

    ChatGPT was really wrong with your formula
    =SUMIFS(Table1[Sales],Table1[Year],>=&2000)

    You specified both ranges properly, but the inequality condition has to be expressed as “>=”&2000 or “>=2000″. ChatGPT corrected this inequality without stating that it had done so, missing a teaching moment.

    Worse, ChatGPT added a spurious additional range of A1:A100 to
    =SUMIFS(Table1[Sales],Table1[Year],A1:A100,”>=2000″)

    But it sounded so knowledgeable that even an expert like yourself missed it. Pity the poor beginner who cahn’t get ChatGPT’s formula to work.

    Reply
    • Mynda Treacy

      February 17, 2023 at 9:01 am

      Oh, yeah. I think that was the second or third time I asked it the SUMIFS question. I didn’t take a screenshot the first time and it lost the thread, so I had to ask it again. The first time I tested the result and it worked, and I didn’t notice the erroneous extra argument referencing A1:A100 in the answer I took the screenshot of! Good catch.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Current ye@r *

Leave this field empty

Sidebar

More results...

Featured Content

  • 10 Common Excel Mistakes to Avoid
  • Top Excel Functions for Data Analysts
  • Secrets to Building Excel Dashboards in Less Than 15 Minutes
  • Pro Excel Formula Writing Tips
  • Hidden Excel Double-Click Shortcuts
  • Top 10 Intermediate Excel Functions
  • 5 Pro Excel Dashboard Design Tips
  • 5 Excel SUM Function Tricks
  • 239 Excel Keyboard Shortcuts

100 Excel Tips and Tricks eBook

Download Free Tips & Tricks

Subscribe to Our Newsletter

Receive weekly tutorials on Excel, Power Query, Power Pivot, Power BI and More.

We respect your email privacy

Guides and Resources

  • Excel Keyboard Shortcuts
  • Excel Functions
  • Excel Formulas
  • Excel Custom Number Formatting
  • ALT Codes
  • Pivot Tables
  • VLOOKUP
  • VBA
  • Excel Userforms
  • Free Downloads

239 Excel Keyboard Shortcuts

Download Free PDF

Free Webinars

Excel Dashboards Webinar

Watch our free webinars and learn to create Interactive Dashboard Reports in Excel or Power BI

Click Here to Watch Now

mynda treacy microsoft mvpHi, I'm Mynda Treacy and I run MOTH with my husband, Phil. Through our blog, webinars, YouTube channel and courses we hope we can help you learn Excel, Power Pivot and DAX, Power Query, Power BI, and Excel Dashboards.

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk – For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.