Excel formula portability

From XuShuwenn/RedAct · View interactive version

Excel formula portability is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Build and verify Excel formulas that are portable across Excel/LibreOffice, align to template labels (not guessed rows), handle percent/units correctly, and validate recalculation for financial models.

How to use this skill

Skill file

Excel Formula Portability and Template Alignment

Use this skill when automating spreadsheets that must be computed by Excel or LibreOffice (e.g., via a headless recalc engine), especially with pre-existing templates. It focuses on: cross-engine-safe formulas, robust row/column alignment via labels (not guessed indices), unit and percent handling, cross-sheet lookups, and post-write validation.

When to Use

Core Workflow

1) Inspect and map the template structure

2) Insert data, then formulas (Excel computes; scripts don’t)

3) Use engine-portable formulas

4) Reference the latest value robustly (avoid hard-coded last row)

5) Handle percentages vs decimals explicitly

6) Normalize and match entity names across sheets

7) Guard formulas against missing data

8) Unit consistency before valuation

9) Recalc and verify

Verification

Perform these checks before finalizing:

Common Pitfalls (and Avoidance)

Optional Script Usage

You can use the helper script to generate portable formula strings and normalize entity names. It does not compute results; it prints or returns formula text and normalization helpers you can embed in your writer.

Example (conceptual usage):

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.