https://catalogartifact.azureedge.net/publicartifacts/75900810.2a6907f3-6c48-4a89-be60-f9aca8c89da5-9eeaae72-c01e-4423-b238-fdc401e62bdb/921f964e-0d10-4c48-b3dc-bb0fd2d206b6_store.png

Python for Excel

by Boardflare

(5 ratings)

Build custom functions for Excel using Python.

Create custom Excel functions powered by Python. This free Excel add-in lets you write Python functions and use them directly in Excel formulas, LAMBDA functions, and spreadsheet calculations.

Unlike Excel's built-in =PY() function, Python for Excel turns your Python code into reusable custom functions that work just like native Excel functions. Write once, use anywhere: =MY_FUNCTION(A1:B10).

Includes a growing library of example Python functions for math, statistics, and more. Many of these functions can also be used with the native =PY() function.

Key Features

Custom Python Functions — Build reusable Excel functions from Python code. Use them in formulas, LAMBDA definitions, and complex calculations.

📊 Scientific Computing — Access NumPy, SciPy, Pandas, and 100+ scientific Python packages for statistics, engineering, and data analysis.

🆓 100% Free — Unlimited use at no cost. No Microsoft 365 subscription required.

🌐 Cross-Platform — Works in Excel for the web, Windows, and Mac desktop.

🔒 Private & Secure — Python runs locally in your browser. Your data and code never leave your computer.

📦 Package Support — Import pure Python packages from PyPI. Use Micropip to install additional libraries.

☁️ API Integration — Make HTTP requests to REST APIs and web services directly from your Python functions (CORS-enabled).

Use Cases

• Custom formulas for financial modeling, engineering calculations, and scientific analysis

• Data transformation and text processing with Python string methods

• Statistical functions and machine learning calculations

• API automation to pull data from web services into Excel

• Prototyping custom Excel add-ins before full development

Getting Started

1. Install the add-in and open the sidebar

2. Write a Python function in the Editor tab

3. Save your function and use it as =MY_FUNCTION_NAME() in any cell

See our Python for Excel documentation for tutorials, examples, and API reference.

App capabilities

When this app is used, it
  • Can read and make changes to your document
  • Can send data over the Internet

At a glance

https://catalogartifact.azureedge.net/publicartifacts/75900810.2a6907f3-6c48-4a89-be60-f9aca8c89da5-9eeaae72-c01e-4423-b238-fdc401e62bdb/b61835f8-fa0a-442d-a9cc-2713a9f203a5_editor1366.png
/staticstorage/20260315.2/assets/videoOverlay_62a424ca921ff733.png
https://catalogartifact.azureedge.net/publicartifacts/75900810.2a6907f3-6c48-4a89-be60-f9aca8c89da5-9eeaae72-c01e-4423-b238-fdc401e62bdb/b61835f8-fa0a-442d-a9cc-2713a9f203a5_editor1366.png
https://catalogartifact.azureedge.net/publicartifacts/75900810.2a6907f3-6c48-4a89-be60-f9aca8c89da5-9eeaae72-c01e-4423-b238-fdc401e62bdb/e4cb5470-5fb6-428a-a8d9-48479e472252_insert1366.png