Back to Skills

Formualizer Excel 公式重算

在本地重算 XLSX 公式缓存,检查单元格并追踪公式依赖。 用程序生成财务或运营报表后,重算公式并核查关键合计。对现有工作簿另存副本方便比较。 上游原文包含未锁定 npm 版本的示例。Tokeny 静态核对的命令行工具版本为 @formualizer/cli@0.15.0,建议只使用该固定版本并先确认执行权限。

Version: 0.1.0Contributor: psu3d0Category: 数据处理
ExcelXLSX公式本地处理

Use “Formualizer Excel 公式重算” in Tokeny

  1. Download the Tokeny app
  2. Install this skill in one click
  3. Use it directly in chat
Already installed? Open in Tokeny

SKILL.md

Formualizer Spreadsheet Recalculation & Tracing

Use Formualizer to recalculate stale Excel formula caches, verify totals, read cells/ranges, and trace formula dependency chains locally with zero cloud upload.

Local Tooling Options

Pick whichever runtime is available in your environment:

1. Native CLI (@formualizer/cli) — fastest for large .xlsx files

npx -y @formualizer/cli recalc workbook.xlsx -o recalculated.xlsx
npx -y @formualizer/cli recalc workbook.xlsx --check

2. Zero-native WASM SDK (pi-spreadsheet) — Node 20+, Bun, or Cloudflare Workers

npm install pi-spreadsheet
import { recalculateXlsx, inspectWorkbook, traceWorkbook } from "pi-spreadsheet";

const receipt = await recalculateXlsx("model.xlsx", { outputPath: "model.recalc.xlsx" });
const cells = await inspectWorkbook("model.recalc.xlsx", { cells: ["Summary!G12"] });
const trace = await traceWorkbook("model.recalc.xlsx", ["Summary!G12"], { direction: "precedents", maxDepth: 2 });

3. Local stdio MCP server (@formualizer/mcp) — zero-install 4-verb MCP

{
  "mcpServers": {
    "formualizer": {
      "command": "npx",
      "args": ["-y", "@formualizer/mcp"]
    }
  }
}

Rules of Thumb

  • Always recalculate after generating or modifying .xlsx files with Python (openpyxl) or Node scripts that leave formula caches empty or stale.
  • Report exact formula error counts, changed cache counts, and any partial/unsupported diagnostics returned by Formualizer rather than assuming silent success.
  • Keep workbook processing local; never upload private .xlsx files to third-party web endpoints.

What is Tokeny?

  • A free desktop AI assistant for Windows, macOS and Linux.
  • Describe a task to process files, create documents and spreadsheets, or run multi-step work.
  • Extend it with skills and MCP servers installed from the marketplace in one click.
Learn about Tokeny

评论与讨论

0/2000

还没有评论,分享你的体验吧。