Skip to content

Read Excel formula cells as their evaluated results at runtime - #174

Merged
Quafadas merged 1 commit into
mainfrom
fix/excel-formula-cells
Oct 26, 2026
Merged

Quafadas merged 1 commit into
mainfrom
fix/excel-formula-cells

Conversation

@Quafadas

Copy link
Copy Markdown
Owner

Compile-time inference evaluated formulas, but the runtime iterator used Cell.toString, which returns the formula text - so =A22 was typed Int and then failed to decode "A22". Formula headers had the same problem.

Add ExcelCells, used by both sides: a formula cell renders its evaluated result (falling back to Excel's cached result if POI cannot evaluate it) exactly as toString renders a plain cell holding that value, and inference classifies that same result. This also replaces the temporary cell the macro created in the shared, cached workbook, which dropped the cell style and so typed date-formatted formulas as numbers.

Compile-time inference evaluated formulas, but the runtime iterator used
Cell.toString, which returns the formula text - so =A2*2 was typed Int
and then failed to decode "A2*2". Formula headers had the same problem.

Add ExcelCells, used by both sides: a formula cell renders its evaluated
result (falling back to Excel's cached result if POI cannot evaluate it)
exactly as toString renders a plain cell holding that value, and
inference classifies that same result. This also replaces the temporary
cell the macro created in the shared, cached workbook, which dropped the
cell style and so typed date-formatted formulas as numbers.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Quafadas
Quafadas merged commit 1ca3374 into main Oct 26, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants