Skip to main content
  1. Posts/

Pi for Excel: AI Agent Inside Your Spreadsheet

··244 words·2 mins·

📊 An AI agent that lives inside Excel, reads your workbook, makes changes, and does research.

Pi for Excel is an open-source add-in for Microsoft Excel that brings AI directly to your spreadsheets. Bring your own API keys or OAuth login.

Supported models:

  • Anthropic (Claude) — API key or OAuth
  • OpenAI / OpenAI Codex — API key
  • Google Gemini — API key
  • GitHub Copilot — OAuth

16 tools the AI can use:

ToolWhat it does
read_rangeRead cells in markdown, CSV, or detailed mode
write_cellsWrite values/formulas with overwrite protection
fill_formulaAutoFill formulas across ranges
explain_formulaExplains formulas in plain language
trace_dependenciesTraces formula lineage
conditional_formatApplies/clears conditional formatting rules
workbook_historyRestores automatic workbook backups

What can you ask it?

  • “Calculate the average sales by region in column D”
  • “Explain what this XLOOKUP formula does”
  • “Format this table with alternating row colors”
  • “Find all negative values in the spreadsheet”

💡 Explanation in a nutshell
#

Pi for Excel is a bridge between LLMs and the structured format of a spreadsheet. The AI receives a “blueprint” of your workbook (sheets, headers, named ranges) and can use specific tools to read and modify cells — without directly accessing your data, since everything is processed locally with your own API key.

More information at the link 👇

Also published on LinkedIn.
Juan Pedro Bretti Mandarano
Author
Juan Pedro Bretti Mandarano