Search Column

Search one column in a Google Sheet for a specific term. Be sure that the column you are searching has a value in every cell (even if it is 0); the search stops if it encounters a blank cell.

Options

Field Definition Type Required
Use Spreadsheet ID?

Option to specify a Google Sheets spreadsheet by ID.

If you select No, select a spreadsheet from the Spreadsheet dropdown and ignore the Spreadsheet ID field.

If you select Yes, the list of spreadsheets from your account in the Spreadsheet dropdown will be depopulated; select -- Enter Spreadsheet ID -- from the Spreadsheet dropdown and enter an ID in the Spreadsheet ID field.

The Spreadsheet ID is the last string of characters in the URL for your spreadsheet. For example, in the URL https://docs.google.com/spreadsheets/d/1qpyC0XzvTcKT6EISywvqESX3A0MwQoFDE8p-Bll4hps/edit#gid=0, the spreadsheet ID is 1qpyC0XzvTcKT6EISywvqESX3A0MwQoFDE8p-Bll4hps.

Dropdown TRUE
Spreadsheet

List of spreadsheets in your Google Sheets account

Caution

Due to an API limitation, a maximum of 100 spreadsheets are returned in a search. To search for a specific spreadsheet, use the Enter Spreadsheet ID option.

Dropdown TRUE
Spreadsheet ID Unique identifier for your selected spreadsheet String FALSE
Worksheets List of worksheets in the spreadsheet Dropdown TRUE
Column to Search List of columns in the worksheet Dropdown TRUE
Result Set

Choose First Matching Row or All Matching Rows

Dropdown TRUE

Input

Field Definition Type Required
Search Term Value that you want to search for in the column String FALSE

Output

Field Definition Type
Row Number Location number of the first row where the value was found (if the value is not found in the column, this field will return null). Returned when First Matching Row is selected in Result Set. Number
Rows A list containing the row numbers where the value was found. Returned when All Matching Rows is selected in Result Set. List

Related topics

Google Sheets connector

About the elements of Okta Workflows

Google Sheets API documentation