Explanation

Note: the core idea of this formula is adapted from an example inMike Girvin’sexcellent bookControl+Shift+Enter.

The example shown uses several formulas, which are described below.

This results in a two-dimensional array, 9 columns x 9 rows, filled with TRUE and FALSE values.

Array result from MMULT function

Thedouble negative(–) is used to coerce the TRUE FALSE values to 1s and zeros.

Otherwise, each cell will only show the first ranking value in the array that is returned.

If so, we assign a rank value that equals the row count in data.

Array result from MMULT function

This formula isexplained in detail here.

These formulas can be adapted toapply logical criteria, and SORT can be combined with UNIQUE.

The result from MMULT is anarraythat contains the same number of rows asarray1and the same number of columns asarray2.

Array result from MMULT function

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

MATCH supports approximate and exact matching, andwildcards(* ?)

Array result from MMULT function

Array result from MMULT function

Excel formula: Sort numbers ascending or descending

Excel formula: Display sorted values with helper column

Excel formula: Random sort formula

Excel formula: Basic numeric sort formula

Excel formula: Basic text sort formula

Excel formula: Sort text and numbers with formula

Excel formula: Count unique numeric values in a range

Excel MMULT function

Excel TRANSPOSE function

Excel INDEX function

Excel MATCH function

Article image

Article image