Set Formula
set_formulaWrite Excel formulas to a single cell or range, shifting relative references per cell like Excel copy semantics. Normalizes functions to avoid #NAME? errors and flags workbook for recalculation.
Instructions
Write a formula to a single cell, or fill a range where each cell gets the formula with its relative references shifted by that cell's offset (Excel copy semantics; absolute $ anchors stay put). Formulas are normalized so modern functions do not land as #NAME?, and the workbook is flagged to recalculate on its next open; stored cached results stay stale until then (the recalculate tool in the com pack populates them). Auto-backup to .ks4xl-backups; atomic verified save. Refuses while open in Excel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| sheet | No | ||
| backup | No | ||
| formula | Yes | ||
| location | Yes | ||
| allow_loss | No | ||
| verify_com | No |