Forum Discussion

oskar14's avatar
oskar14
Copper Contributor
Mar 14, 2024
Solved

7 Day Average

Hello,

 

I want to calculate the average of various numbers in a week. When drag and filling the formula, it should skip to the next week and calculate the average of the next 7 numbers. When I try to do it it only goes down one cell and I get a "moving" average you could say. How do I solve this?

 

Thanks in advance, 

Oskar

  • oskar14 

    =MITTELWERT(INDEX($C$3:$C$23;1+(ZEILE(M1)-ZEILE($M$1))*7):INDEX($C$3:$C$23;7+(ZEILE(M1)-ZEILE($M$1))*7))

     

    =AVERAGE(INDEX($C$3:$C$23,1+(ROW(M1)-ROW($M$1))*7):INDEX($C$3:$C$23,7+(ROW(M1)-ROW($M$1))*7))

     

    This works if i correctly understand what you want to do.

4 Replies

Resources