Finding nearby cells with offsets
Sometimes you want to calculate things based upon cells close by to the cell you are providing a calculation in.
OFFSET() retrieves the values in cells offset from the current location by a certain number of rows and columns. It takes two arguments: the number of rows down to move from the current location, and the number of columns to move right.
You can also specify height and width arguments to return a range of cells, which is often useful in combination with a summary statistic function like SUM(), AVERAGE() or MAX().
Bài tập này là một phần của khóa học
Google Sheets nâng cao
Hướng dẫn bài tập
- In cell
I1, get the count ofSkippers in theIndian Subcontinentas the value from the cell offset 1 down fromC1. - In cell
I2, again get the count ofSkippers in theIndian Subcontinent, this time as the value from the cell offset 2 right fromA2. - In cell
I3, get the count ofSkippers inWestern Himalayaas the values from the range of cells offset 2 right fromA3, with height 7, and sum them.
Bài tập tương tác thực hành
Biến lý thuyết thành hành động với một trong các bài tập tương tác của chúng tôi
Bắt đầu bài tập