Python in Excel Cheatsheet
Python in Excel Cheatsheet
CHEATSHEET
Python Click on the Python Object icon to get a preview:
Libraries Supported
Tools
Python in Excel leverages Anaconda
Distribution for Python running securely in
Azure, including but not limited to:
fx Python Formulas
Defined Names Calculation Order #CALC! Too much data. Max 100MB datasets
supported.
Python formulas in Excel
calculate left to right, top to #BUSY! Means what it says. Be patient.
Power Query bottom for both cells and #SPILL! There is data occupying cells the
sheets in the workbook. Python values want to spill to.
i.e. a Python formula in cell
Cell Ranges A10 cannot reference another Python formula in #VALUE! or #UNKNOWN! Likely that Python
cell A11. isn’t available in your version of Excel.
#TIMEOUT! Can indicate a network issue.
Python formulas can reference cells in Recalc Possibly caused by too much data or API
external workbooks. However, it’s Python formulas throttling.
recommended to use Power Query to get the recalculate sequentially
data from the external file. when a dependent value Excel Versions
Output Types in a Python cell changes. Currently Excel Desktop for Windows for
Microsoft 365 Insiders Beta Channel users.
Dataframes, lists etc. Use Manual or Partial
Version 2309 Build 16.0.16818.20000 or later.
calc mode to improve
stored in a single cell.
Performance.
Text, numbers, charts Partial suspends calc for
Limitations
etc. spill results to cells. Python and Data Tables. - Python animated charts are not supported.
Tip: Format Stale Values - Can’t connect to Power Pivot Data Model.
Change the output from the drop down - Currently only available for Windows
will put a strikethrough
any cells that haven’t been recalculated. Desktop Excel beta version.
- Excel Tables in current file are not supported
F9 to force a recalculation or
via Power Query. Connect to the Table direct.
switch back to automatic.
- Only libraries supported by Anaconda are
Or use shortcut:
available.
CTRL+ALT+SHIFT+M