Excel functions
AI & Python functions
Microsoft 365 adds two ways to go beyond classic formulas: the PY function runs Python code in the cloud right inside a cell, and the COPILOT function asks an AI model to classify, summarise or generate text from your data.
All 2 ai & python functions
- COPILOTSends a prompt, plus optional cell data as context, to Copilot's AI model and returns its generated answer into the grid. Results can vary.
- PYRuns Python code inside an Excel cell (Python in Excel). The code reads worksheet ranges with xl() and returns a value or a Python object.