# Run2 Excel Verification

> Verifying Excel formula results and handling errors using recalc.py and openpyxl.

- Skill: `cxcscmu/run2-excel-verification` (Agent Skill)
- Install (CLI): `npx get-skill add cxcscmu/run2-excel-verification`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cxcscmu/run2-excel-verification/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: cxcscmu (https://skillmd.com/u/cxcscmu)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/cxcscmu/run2-excel-verification

---


# Verifying Excel Formulas and Results

Always verify the output of Excel modifications to ensure formula correctness and data accuracy.

### Error Checking with recalc.py
After saving the workbook, run `recalc.py` to identify formula errors (e.g., `#NAME?`, `#REF!`, `#DIV/0!`).
- `#NAME?`: Check for incorrect function names (e.g., use `PERCENTILE` instead of `PERCENTILE.INC`).
- `#REF!`: Check for invalid cell references.
- `#DIV/0!`: Check for empty or zero denominators in division.

### Value Verification with openpyxl (data_only=True)
To check the actual values calculated by Excel, reload the workbook with `data_only=True`:

```python
from openpyxl import load_workbook
wb = load_workbook('file.xlsx', data_only=True)
sheet = wb['Task']
print(f"Cell H35 Value: {sheet['H35'].value}")
```

### Manual Verification Formula
Perform a manual calculation to check a sample of cells:
- UAE 2019: `(Exports - Imports) / GDP * 100`
- Bahrain 2019: `(Exports - Imports) / GDP * 100`
- Confirm these match the values in the sheet.

