Your data team is overwhelmed. When someone asks, “What is our revenue forecast?” the request can quickly become a project. A member of your finance team may spend several hours working with Python and unfamiliar libraries, become uncertain, and ultimately abandon the task. As a result, you do not receive an answer.

Now there’s a better way.

Python is now integrated into Excel. Copilot translates questions into code and executes it, providing answers without requiring users to write code.

What Really Happened

Microsoft released Python in Excel several months ago, but it received little attention. Users could enter =PY() to run Python in a cell, though the feature seemed to offer limited practical value and was perceived as unnecessary.

Then Copilot was introduced, transforming the experience. When someone asks Copilot a question about numerical data, it interprets the request, writes and executes Python code, and presents the results within Excel.

No notebooks or code windows are required, and there is no need to leave your current workspace.

How This Works in Practice

You open Excel, and your sales data is satisfactory. You select Copilot and enter: “forecast revenue for next quarter.”

Copilot analyses your data, interprets the meaning of revenue, writes and executes the Python code, and presents the forecast.

Copilot draws on established data science libraries, including pandas, NumPy, and scikit-learn. Rather than relying on Excel formulas, it uses Python to perform the analysis.

There are two ways to obtain results. In quick mode, the forecast appears immediately, and the underlying code is available for review. The process is then complete.

In advanced mode, Copilot places the Python code in a live cell on a new worksheet. When your data changes, the forecast updates automatically. This matters because static figures can quickly become ineffective, while live figures support better decisions.

Many teams don’t know about this capability. Quick answers are useful for exploring hypothetical scenarios, while live cells suit situations where accuracy and ongoing updates are essential.

What Is Effective

Forecasting. Generate confidence intervals, account for seasonality, and apply other robust analytical methods beyond basic Excel trend lines.

Classification. Identify which customers are likely to leave and which are likely to make a purchase. Copilot builds models to provide these insights.

Clustering. Perform meaningful customer segmentation using data-driven clusters rather than intuition or arbitrary groupings.

Outlier detection. Identify unusual transactions, changes in customer behavior, and metrics that deviate from expected patterns.

Statistical testing. Conduct hypothesis tests rigorously rather than relying on visual inspection and intuition.

Causality. Model the potential effects of specific actions to assess cause and effect, rather than correlation alone.

Charts. Create advanced visualizations, including trend lines, distribution plots, and network maps—visualizations that might otherwise require rebuilding in Tableau.

Text analysis. Analyze feedback in a column to extract sentiment and identify patterns. Gain insight into what customers care about without manually reviewing 5,000 comments.

When This Works (And When It Doesn’t)

This is well suited to questions that require timely answers, including rapid analyses and focused, one-time investigations. For example, if someone asks, “What’s happening with retention?” you can ask Copilot and receive an answer within minutes.

This approach is not suitable for enterprise dashboards, nightly reporting for large audiences, or processing millions of rows. Those requirements call for a dedicated data warehouse and business intelligence platform.

Python in Excel is for the spreadsheet on your desk, answering questions that matter today.

Data coming from Dynamics 365 or your ERP still needs cleaning. That’s boring infrastructure work. Our Power BI guidance and ETL versus ELT discussion cover that.

Python in Excel is ELT thinking. Pull raw data. Explore it. Figure out what matters. Then decide if it’s important enough for formal infrastructure.

Practical Things First

Before you roll this out, three things matter. Get these wrong, and you’ve wasted everyone’s time.

Licensing is real.

You need Microsoft 365 Copilot. It’s not in your standard Microsoft 365. Check what you actually have before telling people they can do this.

Security works like Excel always did.

External files with Python code won’t run until you say it’s safe. Same rule as macros. Nothing crazy.

Most teams mess this up.

They ask Copilot vague garbage like “analyse this.” They run one forecast and never touch it again. Teams that get value ask specific questions. “Find our customers with revenue drop.” “Forecast next quarter with this assumption.” Specific questions get useful answers. Vague questions get useless results.

Making This More Useful

Review the code generated by Copilot. It is not necessary to inspect every line, but review enough to identify potential errors. Unsound assumptions may be incorporated into board presentations.

Provide specific instructions. For example, “Forecast next quarter with confidence intervals and show me sensitivity to pricing changes” is effective, whereas “Predict revenue” is not.

Use live cells for all material information. Quick answers are snapshots, which can become outdated as soon as a number is edited. Live cells remain current.

The Significance of This Matter

You don’t need to be a data scientist anymore. Ask Copilot. Get analysis. That’s the shift.

For the work that’s too hard for Excel but too simple for a data warehouse—this solves it.

We build data foundations. Dynamics 365 integration. Power BI dashboards. Data strategy. If you want to know how Python in Excel fits with everything else, book a free assessment. We’ll be straight with you about whether it’s the right move.

FAQs

Should we deploy this to everyone at once?

No. Begin with a pilot group and present them with specific use cases. Allow adoption to develop organically, as a forced approach is ineffective.

Can Python in Excel connect to external databases?

No. It operates on data already contained in your workbook. If your data is stored elsewhere, you must import it first.

What happens if Copilot writes bad Python?

The issue is clearly indicated: the cell displays an error. You may edit the cell or ask Copilot to try again. This transparency makes it clear when something has gone wrong.

Does this work on Mac?

Currently available only on Windows. Microsoft is expanding support, but please check your platform before making plans.

How does performance work with large datasets?

Python in Excel runs on your local machine, and large datasets may significantly reduce its performance. For optimal results, keep datasets to a reasonable size—thousands of rows rather than millions.