Matching values
The MATCH() function let's you find the position of cells that match a particular criterion. It's a little tricky, so bear with this.
It works best when the data is already sorted (that's the case we'll consider here). The first argument is the limit value, the second argument is the data
range, and the third argument is 1 if the column is sorted in ascending order and -1 for descending.
If a column of data, A2:A100 was sorted in ascending order, MATCH(1000, A2:A100, 1) would find the position of the largest value in A2:A100 that was less than or equal to 1000.
If B2:B100 was sorted in descending order, MATCH(1000, B2:B100, -1) would find the position of the smallest value in B2:B100 that was greater than or equal to 1000.
The dataset has been sorted by descending number of Skippers.
This exercise is part of the course
Intermediate Google Sheets
Exercise instructions
- In cell
I1,MATCH()the position of the smallest number ofSkippers greater than or equal to 100. The data range isC2toC45. - In cell
I2, get theADDRESS()of that cell. The row is the match position plus one (for the header row), and it's the third column. - In cell
I3, get the value in that cell to find the smallest number ofSkippers greater than 100.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise