Skip to main content

Find cells

Search a sheet or range for text and return the addresses of the matching cells.

Command in the Google Workspace toolkit · id ooa.google/sheets_find_cells · 7 inputs (3 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Spreadsheet IDStringYesThe spreadsheet: its id, its full link (https://docs.google.com/spreadsheets/d/...), or its exact name in Drive (a name made only of letters, digits, - and _ is read as an id; use the link for such names).
RangeStringNoSheet name or range to search, e.g. Sheet1 or Sheet1!A1:F200; the first sheet when empty.
TextStringYesText to look for.
Match caseBooleanNofalseUpper and lower case must match.
Whole cellBooleanNofalseThe whole cell must equal the text, not just contain it.
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.

Outputs​

OutputTypeWhat it is
cellsListA1 addresses of the matches, e.g. B7, in reading order.
countNumberNumber of matches.