ChatGPT Add-in for Excel: The MyToolBelt AI Companion
MyToolBelt is my Excel add-in with a free version, and its AI Companion button puts ChatGPT inside Excel. Select cells with a question and your data, click the button, and it suggests formulas such as SUMIF or INDEX MATCH, writes VBA or summarizes the data. You supply your own OpenAI key, and it runs in desktop Excel on Windows.

How it works
The AI Companion sends the cells you select to OpenAI as one request: your question plus the data it refers to. The answer comes back in a message box or on a new sheet called AI_Output.
Write the question in a cell above the table, select the question and the table together, and click AI Companion on the My Tool Belt tab. Start the question with the word “prompt”. That tells the add-in which cell holds the instruction and which cells are data. Without it, a message box asks whether to continue; click Yes and it still answers.
The cells you select go to OpenAI under your API key, the same as pasting them into ChatGPT. Only select data you are allowed to share.
Formula examples
Ask for a formula and select the table with the question. In my tests the suggestions used the right cell ranges, so they mostly worked without editing, but test each one on your data before you rely on it.
SUMIF
My table lists revenue by month and product. I selected it with the prompt “Write an Excel formula to sum up Revenue for product A”. The answer was =SUMIF(B2:B38,"A",C2:C38), with the right ranges, ready to paste (screenshot above).
AVERAGE, MAX and MIN
Next I asked for the average product price, the most expensive and the cheapest product in a small price list. MAX (200) and MIN (50, PROD_A) were right. The AVERAGE formula was right too, but the explanation claimed the result would be 115 while the cell shows 120.

INDEX and MATCH
To return the product ID for a customer ID, the AI suggested an INDEX and MATCH formula. The answer started with a single quote, so copy it without that quote. I then pointed the lookup value at a cell and added a drop-down of customer IDs, which turned it into a small lookup tool.

Questions beyond Excel
The button is not limited to spreadsheet questions. Anything you would type into ChatGPT works, and the answer lands on the AI_Output sheet.
I asked for a one-week travel plan for Sri Lanka with a packing list. I forgot the “prompt” keyword, clicked Yes in the message box and still got a full day-by-day plan.

Write VBA
For VBA, describe the layout of your sheet and what the macro should do. The code arrives on the AI_Output sheet with a comment on most lines and a note on where to paste it.
My prompt asked for a macro that drafts one Outlook email for each row of my list. The answer used columns A to C for recipient, subject and body, explained each line in a comment, and was ready to paste into a module in the VBA editor.

Longer macros need more checking. In four macros ChatGPT wrote for me I show the errors the generated code had and how I fixed them.
Summarize data
Select a table and ask for the key insights, and you get a short numbered list on the AI_Output sheet. It is a fast first look, but it is not always right.

In my test some insights were correct and others were not. Check every number against the data before it goes into a report or a decision. For a longer comparison of where ChatGPT helps with analysis and where it does not, see how I use ChatGPT for data analysis.
Install and set up
MyToolBelt is an .xlam add-in that you load once through Excel’s add-ins dialog. The AI Companion then needs your OpenAI API key in its settings.
-
Download and unblock. Get the add-in from the MyToolBelt page; it arrives by email. Extract the ZIP, right-click MyToolBelt.xlam, choose Properties and select Unblock if it appears.
-
Load it. In Excel open File, Options, Add-ins, choose Excel Add-ins next to Manage, click Go, browse to the file and keep it ticked.

-
Add your API key. Create a key on platform.openai.com, add a payment method or balance under Billing, and paste the key into the AI Settings window. Without a balance every request fails with a quota error.

To update an older copy, replace the .xlam file with the new one; the update guide has the steps. The settings screenshot is from the original recording; current versions list newer OpenAI models.
Free and Pro
The free version includes basic AI with five AI formulas per sheet. Pro unlocks the full AI with your own settings, such as the output sheet name, and removes that limit.
The formula side of the add-in, ToolBelt_AskAI, answers straight into a cell; my Ask AI formula guide covers it and the model picker. Converting a range into a pandas DataFrame or a Jupyter notebook is in the free version too. If you want to build the button yourself, integrating ChatGPT into Excel with VBA has the code.
The Excel add-in from this post: ChatGPT inside Excel, writing and explaining formulas from your selected cells. Start with the free version.
