VOOZH about

URL: https://thenewstack.io/microsoft-puts-python-in-excel/

⇱ Microsoft Puts Python in Excel - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2023-08-25 09:21:09
Microsoft Puts Python in Excel
Data / Python / Software Development

Microsoft Puts Python in Excel

The new integration of the popular programming language into Excel is now in public preview in Microsoft's Insiders Beta Channel.
Aug 25th, 2023 9:21am by Darryl K. Taft
👁 Featued image for: Microsoft Puts Python in Excel
Image by Unsplash.

With Python being used increasingly for data projects, Microsoft has decided to enable the use of Python in its popular Excel spreadsheet, to the delight of Pythonistas.

Microsoft has released Python in Excel as a public preview to its Insiders Beta Channel, so it is still early days for the technology. But the company has promised to roll out updates on: improved editing experiences (such as autocomplete and syntax highlighting), default repairs, enhanced error behaviors, help and documentation and more, said Stefan Kinnestrand, a general manager of product marketing/management at Microsoft, in a company blog post.

With Python in Excel, users can integrate Python and Excel analytics within the same Excel grid for uninterrupted workflow.

“Python in Excel combines Python’s powerful data analysis and visualization libraries with Excel’s features you know and love,” Kinnestrand wrote. “You can manipulate and explore data in Excel using Python plots and libraries, and then use Excel’s formulas, charts and PivotTables to further refine your insights.”

Anaconda

To help with this integration, Microsoft is partnering with Anaconda, a leading enterprise-grade Python repository used by tens of millions of data practitioners worldwide. Python in Excel, according to Microsoft, leverages Anaconda Distribution for Python running in Azure, which includes the most popular Python libraries, such as pandas for data manipulation, statsmodels for advanced statistical modeling, and Matplotlib and seaborn for data visualization.

“Python has become the lingua franca and Swiss Army Knife of working with data, and it’s the de facto language of data science and machine learning,” said Andrew Brust, CEO of Blue Badge Insights, a data consultancy.

“It’s present in Microsoft Fabric, Azure Synapse Analytics, Azure Machine Learning, Azure Databricks, Visual Studio, VS Code, SQL Server and Power BI. And since Microsoft and Anaconda have collaborated around many of these integrations, doing so in the Excel case was almost a foregone conclusion.”

Roll Out

Microsoft said it is gradually rolling out Python in Excel to public preview for those in the Microsoft 365 Insiders program Beta Channel. The new feature will roll out to Excel for Windows first, starting with build 16818, and then to the other platforms at a later date.

However, the feature will not be free for long. While in preview, Python in Excel will be included with a Microsoft 365 subscription. After the preview, some functionality will be restricted without a paid license, Kinnestrand said.

“Python developers are very oriented toward working with DataFrames, a structure for storing, manipulating, visualizing,   and building machine learning models with tabular data sets,” Brust said. “Arguably, any Excel sheet, or even a range of cells within one, can be thought of as a DataFrame, making for a natural integration point between Excel and Python.”

To use Python in Excel, you must join the Microsoft 365 Insider Program and choose the Beta Channel Insider level to get the latest builds of the Excel application.

Then, Kinnestrand said, once you’ve installed the latest Insider build of Excel, open a blank workbook, and take the following steps.

  1. Select Formulas in the ribbon.
  2. Select Insert Python.
  3. Select the Try Preview button in the dialog that appears.

What They’re Saying

Guido van Rossum, Python creator and a current Microsoft distinguished engineer,  gave his blessing to the project. In fact, he helped develop the finished product.

“Yeah, so I helped the Excel team with this. Excited that it’s out!” he tweeted.

Meanwhile, Microsoft added comments from some of its customers about Python in Excel.

“KPMG and Microsoft are making significant investments to deliver advanced cloud-based tax technologies,” said Tejas Varia, principal, tax data and analytics at KPMG, the global professional services network.

“At KPMG, we’re excited about the impact Python in Excel will have for our tax clients. Backed by the data and security promises enabled by the Microsoft cloud, Python has the potential to enhance the Excel experience for advanced analytics while providing companies with transparency, simplicity and deeper insights into their financials.”

Rebecca Olson, senior portfolio director at McGraw Hill, offered her observation about Python in Excel’s advantages. “McGraw Hill’s ethos is education for all, and our partnership with Microsoft has helped improve student access to Excel tools, building career readiness,” she said.

“Python is one of the most in-demand skills we’re hearing from colleges and universities, and we’re thrilled that the Excel and Python pairing will provide educators and students with a powerful new gateway to move faster with analytics, enable greater collaboration and learning, and ultimately bridge students to even brighter futures.”

Users can do advanced data analysis in the Excel environment by accessing Python directly from the Excel ribbon. No setup or installation is required. Using Excel’s built-in connectors and Power Query, you can easily bring external data into Python in Excel workflows.

“The precedent for this integration was set a long time ago when MATLAB — the legacy favorite language of serious ‘quants’ building financial and other math models — was integrated with Excel,” Brust said.

“While MATLAB is still commonly used in certain domains, the combination of Python and various libraries like Pandas and NumPy is essentially heir to its throne. Similarly, Excel’s 30-year-old implementation of [Visual Basic for Applications] has grown long in the tooth and its users have been in need of a more modern, cross-platform language for a very long time.”

TRENDING STORIES
Darryl K. Taft covers DevOps, software development tools and developer-related issues from his office in the Baltimore area. He has more than 25 years of experience in the business and is always looking for the next scoop. He has worked...
Read more from Darryl K. Taft
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Databricks, Anaconda.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.