Set Cell Formula
set_cell_formulaSet a formula or literal value on a single cell in an open Excel workbook, then retrieve the cell's calculated value.
Instructions
Set a formula (or literal value) on a single cell.
Args: workbook: Workbook name or path (None = active workbook). sheet: Worksheet name (None = active sheet). cell: A1-style cell reference, e.g. "B2". formula: Formula string starting with '=' (e.g. "=SUM(A1:A10)"), or a literal value.
Returns: JSON with the cell's resulting calculated value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | No | A1 | |
| sheet | No | ||
| formula | No | ||
| workbook | No |