- Documentation
- Activities
- Excel
- Find and Replace
Replace text across a range. Formula cells are left alone, so a replacement cannot quietly break a calculation
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
Excel Instance excelInstance | variable | Required | — | — |
Sheet Name sheetName | string | Optional | — | Leave empty for the first sheet |
Range range | string | Optional | — | Leave empty to search everything on the sheet |
Find find | expression | Required | — | — |
Replace With replace | expression | Optional | — | Leave empty to clear what was found |
Match Capitals Exactly matchCase | boolean | Optional | false | — |
Match the Whole Cell wholeCell | boolean | Optional | false | Off by default, so Pending also matches inside a sentence |
Output Variable outputVariable | variable | Optional | ReplacementCount | — |
Output
$outputVariableNumberHow many cells were changed
Compatibility
WindowsLinuxAttendedUnattended
Related activities
Clear Filter
Show every row again and remove the filter
Clear Range
Empty cells in place. Nothing below shifts up, so formulas pointing at those rows still point at them
Copy Range
Copy cells somewhere else, with or without their formatting. Works even when the destination overlaps the source
Filter Rows
Hide the rows that do not match, and collect the ones that do
Remove Duplicate Rows
Delete repeated rows, keeping the first or the last of each. A number typed as text matches the same number
Sort Range
Sort rows by one column, then optionally a second. Whole rows move and carry their formatting, and blanks sink