Bắt đầu ngayBắt đầu miễn phí

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

Xem khóa học

Hướng dẫn bài tập

  • In cell I1, get the count of Skippers in the Indian Subcontinent as the value from the cell offset 1 down from C1.
  • In cell I2, again get the count of Skippers in the Indian Subcontinent, this time as the value from the cell offset 2 right from A2.
  • In cell I3, get the count of Skippers in Western Himalaya as the values from the range of cells offset 2 right from A3, 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