Copilot in Excel with Python

Copilot in Excel with Python is a tool that leverages the capabilities of AI (artificial intelligence) to get deeper insights from your data and take advantage of Python in Excel without being a Python or Excel expert. To learn more about the capabilities of Copilot in Excel​​​​​​​ with Python, check out the Microsoft Community Hub blog post

Try it out 

To get started with Copilot in Excel​​​​​​​​​​​​​​ with Python, follow these steps: 

  1. Open Excel on Windows and load your data.

  2. Navigate to the Home tab, then select Copilot.

  3. Select the Advanced analysis card in the task pane that opens.  Screenshot showing cards that display the skills for Excel Copilot​​​​​​​

Alternatively, in the task pane you can use prompts like: 

  • "Analyze this data using Python" 

  • "Run advanced analysis using Python"

4. Select Start advanced analysis to enter advanced analysis mode. Once in this mode, a new sheet is created for your analysis and Copilot inserts any Python code needed for your analysis. You can ask follow-up questions, request explanations, or use the suggested prompts that appear above the chat input. 

Screenshot showing the prompt start an advanced analysis with Copilot in Excel with Python.

Note:  Copilot in Excel is compliant with data protection standards. To learn more, see Data, Privacy, and Security for Microsoft 365 Copilot.  

5. To exit advanced analysis mode, select Stop advanced analysis. This takes Copilot out of the advanced analysis mode and back to its regular mode for other Copilot skills. 

Screenshot showing the button to stop advanced analysis outlined with a box​​​​​​​

Limited availability  

Copilot in Excel with Python is currently available in limited capacity.

For enterprise users, it's available only on Windows, in the United States, in the Current Channel, and in the English language starting with Version 2409 (Build 16.0.18025.00000).

For consumer users, it's available only on Windows, in the United States, and in the English language starting with Version 2409 (Build 16.0.18025.00000).

Support for other platforms, global regions, and additional languages will be included in future iterations. To learn more, see Supported languages for Microsoft Copilot

See also 

Introduction to 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.