Skip to main content

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​

InputTypeRequiredDefaultWhat it is
FindStringYesText to look for.
Replace withStringNoReplacement text.
RangeStringNoLimit to this range; whole sheet when empty.
Match caseBooleanNofalseMatch upper/lower case exactly.
Whole cellBooleanNofalseOnly replace when the whole cell equals the text.
SheetStringNoSheet name; active sheet when empty.
SessionStringNoexcelWorkbook session.
Look inStringNovaluesvalues changes text cells; formulas also changes the formula text of formula cells, e.g. a sheet name inside references.
Search byStringNorowsSearch order: rows goes across each row first, columns goes down each column first; matters with first_only.
First onlyBooleanNofalseChange only the first matching cell in search order.
Start fromStringNotopG3 (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 cellStringNoThe cell the search starts at.

Outputs​

OutputTypeWhat it is
countNumberNumber of cells changed.
cellsListAddresses of the changed cells, in search order.