Originally Posted by
Jonmo1
Index(range,row#,col#)
The 3rd argument is optional if the Range is a 1 dimensional range (1 column or 1 row)
The row and column #s are not exactly row/column numbers, they are position#s relative to the range specified.
so Index(B:B,10) refers to the 10th position number in B:B, which is B10
But Index (B5:B20,10) refers to the 10th postion number in B5:B20, which is actually B14
INDEX(B:B,F9):INDEX(B:B,F10)
If F9 = 10 and F10 = 20 then you get
INDEX(B:B,10):INDEX(B:B,20)
B10:B20
Offset(range,#ofrows,#ofcolumns,height,width)
It creates a range that is the designated number of rows/columns away from range.
Then resizes that range by the designated height and width.
Height and Width arguments are optional, if omitted the resulting range is the same size as the original referenced range.
OFFSET(B1,F9-1,0,F10-F9+1,1)
If F9 = 10 and F10 = 20
OFFSET(B1,10-1,0,20-10+1,1)
OFFSET(B1,9,0,11,1)
So it creates a range that is 9 rows down from B1 and 0 columns right from B1 = B10
Then resizes that to be a total of 11 rows and 1 column = B10:B20
Hope that helps.
Bookmarks