Average/Sum formula with offset
If I follow...
To get the average of X cols by 1 row starting at AZ6, where X is the number
in C2, I'd use this formula:
=AVERAGE(OFFSET(AZ6,0,0,1,C2))
"Stav19" wrote in message
...
Hi All
I'm trying to create a formula to use in a monthly report to calculate
YTD sum for PL, and average for Balance sheet.
For P/L I can use the following:
SUM(AZ28:OFFSET(BL28,0,-(12-$C$2)-1),)
Where C2 is the month number.
However with the following figures:
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
487 450 405 428 492 443 415 550 357 416 416 442
and the formula:
AVERAGE(AZ6:OFFSET(BL6,0,-(12-$C$2)-1),)
Instead of getting an average of 450, I get 405, and I'm struggling to
resolve this.
Can anyone point out what I'm doing wrong?
Cheers
Ins
|