# Sheetjs Formula Recalc

> Add fresh formula readback to SheetJS and xlsx workflows after writing XLSX inputs in Node.js.

- Skill: `proompteng/sheetjs-formula-recalc` (Agent Skill, multi-file: 10 files)
- Install (CLI): `npx skillmds@latest add proompteng/sheetjs-formula-recalc`
- Raw SKILL.md: https://api.skillmd.com/api/skills/proompteng/sheetjs-formula-recalc/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: proompteng (https://skillmd.com/u/proompteng)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/proompteng/sheetjs-formula-recalc

---


# SheetJS Formula Recalculation

Use `sheetjs-formula-recalc` when an agent or Node.js service has changed XLSX
inputs through SheetJS / `xlsx` and must read recalculated formula outputs
without opening Excel, LibreOffice, or a browser.

## First Check

```sh
npx --package sheetjs-formula-recalc sheetjs-recalc --demo --json
```

The demo should print `verified: true` and a `Summary!B2` value of `72000`.

## Real Workbook

```sh
npx --package sheetjs-formula-recalc sheetjs-recalc workbook.xlsx \
  --set Inputs!B2=48 \
  --read Summary!B7 \
  --out workbook.recalculated.xlsx \
  --json
```

## TypeScript

```ts
import { recalculateSheetjsWorkbook } from 'sheetjs-formula-recalc'

const result = recalculateSheetjsWorkbook(inputXlsxBytes, {
  edits: [{ target: 'Inputs!B2', value: 48 }],
  reads: ['Summary!B7'],
})
```

Use `xlsx-formula-recalc` when the caller does not care about SheetJS naming,
and use `exceljs-formula-recalc` when the caller owns an ExcelJS `Workbook`
object and wants read results patched back into that object.

