Revenue totals (from the Revenue column of the Q3 Sales sheet):
- Widget: 1,900 (North 1,140 + South 760)
- Gadget: 1,800 (East 1,080 + North 720). West's Gadget row has no revenue value, so it isn't included.
Missing value: West. The 2026-07-05 Gadget row has no Units and no Revenue. The unit price is 24.0, so the revenue can't be worked out without the units.
The sheet's own Total row shows 3,700 revenue and 275 units. That matches the sum of the rows that have values (1,900 + 1,800 = 3,700), so the total also leaves out West's missing sale.
Refunded units per region (Refunds sheet):
- East: 3
- North: 2
- South and West: none listed, so presumably 0.
I converted the workbook to Markdown, and the output is in .claude/skills/convert-excel-to-md/sales/sales.md.
试用方式:Skill 的 Python 脚本需要 markitdown 包,我在隔离的临时环境里装好,并在提示词里给出解释器路径;Bash 只放行这条脚本命令。示例工作簿是我构造的(含一个有意留空的单元格和一张退款表)。模型的数字与我用代码复算的结果一致:Widget 1,900、Gadget 1,800、合计 3,700。
它做什么
运行随包的 Python 脚本(基于 MarkItDown),把 .xlsx 工作簿转成 Markdown 表格,让模型能可靠地分析、总结或提取数据。工作簿里的内嵌图片会被提取到 img/ 文件夹,每个工作表的小节里链接到它的图片。可以处理单个文件或一个文件夹里的多个工作簿(可递归),输出放在源文件旁边的 <名称>/ 文件夹,或用 -o 指定的文件夹。
工作方式
- 按
references/setup.md一次性完成环境准备(Python、pip 和markitdown[xlsx])。 - 执行
python scripts/convert_excel_to_md.py <文件或文件夹> [-o <输出文件夹>] [--recursive]。 - 模型读取生成的
<名称>.md。
适合什么场景
对一份电子表格提问、从中提取数据或做总结。
中风险:它运行一个 Python 脚本,需要 `pip install` 安装 `markitdown[xlsx]`;安装说明里 Linux 的步骤用到 `sudo apt-get install`,需要管理员权限。它会写入 `<名称>/<名称>.md` 和 `img/` 文件夹,如果目标目录里已有 `img/` 文件夹,会在提取图片前先把它删除(只删这个子文件夹),请选择一个可以改动的输出文件夹。Skill 的描述要求模型只要看到 `.xlsx` 就运行这个脚本,并同时调用处理 PDF 和 Word 的姊妹 Skill,而它们不在本站收录范围内。脚本不发起网络请求。已试用并发现一些限制:我在隔离的临时环境里跑了脚本(含单文件、批量、递归加 -o、.xls 与不存在的路径被拒绝),结果正确;但空单元格会显示成 `NaN`(日期是 `NaT`),有空值的整数列会显示成 `120.0`;单元格内容含 `|` 时不会转义,会错位;从未用 Excel 打开保存过的文件(如代码生成的),公式单元格没有缓存值,会显示 NaN;损坏的 .xlsx 不会报失败,而是把原始文字写成 .md 并显示成功。实测确认:`-o` 指向已有 `img/` 的目录时,其中文件会被删除。