Skip to main content

Excel Explorer

CLI tool for exploring Excel workbooks. Trace formula dependencies, understand model structure, read data with pagination. Designed for use by Claude Code agents.

Install

# As a standalone CLI tool (recommended)
uv tool install excel-explorer

# Or with pip
pip install excel-explorer

# Or run without installing
uvx --from excel-explorer xlx overview "file.xlsx"

This installs the xlx command.

Development setup

git clone https://github.com/pressw-llc/excel-explorer.git
cd excel-explorer
uv sync --group dev
uv run pytest

Usage

Every command takes a workbook path as its first argument. Paths with spaces should be quoted.

Orientation

Get a high-level view of a workbook before diving into details.

# Workbook overview: sheets, dimensions, formula counts, named ranges
xlx overview "Financials.xlsx"

# Describe a single sheet: headers, merged cells, data regions
xlx describe "Financials.xlsx" "Balance Sheet"

# List all named ranges and their targets
xlx named-ranges "Financials.xlsx"

Reading

Read cell values and structured data from sheets.

# Read a range (values only)
xlx read "Financials.xlsx" "Income Statement" A1:D20

# Read a range showing formulas alongside computed values
xlx read --formulas "Financials.xlsx" "Income Statement" A1:D20

# Read a full row with auto-detected headers
xlx read-row "Financials.xlsx" "Income Statement" 5

# Read a full column
xlx read-col "Financials.xlsx" "Income Statement" B

# Auto-detect contiguous table regions on a sheet
xlx tables "Financials.xlsx" "Income Statement"

Dependencies

Understand how cells relate to each other and trace formula chains.

# Trace a cell's dependency tree down to leaf inputs
xlx trace "Financials.xlsx" "Income Statement!B10"
xlx trace "Financials.xlsx" B10 --sheet "Income Statement"

# Find all cells that depend on a given cell (reverse trace)
xlx dependents "Financials.xlsx" "Assumptions!C5"

# Show unique formula patterns on a sheet, grouped by structure
xlx formula-map "Financials.xlsx" "Income Statement"

# Find hardcoded cells that other cells depend on (model inputs/assumptions)
xlx find-inputs "Financials.xlsx"
xlx find-inputs "Financials.xlsx" --sheet "Assumptions"

# Map which sheets reference which other sheets
xlx sheet-flow "Financials.xlsx"

Financial Analysis

Higher-level commands built for financial models.

# Find and summarize assumption sheets and named ranges
xlx summarize-assumptions "Financials.xlsx"

# Read a time-series row and compute period-over-period changes
xlx compare-periods "Financials.xlsx" "Income Statement" 10

# Detect formula pattern breaks (hardcoded values in formula rows, etc.)
xlx find-anomalies "Financials.xlsx" "Income Statement"

# Check that Assets = Liabilities + Equity across all period columns
xlx validate-balance "Financials.xlsx" "Balance Sheet"

Search across the entire workbook.

# Search all cells for a value or text pattern
xlx search "Financials.xlsx" "revenue"

# Also search inside formula strings
xlx search --formulas "Financials.xlsx" "VLOOKUP"

# Report cells with notable formatting: bold, fill colors, borders
xlx find-formatting "Financials.xlsx" "Income Statement"

Pagination

Large workbooks can return a lot of data. Use these flags to page through results without overwhelming the context window.

Flag Default Description
--limit N 50 Maximum number of rows (or items) to return
--offset N 0 Skip the first N rows before returning results
--max-cols N 20 Maximum number of columns to show
--col-offset N 0 Skip the first N columns before returning results
--depth N 5 Maximum recursion depth for trace and dependents

Example — page through a large sheet in chunks of 100 rows (use a bounded row range; column-only ranges like A:Z are returned column-major and don't paginate by row):

xlx read "Financials.xlsx" "Transactions" A1:Z1000 --limit 100 --offset 0
xlx read "Financials.xlsx" "Transactions" A1:Z1000 --limit 100 --offset 100
xlx read "Financials.xlsx" "Transactions" A1:Z1000 --limit 100 --offset 200

Output Format

Every command outputs a metadata header followed by --- and then the body. The header uses a YAML-style key: value format describing what was returned so agents can make pagination decisions without re-reading. For example, xlx read:

file: financial_model.xlsx
sheet: P&L
range: A1:C5
showing: rows 1-5 of 5
truncated: false
---
  A1: Profit & Loss Statement
  A3: Line Item
  A4: Gross Revenue
  B4: ='Revenue Build'!B8
  C4: ='Revenue Build'!C8
  ...

The exact header keys vary by command (range, row, column, query, matches, ...). The pagination-relevant ones:

  • showing: rows X-Y of Z — current window and total rows available
  • truncated: true — results were cut off; advance --offset or increase --limit
  • shown / offset / limit — pagination position on search-style commands

Commands that return summaries rather than rows (overview, named-ranges, sheet-flow, validate-balance, trace, dependents) don't paginate and omit these fields.

Metadata

Release files for excel-explorer 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for excel-explorer 0.1.0
File Size Uploaded Provenance Actions
excel_explorer-0.1.0.tar.gz 18.7 kB With provenance Details for excel_explorer-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for excel-explorer 0.1.0
File Interpreter ABI Platform Actions
excel_explorer-0.1.0-py3-none-any.whl Python 3 none any Details for excel_explorer-0.1.0-py3-none-any.whl

Total release size: 40.8 kB

Release files / excel_explorer-0.1.0.tar.gz

Download URL excel_explorer-0.1.0.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
401915a6363257f359fd33846bea0d9e71552b4a04f297f2c1dc884598fb4e6d
BLAKE2b-256 checksum
How to use checksums
f0242ae39ca1a451f73301f9e3d8b73737aba2d17b9e4eee8a913951fe9da1bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 11, 2026.

Transparency log

Release files / excel_explorer-0.1.0-py3-none-any.whl

Download URL excel_explorer-0.1.0-py3-none-any.whl
Size 22.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d3f23a3d8793bab29b5eb831aa4ef59944b05dc9549c13eb7b35dc366357cd8
BLAKE2b-256 checksum
How to use checksums
23cb4b64038d127fe8b1cc5cff875c782e813d6baefe76f53f8739f46900cb1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 11, 2026.

Transparency log

Security for excel-explorer 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for excel_explorer-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page