Skip to main content

Find and Replace

Excel·v1.11.1
ExcelEditingWrites files

Replace text across a range. Formula cells are left alone, so a replacement cannot quietly break a calculation

Inputs

NameTypeRequiredDefaultDescription
Excel Instance
excelInstance
variableRequired
Sheet Name
sheetName
stringOptionalLeave empty for the first sheet
Range
range
stringOptionalLeave empty to search everything on the sheet
Find
find
expressionRequired
Replace With
replace
expressionOptionalLeave empty to clear what was found
Match Capitals Exactly
matchCase
booleanOptionalfalse
Match the Whole Cell
wholeCell
booleanOptionalfalseOff by default, so Pending also matches inside a sentence
Output Variable
outputVariable
variableOptionalReplacementCount

Output

$outputVariableNumber

How many cells were changed

Compatibility

WindowsLinuxAttendedUnattended

Related activities