Sunday, March 31, 2024

How you can Use ChatGPT With Excel (Writing Formulation, Macros, & Explaining Issues)

Must read

Excel is an important device for many people. Whether or not you are a scholar or an expert, you’ve got in all probability discovered your self wrestling with Excel formulation in some unspecified time in the future. 

I have been there, too. 

Excel is full of a whole bunch of formulation. Even seasoned professionals could have a tough time remembering each single formulation and its intricacies.

Now, right here’s the excellent news. ChatGPT is designed to be your good assistant. With its AI-powered capabilities, you’ll be able to ask virtually something you need to know, together with writing formulation in Excel.

Right here’s how ChatGPT can help:

  • Recalling a specific formulation and making use of it precisely
  • Troubleshooting an Excel formulation that isn’t working
  • Personalizing options to satisfy your wants

Within the subsequent jiffy, I’ll present you other ways to make use of ChatGPT to write down Excel formulation, from easy operations to advanced calculations. 

Straightforward. May assist to know the fundamentals of this device/matter

Time Required:
~10 minutes

Let’s undergo the steps to get you began.

Methods You Can Use ChatGPT in Excel

1) Creating Excel Formulation

For our functions, I’ve ready a easy stock dataset for an electronics retailer. 

sample data set in Excel

Listed below are some Excel formulation you’ll be able to have ChatGPT assist you with:

Tip: To generate the right Excel formulation, make sure that to specify the columns you need to embrace within the formulation. This ensures accuracy and relevance. 

Performing Primary Calculations

First, let’s attempt to calculate the entire value for every product in our desk.

ChatGPT Immediate: 

I’ve ready a listing dataset for an electronics retailer in Excel. Write an Excel formulation that calculates the entire value for every product based mostly on the amount in column B and unit worth in column C. 


ChatGPT will clarify the steps and give you the formulation to compute the entire value of every product. Copy the formulation and paste it to a brand new column in your Excel desk (on this case, column D). Then, drag the AutoFIll deal with to use the identical formulation to the whole column.

simple Excel formula using ChatGPT

Take into account that ChatGPT is just not excellent and it may possibly produce unsuitable outcomes. So all the time double-check the formulation and confirm the outcomes.

Finding the utmost worth

Let’s say we need to discover the product with the best complete value. Right here’s what your ChatGPT immediate would possibly appear to be.

ChatGPT Immediate: 

I’ve ready a listing dataset for an electronics retailer in Excel. Write an Excel formulation that finds the product from column A with the best complete value in column D.


ChatGPT will recommend features to make use of to get the product identify with the utmost worth. On this instance, ChatGPT steered three completely different features to make use of: INDEX, MATCH, and MAX.

Right here’s the AI response containing the formulation you’ll be able to copy to your Excel desk.

simple Excel formula using ChatGPT

Getting the common worth 

Once more, let’s ask ChatGPT to compute the common unit worth from our stock desk.

ChatGPT Immediate: 

I’ve ready a listing dataset for an electronics retailer in Excel. I need you to calculate the common unit worth of all merchandise in column C.


ChatGPT will suggest utilizing the AVERAGE perform to get the common unit worth of the merchandise. Right here’s the generated Excel formulation: 

simple Excel formula using ChatGPT

Now, your desk in Excel ought to appear to be this:

sample data set in Excel

2) Explaining How you can Use Excel Features

Excel comes with a whole bunch of various features that may do primary arithmetic to advanced statistics. And irrespective of how skilled you might be, you’ll be able to’t presumably memorize and even familiarize all.

Plus, you’re seemingly going to wish advanced features to unravel advanced tables. And also you won’t know which one to make use of.

ChatGPT can assist you determine which Excel features to make use of for fixing issues. It can additionally give you explanations of how these features work. 

Now take this state of affairs. Let’s say you’re making a dashboard and also you need to get a abstract of an organization’s workforce. Right here’s a pattern desk I’ve ready:

sample data set in Excel

Now, let’s ask ChatGPT to govern the info utilizing the next Excel options:

Utilizing Pivot Desk

First, let’s attempt to compute the common wage of staff by Division and Gender. Enter the next ChatGPT Immediate:

I’ve a desk of worker information containing the next data:

  • ID
  • Full Title
  • Job Title
  • Gender
  • Ethnicity
  • Age
  • Rent Date
  • Annual Wage
  • Bonus
  • Division
  • Enterprise Unit
  • Nation
  • Metropolis
  • Exit Date

How do I discover the common wage by Division and Gender? Clarify the steps and what Excel perform I ought to use.

Right here’s ChatGPT’s response:

using Excel pivot table with ChatGPT

I attempted to comply with ChatGPT’s various technique by utilizing the pivot desk, and right here’s the output:

using Excel pivot table

I verified the outcomes they usually had been all right. For me, this can be a helpful resolution particularly when you’re not acquainted with Excel’s pivot desk.

Utilizing VLOOKUP

Let’s say you need to know the complete identify of an worker based mostly on a given ID. Right here’s what the immediate would appear to be:

I’ve a desk of worker information. I need to discover the identify of an worker utilizing their ID. Clarify the steps and what Excel perform I ought to use.

When you enter the immediate, it is best to get explanations just like the one under:

generate VLOOKUP formula in ChatGPT

I attempted implementing the directions above to search for an worker with the ID variety of 4. So, my VLOOKUP formulation seems like this:


Then, I entered the formulation into my Excel desk. It appropriately offered the end result, as proven right here:

Excel VLOOKUP formula

3) Writing VBA Macros

VBA macros in Excel are instruments we use to automate duties. If you end up doing the identical factor repeatedly, like copying information or formatting cells, that is the place VBA is available in. 

As an alternative of manually performing these steps each time, we are able to write a small script in VBA. It is like educating Excel new methods tailor-made to our wants. So, as a substitute of being caught with mundane duties, you’ll be able to deal with extra necessary issues. 

Now, you don’t should be a coding professional to write down VBA codes. Plus, with ChatGPT, producing VBA macros is less complicated and quicker. Right here’s find out how to do it.

Let’s take a look at a retail gross sales desk. We need to create a VBA macro that robotically calculates the entire gross sales for every product. Then, have these outcomes positioned in a column labeled ‘Whole Gross sales.’

Right here’s what your ChatGPT immediate would appear to be:

I’ve a retail gross sales dataset in Excel. I need to create a VBA macro to robotically calculate the Whole Gross sales for every product by multiplying the Amount and Unit Worth. Are you able to present the VBA code for this?

Right here is ChatGPT’s response:

generate VBA macro using ChatGPT

ChatGPT clearly defined the steps earlier than offering the VBA code above. It additionally provided tips about customizing the code and operating the macro, as proven right here.

generate VBA macro using ChatGPT

Now, you’ll be able to copy this macro. Then, go to your Excel desk and open the VBA editor (press ALT + F11 for a shortcut). Then, right-click and choose Insert > Module. Paste your code right here, after which shut the VBA editor.

add VBA macro in Excel

To run the module, merely press ALT + F8. And that’s it! The whole gross sales desk ought to now be full of the outcomes.

add VBA macro in Excel

Word: Microsoft Excel now consists of ChatGPT as an add-in. This integration permits you to faucet into the AI’s capabilities instantly inside Excel to streamline your duties. There is not any must individually entry your ChatGPT account and enter prompts – the AI is correct there in your Excel workspace. We’d take into account one other tutorial on this new characteristic, so keep tuned.

4) Analyzing Knowledge From Excel With Superior Knowledge Evaluation Plugin

In case you’re engaged on bettering your web site’s search engine optimisation, you’ll be able to leverage ChatGPT, too.

To try this, you will first must obtain your web site’s analytics report from Google Search Console. Your file ought to include information corresponding to demographics, pages, clicks, impressions, and queries.

Word that it is advisable have ChatGPT Plus to entry the Superior Knowledge Evaluation plugin. As soon as it’s enabled, go to the chat field and click on the ‘plus’ button on the left to add your Excel or CSV file. 

Subsequent, you’ll want to inform ChatGPT what to do together with your file. This half must have a little bit of creativity. And the preliminary outcomes won’t precisely match your expectations.

The trick is to make your directions as detailed as doable. Then, preserve iterating your immediate till you get the specified outcomes.

As an illustration, our matter is about ladies’s attire and we’re going to make use of ChatGPT to find out high-ranking however low-competition associated phrases.

Right here’s a pattern ChatGPT immediate I’ve created:

Uploaded is a report about my web site’s efficiency in Google natural search outcomes. I need you to establish any high-volume associated phrases with low natural competitors that we’d have missed.

And, right here’s ChatGPT’s response:

analyze Excel data using ChatGPT

First, it defined the columns included within the dataset. Then it defined the standards and the mandatory steps to search out high-volume associated phrases with low competitors. It then requested me whether or not I’d prefer to proceed with the proposed steps. 

After the affirmation, right here’s the end result I obtained: 

ChatGPT additionally defined find out how to use the outcomes to spice up our web site’s web page rating. Plus, you’ve the choice to request extra in-depth evaluation or strategies based mostly on the outcomes. 

Tricks to Successfully Use ChatGPT in Excel

Excel’s intricate spreadsheets can typically be overwhelming. However with ChatGPT, you’ve a sensible assistant that can assist you simplify these complexities. Now, this makes problem-solving quicker and simpler. 

I additionally personally discover the following tips useful: 

  • Rephrase your immediate as wanted: ChatGPT won’t grasp your immediate the primary time. If the reply is not what you anticipated, strive asking the query another way. 
  • Edit your queries instantly in ChatGPT: In case you made a typo otherwise you need to refine your query, then there’s no must retype all the things. Simply click on the ‘edit’ icon on the prime proper of your immediate and make your modifications.
  • Ask ChatGPT to troubleshoot formulation: If a formulation is not working as anticipated, ChatGPT can assist. Describe the issue and supply the formulation you’ve used. 
  • Break down advanced duties: Typically, it may be tempting to only use a single immediate and let ChatGPT clear up all the things. However this isn’t the most effective strategy. When you’ve got a multifaceted Excel process, break it down step-by-step. For instance, as a substitute of asking find out how to create a posh dashboard, begin by asking find out how to create particular person charts or tables.

Wrapping It Up

With ChatGPT into your Excel workflow, the chances are infinite! So, don’t hesitate to experiment. We’re solely at the beginning of one thing method bigger that is coming.

You should use ChatGPT to automate your month-to-month report in Excel. You may also hunt down ChatGPT’s insights to uncover hidden traits in your datasheet. And even use the AI device to create visualizations and establish peaks and valleys based mostly on the plots.

Supply hyperlink

More articles


Please enter your comment!
Please enter your name here

Latest article