Average offset

Hi,


I am trying to average the last 10 values in a column containing more than 10 values and I want the formula to update this automatically as more entries are entered.


My data starts from cell D2 and continues to D100 (not all filled in yet). The formula I am using is:


=AVERAGE(OFFSET(D1,COUNT(D:D),0,−10))


The error message I receive is "Argument 4 in OFFSET must be greater than or equal to 1 and less than or equal to 65,535".


I assume the -10 in the formula is the issue but not sure why.


Can anyone help?


Much obliged.

iPad Pro 11-inch Wi-Fi, Cellular

Posted on Dec 28, 2018 9:39 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 28, 2018 12:21 PM

you were close with your formula. (I cant check in numbers right now, but in excel it is basically the below)


=AVERAGE(OFFSET(B1 , COUNTA(B)-10 , 0 , 10 , 1))


you need to offset by ten rows up in the second argument. then just set a height of ten rows for the fourth.

If you have less than ten values it will still throw an error. this also assumes that there is no header row, adjust accordingly.


This is actually the exact question i pose to people i interview for positions where excel knowledge is required, to better gauge what their true "how experienced are you" rating is ( this along with quite a few more and varied questions gives me a relative rating between candidates on knowledge)


3 replies
Question marked as Top-ranking reply

Dec 28, 2018 12:21 PM in response to fazthfc

you were close with your formula. (I cant check in numbers right now, but in excel it is basically the below)


=AVERAGE(OFFSET(B1 , COUNTA(B)-10 , 0 , 10 , 1))


you need to offset by ten rows up in the second argument. then just set a height of ten rows for the fourth.

If you have less than ten values it will still throw an error. this also assumes that there is no header row, adjust accordingly.


This is actually the exact question i pose to people i interview for positions where excel knowledge is required, to better gauge what their true "how experienced are you" rating is ( this along with quite a few more and varied questions gives me a relative rating between candidates on knowledge)


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Average offset

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.