vladimiratanasiu
Active Member
- Joined
- Dec 17, 2010
- Messages
- 347
- Office Version
- 365
- 2021
- Platform
- Windows
Hello!
I have a large table with the consumption of electricity in 50 points over many years. I need a dynamic solution to calculate automatically the annual difference (e.g. 5 Kwh, -155 Kwh) between a period of one year (e.g. January-June 2021; January-August 2022) with the same period of the previous year (January-June 2020; January-August 2021). It should take into consideration the last numerical value added progressively, excluding only the non-value cells. How could I do it?
Thank you in advance!
I have a large table with the consumption of electricity in 50 points over many years. I need a dynamic solution to calculate automatically the annual difference (e.g. 5 Kwh, -155 Kwh) between a period of one year (e.g. January-June 2021; January-August 2022) with the same period of the previous year (January-June 2020; January-August 2021). It should take into consideration the last numerical value added progressively, excluding only the non-value cells. How could I do it?
Thank you in advance!
Book1.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | |||
2 | Period | Electricity consumption (Kwh) | Period | Electricity consumption (Kwh) | Period | Electricity consumption (Kwh) | Period | Electricity consumption (Kwh) | ||
3 | Jan-20 | 180 | Jan-21 | 185 | Jan-21 | 185 | Jan-22 | 160 | ||
4 | Feb-20 | 170 | Feb-21 | 175 | Feb-21 | 175 | Feb-22 | 155 | ||
5 | Mar-20 | 120 | Mar-21 | 130 | Mar-21 | 130 | Mar-22 | 127 | ||
6 | Apr-20 | 100 | Apr-21 | 90 | Apr-21 | 90 | Apr-22 | 92 | ||
7 | May-20 | 80 | May-21 | 80 | May-21 | 80 | May-22 | 61 | ||
8 | Jun-20 | 60 | Jun-21 | 55 | Jun-21 | 55 | Jun-22 | 0 | ||
9 | Jul-20 | 50 | Jul-21 | 34 | Jul-21 | 34 | Jul-22 | 0 | ||
10 | Aug-20 | 40 | Aug-21 | 42 | Aug-21 | 42 | Aug-22 | 41 | ||
11 | Sep-20 | 60 | Sep-21 | 55 | Sep-21 | 55 | Sep-22 | |||
12 | Oct-20 | 80 | Oct-21 | 76 | Oct-21 | 76 | Oct-22 | |||
13 | Nov-20 | 100 | Nov-21 | 109 | Nov-21 | 109 | Nov-22 | |||
14 | Dec-20 | 140 | Dec-21 | 134 | Dec-21 | 134 | Dec-22 | |||
15 | Annual difference (+/-) | 5 | Annual difference (+/-) | -155 | ||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E15 | E15 | =SUM(E3:E8)-SUM(C3:C8) |
I15 | I15 | =SUM(I3:I10)-SUM(G3:G10) |
Last edited: