Iāve been automating reports since I learned to code in Python (actually, thatās the reason why I learned to code!), and now it seems that AI can do this for us with just one prompt.
And I say it āseemsā because tools like ChatGPT agent can produce reports where 98% of the information is correct. That seems like a nice numberāuntil you realize that 2% error rate can lead to terrible consequences for you and your company. If you donāt do the manual work to find and understand those mistakes, youāre screwed.
In this article, Iāll share with you the best ways to use AI in Excel without compromising the quality of your final report. Weāll start with simple tasks such as generating functions, and then move on to properly automating reports with AI.
Hi! Iām Frank (aka The Pycoach)
AI & Python instructor. Over the past year, Iāve helped thousands on YouTube and Udemy master AI with beginner-friendly guides and in-depth tutorials
If youāre new here, welcome! Hereās what you mightāve missed:
Letās learn how to make our life easier in Excel with AI (no code!)
#1 Generate Excel functions
If you have a hard time memorizing Excel functions, I have good news for you: now AI can generate the formulas for you!
There are two ways to do it:
-
=COPILOT(āpromptā): For Excel users, but you need a Microsoft 365 subscription
-
=AI(āpromptā): For Google Sheet users. Free for everyone
Both formulas work similarly. In both, you have to type a natural-language prompt within parentheses and optionally reference ranges.
Since Google Sheets is free, Iāll use it for the following examples (here you can see similar examples for Copilot).
Hereās the exact syntax to use:
=AI(āpromptā, [range])
In the video below, I show how to generate functions using AI:
More examples on how to use this =AI() function.
-
Generate text
=AI(ācreate keywords for the job title based on the summary of dutiesā, A2:C2)
-
Summarize input cell or range
=AI(āFor the customer, write a one sentence summary of their feedbackā, A2:D2)
-
Analyze sentiment
=AI(āClassify the sentiment of the movie reviewsā, A2:D2)
-
Get up-to-date information from the web
=AI(āWhat is the population of the list countries?ā, A2:A10)
=AI and =COPILOT are reliable functions that will get the job done without you worrying about the results.
However, when it comes to generating reports with AI, things get more complicated. Truth is, tools like ChatGPT agent arenāt free of mistakes. If I had to choose an AI to do Excel tasks for me, like getting insights and making charts, Iād choose Microsoft 365 Copilotās agent mode.
That said, we can still run into errors with Copilotās agent mode. Although SpreadsheetBench indicates it outperforms other models on a variety of spreadsheet tasks, its 57.2% score tells us that it can only be a helpful assistant, but not a foolproof tool for critical work.
#2 So whatās my approach to automating reports with AI?
Itās by creating prompts for each stage of the automation (data cleaning, processing, visualizations, etc). In the past, I used to create Python scripts for each stage, but now we can use plain-English prompts to:
-
Generate reliable reports
-
Control each stage of the automation
In addition to that, Iāll show you how to automate all of this by using a new feature called Claude Skills (that can also be used in ChatGPT and Gemini)
This type of automation isnāt for a one-off report. This is for recurring reports delivered weekly, monthly, or quarterly, saving you hours every time!
All of this (+copy & paste prompts) can be found belowš Paid-member only š



