A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi Sayrak, Akin
Thank you for reaching out to the Microsoft Q&A Forum.
I understand that you would like to add Python capabilities in Excel so you can build and run Python code directly in your spreadsheet.
Based on Microsoft documentation, Python in Excel is available for users with a paid Microsoft 365 consumer, commercial, or education license that provides access to the Microsoft 365 desktop apps (such as Office 365 E3 or E5). On Excel for Mac, this feature is supported for users running the Current Channel, starting with Version 16.96 (Build 25041326).
To use Python in Excel, please make sure your Excel version is updated to 16.96 or later and that you are signed in with an eligible Microsoft 365 account.
You can begin by selecting a cell and going to the Formulas tab, then choosing Insert Python, or simply entering =PY() in a cell to enable Python.
You can refer to the following Microsoft documentation for more details:
Python in Excel availability - Microsoft Support
Get started with Python in Excel - Microsoft Support
If you do not see the Python option in your Excel, please let me know which Microsoft 365 license you are using, your Excel version, and your macOS version, so I can assist you further.
I hope this helps. If I have misunderstood your question, please feel free to correct me.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.