If the group is changed, the formulas should calculate new results.

There are two basic ways to approach this problem.

In older versions of Excel, you could use the IF function in a traditional array formula.

Excel formula: nth largest value

Both approaches are explained below.

Excel Table

For convenience, all data is in anExcel Tablenameddatain the range B5:D16.

If you are new to Excel Tables,this article provides an overview.

Excel formula: nth smallest value

A good way to apply criteria is with the FILTER function, as described in the next section.

This array is used by FILTER to retrieve matching data.

The values in group B become FALSE when they fail the logical test.

Excel formula: Sum top n values

This array is returned directly to the SMALL function as thearrayargument.

With FILTER, the generic formula looks like this:

Wherecriteria1andcriteria2are logical expressions to test specific conditions.

from a set of numeric data.

Excel formula: Average top 3 scores

Excel formula: nth largest value with criteria

Excel formula:  Highlight 3 smallest values with criteria

Excel SMALL function

Article image

Article image

Article image

Article image