Skip to main content

Find

Find cells whose content contains (or equals) a text, in the whole sheet or a range; returns their addresses in search order.

Command in the Excel toolkit · id ooa.excel/find · 10 inputs (1 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
TextStringYesText to look for.
Match caseBooleanNofalseMatch upper/lower case exactly.
SheetStringNoSheet name; active sheet when empty.
SessionStringNoexcelWorkbook session.
RangeStringNoOnly search this range, e.g. A1:D20; the whole sheet when empty.
Whole cellBooleanNofalseOnly match when the whole cell content equals the text.
Look inStringNovaluesvalues searches the calculated results; formulas searches the formula text of formula cells and the value of the others.
Search byStringNorowsOrder of the results: rows goes across each row first, columns goes down each column first.
Start fromStringNotopG3 (AA parity): where the search starts: the top of the sheet, the active cell, a given cell (start_cell), or the end (searching backwards); it goes round to the start, as Excel does.
Start cellStringNoThe cell the search starts at.

Outputs​

OutputTypeWhat it is
cellsListAddresses such as B7.
first_cellStringAddress of the first match; empty when nothing matched.
countNumberNumber of matching cells.