GOOGLE WORKSPACE Find and replace function

The GOOGLE WORKSPACE Find and replace function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Workspace connector function to find and replace values in a Google Sheet.

For a full list of available functions, please read GOOGLE WORKSPACE functions.


Description

The Find and replace function searches for a value across the spreadsheet or a specific sheet and replaces all occurrences with a new value.


Input parameters

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Google Workspace connector to use
Spreadsheet IDYesText-Google Sheets spreadsheet ID
Sheet IDNoTextAll sheetsLimit search to a specific sheet tab (numeric ID)
FindYesText-The value to find
ReplaceYesText-The replacement value
Match caseNoBooleanfalseWhether the search is case-sensitive
Match entire cellNoBooleanfalseWhether the value must match the entire cell
Search formulasNoBooleanfalseWhether to search within formulas
VariableYesText-Variable to store the result

Output variables

VariableTypeDescription
VariableObjectObject containing occurrencesChanged, rowsChanged, and sheetsChanged counts

Errors

  • Spreadsheet not found – the spreadsheet ID is invalid

Tips

  • Test with Find in sheet first to confirm the correct matches before replacing
  • Use Search formulas to replace references within formulas

Related functions

  • Find in sheet – Search without replacing
  • Write sheet range – Write specific values

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.