Quote:
Originally Posted by Tony Lepatata
What are some examples of using the OFFSET function?
It's one of the most useful functions.
For instance let's say i have a few years of monthly data in row 1, going across. I can have a number in cell A2 and use the formula =OFFSET(A1,0,A2), it will pull out the data from row 1, A2 number of months from the start (starting on cell A1). Let's say you have a gap pf one cell between each month's data - you can modify the formula to =OFFSET(A1,0,A2*2).
That's pretty basic. But it becomes really powerful when you use OFFSET combined with SUM. For instance =SUM(OFFSET(A1,0,A2,1,12)) will give you the sum of the 12 months starting A2 number of cells from the start - you can do the same with AVERAGE.
Building more complex formulas around this concept you can do some really impressive stuff.