Replace
Replace text in the cells of a sheet or range, optionally matching case or the whole cell, inside formulas, or only in the first matching cell.
Command in the Excel toolkit · id ooa.excel/replace · 12 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Find | String | Yes | Text to look for. | |
| Replace with | String | No | Replacement text. | |
| Range | String | No | Limit to this range; whole sheet when empty. | |
| Match case | Boolean | No | false | Match upper/lower case exactly. |
| Whole cell | Boolean | No | false | Only replace when the whole cell equals the text. |
| Sheet | String | No | Sheet name; active sheet when empty. | |
| Session | String | No | excel | Workbook session. |
| Look in | String | No | values | values changes text cells; formulas also changes the formula text of formula cells, e.g. a sheet name inside references. |
| Search by | String | No | rows | Search order: rows goes across each row first, columns goes down each column first; matters with first_only. |
| First only | Boolean | No | false | Change only the first matching cell in search order. |
| Start from | String | No | top | G3 (AA parity): where the search starts: the top of the sheet, the active cell, a given cell (start_cell), or the end (searching backwards); it goes round to the start, as Excel does. |
| Start cell | String | No | The cell the search starts at. |
Outputs
| Output | Type | What it is |
|---|---|---|
| count | Number | Number of cells changed. |
| cells | List | Addresses of the changed cells, in search order. |