Microsoft Adds Python Programming to Excel Spreadsheets

Microsoft Adds Python Programming to Excel Spreadsheets Create advanced data visualizations or train a machine learning model in a spreadsheet .
Excel already supports formulas, functions, and Visual Basic for Applications to help manipulate data, but by natively integrating Python directly into the Excel grid, Microsoft is unlocking a range of new data analytics options. That includes an easy way to import external data and access to well-known Python libraries.
Excel's New Python Integration May Redefine Spreadsheets
You can find a Python with Excel guide at Microsoft's website. Those who'd prefer to go in blind can test Python functionality by opening a new spreadsheet , selecting a blank cell, and typing the =PY function. The third-party PyXLL add -in is a solid alternative for anyone who can't access the official Python integration.
Python is now integrated into Excel via Microsoft 365, allowing users to write Python code directly in spreadsheets using the `=PY` formula, enhancing data analysis and visualization capabilities.

Get started with Python in Excel
This tells Excel that you want to write a Python formula in the selected cell. Or use the function =PY in a cell to enable Python . After entering =PY in the cell, choose PY from the function AutoComplete menu with the Down arrow and Tab keys, or add an opening parenthesis to the function: =PY (. Now, you can enter Python code directly into the ...
For full access to faster calculations with premium compute and access to manual or partial recalculation modes, you must purchase the Python in Excel add -on license or request the license from your administrator. For more information about licensing, see Python in Excel add -on licensing FAQ.

Microsoft is bringing Python to Excel
Microsoft today announced the public preview of Python in Excel , which will allow advanced spreadsheet users to combine scripts in the popular Python language and their usual Excel formulas in the ...
In a groundbreaking move, Microsoft announced in August 2023 that it would integrate Python directly into Microsoft Excel , one of the most widely used spreadsheet tools in the world.

How To Use Python in Excel Easy Guide for 2026
Learn how to use Python in Excel with this easy step-by-step tutorial. However, note that you'll need Office 365 to get started. Read on to learn more!





Python in Excel won't replace formulas or Power Query, but it fills an important gap. When built-in tools start feeling rigid or overly complex, Python lets you apply powerful data-science techniques directly inside the spreadsheet grid.