Skip to main content

Find value

Return the zero-based numbers of rows containing a value, in one column or in any column.

Command in the Data Table toolkit · id ooa.datatable/find · 5 inputs (2 required), 5 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
TableTableYesSource table.
ValueAnyYesValue to look for.
ColumnStringNoSearch only this column; all columns when empty.
MatchStringNoequalsequals (numbers compare by value) or contains (text).
Match caseBooleanNofalseCompare text with upper/lower case taken into account.

Outputs​

OutputTypeWhat it is
rowsListZero-based row numbers that match.
countNumberNumber of matching rows.
foundBooleanTrue when at least one row matches.
cellsListEvery matching cell as a dictionary with zero-based row and column numbers and the column name.
first_rowNumberZero-based number of the first matching row, or -1.