AI · 1 min read

PY

PY function in Excel: Runs Python code in a cell (Python in Excel).

Python function · Excel

PY function

Runs Python code in a cell (Python in Excel).

Availability

PlatformStatus
ExcelListed
Google SheetsNot listed
This function has no same-named match in Google Sheets.
Not on the Microsoft list we fetched. Confirm availability for your plan.
Reference entry. Syntax, tested examples and a practice file arrive with the full guide. Open the official function list.