Related topics
Sign in with Microsoft
Sign in or create an account.
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Python in Excel is currently in preview and is subject to change based on feedback. To use this feature, join the Microsoft 365 Insider Program and choose the Current Channel (Preview) Insider level. 

This feature is gradually rolling out to Enterprise, Business, Education, and Family and Personal users running Current Channel (Preview) on Windows. It's rolling out to Excel for Windows first, starting with Version 2406 (Build 17726.20016), and then to other platforms at a later date.

If you encounter any issues with Python in Excel, please report them by selecting Help > Feedback in Excel.  

New to Python in Excel? Start with Introduction to Python in Excel and Get started with Python in Excel.  

Platform availability  

Python in Excel is available on Excel for Windows if you're using the Current Channel (Preview). Access the Current Channel (Preview) by joining the Microsoft 365 Insider Program and choosing the Current Channel (Preview) Insider level. 

Python in Excel is available to the Current Channel (Preview) starting with Version 2406 (Build 17726.20016).

Tip: Choose the Beta Channel Insider level to access Python in Excel features that haven't yet been released to Current Channel (Preview). 

The feature is not available on the following platforms. 

  • Excel for Mac

  • Excel on the web

  • Excel for iPad

  • Excel for iPhone

  • Excel for Android

On unsupported platforms, workbooks containing Python can be viewed but Python cells display an error when recalculated. 

Note: Python in Excel requires Microsoft Edge WebView2

What’s included in your Microsoft 365 subscription?

While Python in Excel is in preview, all Excel for Windows customers using the Current Channel (Preview) can add or edit Python formulas up to a limit. After exceeding the monthly limit, Python calculation speeds are reduced for customers that haven't enabled the Python in Excel preview. Enable the preview for access to faster calculations.

Important: While in preview, Python in Excel is included in your Microsoft 365 subscription. After the preview, some functionality will require a paid license. More details will be available before general availability. 

Microsoft 365 license requirements 

The Python in Excel preview is available with a paid Microsoft 365 consumer, commercial, or education license that provides access to the Microsoft 365 desktop apps, such the Office 365 E3 and E5 licenses.  

Important:  Microsoft 365 connected experiences must be enabled to use the Python in Excel preview. 

Related articles 

Troubleshoot Python in Excel errors 

Data security and Python in Excel 

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!