---
name: Excel To Markdown
slug: excel-to-markdown
category: Writing
description: Excel To Markdown converts Excel files into Markdown documents, with optional selection of a specific worksheet. Use it when turning spreadsheets into MD tables or documenting spreadsheet content.
github: "https://github.com/CoderWanFeng/python-office/tree/develop/skills/markdown/excel2markdown"
language: Python
stars: 1339
forks: 301
install: "npx degit https://github.com/CoderWanFeng/python-office/tree/develop/skills/markdown/excel2markdown ~/.claude/skills/excel2markdown"
installs_to: ~/.claude/skills/excel2markdown
source_path: skills/markdown/excel2markdown/SKILL.md
collection_size: 50
category_size: 1012
collection_url: "https://dirskills.com/collections/CoderWanFeng/python-office"
added: 2026-08-12T04:43:06.225Z
last_synced: 2026-08-12T04:43:06.225Z
canonical_url: "https://dirskills.com/skills/excel-to-markdown"
---

# Excel To Markdown

Excel To Markdown converts Excel files into Markdown documents, with optional selection of a specific worksheet. Use it when turning spreadsheets into MD tables or documenting spreadsheet content.

**Install:**

```bash
npx degit https://github.com/CoderWanFeng/python-office/tree/develop/skills/markdown/excel2markdown ~/.claude/skills/excel2markdown
```

## README

# excel2markdown Skill

> 将 Excel 文件转换为 Markdown 格式的文件

## 功能描述

将 Excel 文件转换为 Markdown 格式的文件，支持选择转换指定工作表。

## 所属分类

`office/skills/markdown/excel2markdown/`

## 调用方式

```python
from skills.markdown import excel2markdown

excel2markdown(
    input_file='./data.xlsx',
    output_file='./output.md',
    sheet_name=None
)
```

## 参数说明

| 参数 | 类型 | 必填 | 默认值 | 说明 |
|------|------|------|--------|------|
| `input_file` | str | 是 | - | 输入 Excel 文件的路径 |
| `output_file` | str | 否 | `'./excel2markdown.md'` | 输出 Markdown 文件的路径 |
| `sheet_name` | str | 否 | `None` | 需要转换的 Excel 工作表名称。默认转换所有工作表 |

## 返回值

`None`

## 使用示例

```python
from skills.markdown import excel2markdown
excel2markdown(input_file='./report.xlsx', output_file='./report.md')
```

## 原始函数

`office.api.markdown.excel2markdown`
