At a glance
Artificial intelligence (AI) can analyse large datasets in seconds and build an Excel model in minutes. However, speed does not remove the need for professional scepticism.
This example uses Microsoft Copilot, which is available with a separate subscription from Excel. Most other popular AI platforms have similar capabilities.
Following on from last month’s article on Excel and Copilot, this article uses publicly available data and discusses what to do when co-building models from scratch with Copilot.
Remember: Copilot has no responsibilities. As the professional using Copilot, you have the responsibility to ensure the model you co-build is accurate and fit for purpose.
The companion video demonstrates the process from scratch and goes through a few iterations to improve the final model.
Worked example
I downloaded three separate datasets of Australian Tax Office (ATO) data for the 2022, 2023 and 2024 financial years. I used Power Query to import and compile the data into a single dataset. The files contained postcode-based data from each financial year.
The final dataset imported had 165 columns and over 7500 rows (over 1.25 million data points). It is in a sheet called Combine-ATO.
An example of the data is shown in Figure 1.

AI prompt

The prompt I used is shown in Figure 2.

The file had a .Rules sheet with instructions for Copilot — see Figure 3.
In about five minutes, Copilot created four report sheets with a cover sheet listing the sheets created — see Figure 4.


Interestingly, Copilot did not list a hidden sheet called “Setup” that it also created. To see hidden sheets, right-click a sheet tab and choose Unhide — see Figure 5.

The ATO Analytics Dashboard sheet has three yellow input cells — see Figure 6.
The State Analysis sheet has one input cell for the year — see Figure 7.


The Postcode Analysis sheet has three input cells — see Figure 8.

The Outliers sheet has three input cells — see Figure 9.
Each report sheet was independent of the other report sheets. Most of input cells had drop-down lists.

Workings
As mentioned, Copilot created a hidden sheet called Setup. It used this sheet to store lists for the drop-down cells, plus a lookup table for the metrics to report on — see Figure 10.
The column headings in the ATO data had names that were not user-friendly. Copilot realised that the user would prefer to select common names for metrics. It created a mapping table with the user-friendly metric name (column C in Figure 10), mapped against the column heading in the dataset (column D in Figure 10). Using a mapping table makes it easier to add more columns in the future.
Functions used
Copilot used a wide range of functions and formulas. Some formulas were extraordinarily complex even by my standards — see Figure 11. This is the formula in cell A8 in the Postcode Analysis sheet (Figure 8).

Workings
As mentioned, Copilot created a hidden sheet called Setup. It used this sheet to store lists for the drop-down cells, plus a lookup table for the metrics to report on — see Figure 10.
The column headings in the ATO data had names that were not user-friendly. Copilot realised that the user would prefer to select common names for metrics. It created a mapping table with the user-friendly metric name (column C in Figure 10), mapped against the column heading in the dataset (column D in Figure 10). Using a mapping table makes it easier to add more columns in the future.
Functions used
Copilot used a wide range of functions and formulas. Some formulas were extraordinarily complex even by my standards — see Figure 11. This is the formula in cell A8 in the Postcode Analysis sheet (Figure 8).

This single formula uses many new dynamic array functions in combination to create the report rows and columns seen in Figure 8.
Hard-coded values — and what Copilot could have done better
Hard-coded values in formulas should be avoided, especially if that value may change. My .Rules sheet (shown in Figure 3 rows 10,11 and 12) had rules to place values that could change into input cells, then refer to that input cell in the formula. In most cases, Copilot followed this direction.
A Copilot blind spot is the parameters that Copilot determines. Copilot will often make arbitrary judgements on a certain parameter value. It will then hard-code that value into the formulas.
In one instance, Copilot managed the parameter correctly. It decided to ignore certain postcodes if they had less than 100 individuals. In this case, it provided an input cell for the 100 — see Figure 8 cell F5.
In another instance relating to outliers (Figure 9), it used a value of 2 for the z-score parameter to identify high and low outliers.
A z-score measures how many standard deviations a value is from the mean. See column E in Figure 9. Z-scores are most useful where the data is approximately normally distributed. A value of 3 is commonly used to identify outliers in financial data. The lower the value used, the more outliers are identified. Instead of creating an input cell for the value and allowing the user to amend the score to see the impact, Copilot hard-coded the value (2) into the formulas.
One report showed the top 20 outlier postcodes. Another showed the top 15 postcodes for the selected state. In both cases, Copilot had hard-coded those values. A better model design would allow the user to select how many postcodes to display.
Iterations
Copilot can create a first version much quicker than any person. It is just as fast at making changes. Many of the issues I identified can be quickly addressed by Copilot.
Copilot can also identify issues. As an example, ask Copilot to identify formulas that have hard-coded entries. Then instruct it to turn those values into input cells.
The companion video shows some iterations of the process.
Copilot and other AI platforms offer productivity improvements in the building and editing of Excel files. The responsibility for the final files still rests with the professional working with Copilot. Developing and implementing a strong review and testing process can ensure the AI-generated files are fit for purpose.


