write_cell
Write a value or formula to a specific cell in an Excel .xlsx/.xlsm file, returning the previous value.
Instructions
Write one value or formula to a cell in an .xlsx/.xlsm file. Returns the previous value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | Cell address, e.g. 'B3' | |
| path | Yes | Path to the spreadsheet file (absolute, or relative to the first allowed directory) | |
| sheet | No | Sheet name. Defaults to the first sheet. | |
| value | Yes | Value to write. Strings starting with '=' become formulas; null clears the cell. |