Skip to content

Support selecting worksheets during XLSX conversion - #2331

Open
medimedi (medisean) wants to merge 2 commits into
microsoft:mainfrom
medisean:feature/xlsx-sheet-selection
Open

Support selecting worksheets during XLSX conversion#2331
medimedi (medisean) wants to merge 2 commits into
microsoft:mainfrom
medisean:feature/xlsx-sheet-selection

Conversation

@medisean

Copy link
Copy Markdown

Fixes #2290

MarkItDown now accepts sheet_name through convert() and forwards it to the XLSX/XLS converters. A string or list selects only the requested worksheet(s); omitting it preserves the existing behavior of converting every worksheet.

Tests:

  • PYTHONPATH=packages/markitdown/src .venv/bin/python -m pytest packages/markitdown/tests/test_xlsx_converter.py -q (2 passed)
  • Ruff format and lint checks passed for the changed files.
  • git diff --check passed.

@medisean
medimedi (medisean) marked this pull request as ready for review August 23, 2026 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

processes the selected sheet when .xlsx

1 participant