Site icon News Bit

How to use ChatGPT to write Excel formulas

Maria Diaz/ZDNET

Microsoft Excel is a great tool for anyone looking to track inventory for a business or create a grocery budget for a home. The formulas, however, are undoubtedly the trickiest part of using the program. 

Figuring out how to write formulas to achieve the result you need can be a challenge, especially when you have a lot of data on a spreadsheet and need an intricate formula beyond calculating a sum. That is until ChatGPT arrived. 

Also: 5 ways to use ChatGPT to make your life easier

ChatGPT and other AI chatbots can easily help you create Excel formulas for free and without signing up for a specialized website, like ExcelFormulaBot. The great thing about using AI like ChatGPT or Bing Chat to create formulas for Microsoft Excel (and Google Sheets) is that you can request formulas that are as simple or as complicated as you’d like — as long as you’re crystal clear in your instructions. 

Screenshot by Maria Diaz/ZDNET

How ChatGPT can write Excel formulas

What you need: Using ChatGPT to write Excel formulas requires having access to Microsoft Excel or Google Sheets, as you can use formulas for both applications. You will also need an OpenAI account to access ChatGPT.

Keep in mind that, as intelligent as AI chatbots are, they’re still not as well-versed in nuances as a person and can make errors or misinterpret prompts. 

Open your Excel or Sheets spreadsheet and go to chat.openai.com to access ChatGPT. If you’re not logged in, this is the time to do so with your OpenAI account — you can also create an account at this point. After logging in, you’ll be taken to a conversation with ChatGPT. 

Also: How to use ChatGPT to write code

The spreadsheet below is the example we’re going to use: A made-up inventory of devices for January 2023. It has 45 products in column A, each with an SKU number (column B), amount in inventory (column C), quantity purchased in January (column D), price for each unit (column E), and the subtotal (column F, with a formula already). 

We’re going to use ChatGPT to create a few simple examples of formulas, including calculate sales tax (column G), seller’s commission (column H, not pictured), total (column I, not pictured), and the leftover quantity in inventory for the next month (column J, not pictured).

Screenshot by Maria Diaz/ZDNET

It’s now time to lay out the concept of what you’re looking to achieve with ChatGPT and ask it for the formula you want. To do this, you have to explicitly explain to the AI chatbot what you want the formula to do.

Also: How to use the new Bing (and how it’s different from ChatGPT)

It’s important that you be very clear, mind-numbingly so, as any errors ChatGPT makes as a result of a misunderstanding can lead to inaccurate values in your table. Channel your inner eleventh-grader asking your computer lab teacher how to create a specific formula.

If we want ChatGPT to create the rest of the formulas, we have to explain it very plainly and specifically, so we’ll ask the AI chatbot to “write an Excel formula to calculate the sales tax of the monetary value in column F, at a 6% rate”.

I didn’t specify which row in column F we want to start the formula with, so ChatGPT defaulted to F2.

Screenshot by Maria Diaz/ZDNET

Copy the formula from ChatGPT and paste it into the Excel cell you want to populate with the results, making any necessary edits. To the best of your ability, confirm the results are correct before populating the rest of your cells.

Also: How to create a drop-down list in Excel — quickly and easily

In the example below, I corrected the formula to reflect the correct cell, F3, that needs to be included in the calculation of the sales tax. 

You can see the formula from ChatGPT highlighted on the left, with the result in the cell on the right.

Screenshot by Maria Diaz/ZDNET

I’ll finish adding the formulas I need to my spreadsheet, beginning with the commission calculation, by asking ChatGPT to “Create a formula to calculate 10% commission on the monetary total in cell F3”.

Screenshot by Maria Diaz/ZDNET

Once I add my commission formula, I can move on to the next two columns to calculate the total and the leftover inventory to complete the table.

Screenshot by Maria Diaz/ZDNET

It’s time to populate the rest of your spreadsheet with your shiny new formulas. To do this, place your cursor on the lower right corner of the cell with the formula and click-and-drag your cursor over the rest of the cells you want the formula in. 

Also: How to add a drop down list in Google Sheets 

The same formatting will be followed, including the subsequent progression of the formulas.

Once you add the formulas to the rest of the column, the spreadsheet will be complete.

Screenshot by Maria Diaz/ZDNET

FAQs

Why is the formula from ChatGPT not working?

If ChatGPT gave you a formula that isn’t working in Excel or Sheets, then it might’ve misunderstood your prompt. Go through the formula to see where the error could be on ChatGPT’s end and see how you can reword your prompt to get the answer you need. In the example below, my prompt was “Create a formula for the total cost that adds the values in columns F, G, and H”.

Screenshot by Maria Diaz/ZDNET

Since I didn’t specify I needed the formula to add the values in cells F3, G3, and H3, the formula adds the values in the entire column range, which is not what we need.

I then corrected my prompt to request ChatGPT to “Create a formula for the total cost that adds the values in cells F3, G3, and H3”.

Can ChatGPT write intricate Excel formulas?

ChatGPT is the perfect resource to write formulas for Excel or Google Sheets, whether they’re simple or intricate. We used simple formulas for this example to walk you through the process, but you can ask the AI chatbot to write more complicated formulas and test its limits. Remember that the accuracy of ChatGPT’s results depends a lot on how clear your prompts are. 

Can you use Bing Chat to write Excel formulas?

Other AI chatbots, like Bing Chat and Google Bard, are also able to create Excel formulas for you by following the steps above. 

How Bing Chat and Google Bard answered the same prompt I gave ChatGPT to write a formula that calculates sales tax. 

Screenshot by Maria Diaz/ZDNET

For all the latest Technology News Click Here 

 For the latest news and updates, follow us on Google News

Read original article here

Denial of responsibility! NewsBit.us is an automatic aggregator around the global media. All the content are available free on Internet. We have just arranged it in one platform for educational purpose only. In each content, the hyperlink to the primary source is specified. All trademarks belong to their rightful owners, all materials to their authors. If you are the owner of the content and do not want us to publish your materials on our website, please contact us by email – abuse@newsbit.us. The content will be deleted within 24 hours.
Exit mobile version