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()
.
This exercise is part of the course
Intermediate Google Sheets
Exercise instructions
- In cell
I1
, get the count ofSkipper
s in theIndian Subcontinent
as the value from the cell offset 1 down fromC1
. - In cell
I2
, again get the count ofSkipper
s in theIndian Subcontinent
, this time as the value from the cell offset 2 right fromA2
. - In cell
I3
, get the count ofSkipper
s inWestern Himalaya
as the values from the range of cells offset 2 right fromA3
, with height 7, and sum them.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
