开始使用免费开始使用

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.

本练习是课程的一部分

Google Sheets 中级

查看课程

练习说明

  • In cell I1, MATCH() the position of the smallest number of Skippers greater than or equal to 100. The data range is C2 to C45.
  • In cell I2, get the ADDRESS() 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 of Skippers greater than 100.

动手互动练习

通过我们的互动练习之一,将理论转化为实践

开始练习