vladimiratanasiu
Active Member
- Joined
- Dec 17, 2010
- Messages
- 348
- Office Version
- 365
- 2021
- Platform
- Windows
Hello!
I have a situation with monthly costs. I need a formula to calculate and show automatically the average of all costs at some point (as it's shown in the attached table), each time a new value is inserted and excluding the annual totals. Thank you!
I have a situation with monthly costs. I need a formula to calculate and show automatically the average of all costs at some point (as it's shown in the attached table), each time a new value is inserted and excluding the annual totals. Thank you!
Book1.xlsx | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Year | Month | Cost | Medium cost | ||
2 | 2017 | 04/01/2017 | 34.83 | 34.83 | ||
3 | 5/1/2017 | 72 | 53.42 | |||
4 | 06/01/2017 | 74.77 | 60.53 | |||
5 | 07/01/2017 | 77.74 | 64.84 | |||
6 | 08/01/2017 | 76.5 | 67.17 | |||
7 | 09/01/2017 | 67.74 | 67.26 | |||
8 | 10/01/2017 | 130.11 | 76.24 | |||
9 | 11/01/2017 | 183.44 | 89.64 | |||
10 | 12/01/2017 | 189.56 | 100.74 | |||
11 | Total | 906.69 | ||||
12 | 2018 | 01/01/2018 | 189.56 | 109.63 | ||
13 | 02/01/2018 | 169.62 | 115.08 | |||
14 | 03/01/2018 | 177.41 | 120.27 | |||
15 | 04/01/2018 | 128.08 | 120.87 | |||
16 | 05/01/2018 | 132.35 | 121.69 | |||
17 | 06/01/2018 | 128.08 | 122.12 | |||
18 | 07/01/2018 | 132.35 | 122.76 | |||
19 | 08/01/2018 | 132.35 | 123.32 | |||
20 | 09/01/2018 | 113.2 | 122.76 | |||
21 | 10/01/2018 | 78.29 | 120.42 | |||
22 | 11/01/2018 | 75.77 | 118.19 | |||
23 | 12/01/2018 | 78.29 | 116.29 | |||
24 | Total | 1535.35 | ||||
25 | 2019 | 01/01/2019 | 78.29 | 114.56 | ||
26 | 02/01/2019 | 70.72 | 112.65 | |||
27 | 03/01/2019 | 71.48 | 110.94 | |||
28 | 04/01/2019 | 64.42 | 109.08 | |||
29 | 05/01/2019 | 66.57 | 107.44 | |||
30 | 06/01/2019 | 64.42 | 105.85 | |||
31 | 07/01/2019 | |||||
32 | 08/01/2019 | |||||
33 | 09/01/2019 | |||||
34 | 10/01/2019 | |||||
35 | 11/01/2019 | |||||
36 | 12/01/2019 | |||||
37 | Total | 415.9 | ||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2 | D2 | =AVERAGE(C2) |
D3:D10 | D3 | =AVERAGE($C$2:C3) |
C11 | C11 | =SUM(C2:C10) |
D12 | D12 | =AVERAGE($C$2:$C$10,$C$12) |
D13:D23 | D13 | =AVERAGE($C$2:$C$10,$C$12:C13) |
C24,C37 | C24 | =SUM(C12:C23) |
D25 | D25 | =AVERAGE($C$2:$C$10,$C$12:$C$23,$C$25) |
D26:D30 | D26 | =AVERAGE($C$2:$C$10,$C$12:$C$23,$C$25:C26) |
Last edited: