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
variableRequiredNot set
Sheet Name
sheetName
stringOptionalNot setLeave empty for the first sheet
Range
range
stringOptionalNot setLeave empty to search everything on the sheet
Find
find
expressionRequiredNot set
Replace With
replace
expressionOptionalNot setLeave 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