This can be accomplished with the FILTER function and the INDEX function.

FILTER function

TheFILTER function"filters" data based on a logical test and extracts matching records.

Theif_emptyparameter specifies the value to return if no matches are found.

Example of FILTER to extract all matching records

Note that by itself, FILTER returns all matching data.

INDEX function

TheINDEX functionreturns the value at a given location in a range or array.

you’ve got the option to use INDEX to retrieve individual values, or entire rows and columns.

Example of FILTER to extract all matching records

Simplifying, the original formula becomes:

And INDEX returns row 5 from the data.

The output from FILTER is dynamic.

If source data or criteria change, FILTER will return a new set of results.

Example of FILTER to extract all matching records

you might use INDEX to retrieve individual values, or entire rows and columns.

The rows to return are provided as numbers in separate arguments.

Each number corresponds to the numeric index of a row in the given array.

Example of FILTER to extract all matching records

from a set of numeric data.

More than one condition can be tested by nesting IF functions.

The MIN function ignores empty cells, the logical values TRUE and FALSE, and text values.

Example of FILTER to extract all matching records

ROW Function

The Excel ROW function returns the row number for a reference.

For example, ROW(C5) returns 5, since C5 is the fifth row in the spreadsheet.

When no reference is provided, ROW returns the row number of the cell which contains the formula.

Excel formula: Get nth match with INDEX / MATCH

Excel formula: Basic filter example

Excel FILTER function

Excel INDEX function

Excel CHOOSEROWS function

Excel SMALL function

Excel IF function

Excel MIN function

Excel ROW function

Article image

Article image

Article image

Example of FILTER to extract all matching records