Looking for solution to compute the rolling twelve month sum but when part of the data is from the current sheet and one other sheet. It is the monthly totals at D35, F35, H35 etc that are used for the rolling 12-month totals.
The rolling 12 month sum should be the monthly sums from the last complete month before the current month back 12 months. Example: For this month (May), I would need to sum the month sums from May 2015 through April 2016.
The date headers Jan 2016 through Dec 2016 are at Sheet 2 and Sheet 1 (same but for 2015) cells C2, E2, G2 through Y2.
The monthly sums are at Sheet 1 and Sheet 2 cells D35, F35, H35 through Z35.
Excel 2010 and Windows 7
Excel Workbook | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | L | M | N | |||
1 | * | Sheet 2 | * | * | * | * | * | * | * | * | * | * | * | ||
2 | Day | Jan 16 | * | Feb 16 | * | Mar 16 | * | Apr 16 | * | May 16 | * | Jun 16 | * | ||
3 | 1 | 1811.5 | 0.0 | 1815.6 | 0.0 | 1824.2 | 0.3 | 1832.2 | 0.0 | 1840.1 | 0.5 | * | * | ||
33 | 31 | 1815.6 | 0.2 | * | * | 1832.2 | 0.0 | * | * | * | * | * | * | ||
34 | * | * | * | * | * | * | * | * | * | * | * | * | * | ||
35 | MONTH TOTAL | 4.1 | * | 8.3 | * | 8.3 | * | 7.4 | * | 0.5 | * | 0.0 | |||
36 | * | * | * | * | * | * | * | * | * | * | * | ||||
37 | * | * | * | * | * | Current Year Total: | 28.6 | * | Rolling 12-Mo Total: | * | * | ||||
Sheet 2 |
Excel Workbook | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |||
1 | * | Sheet 1 | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | ||
2 | Day | Jan 15 | * | Feb 15 | * | Mar 15 | * | Apr 15 | * | May 15 | * | Jun 15 | * | Jul 15 | * | Aug 15 | * | Sep 15 | * | Oct 15 | * | Nov 15 | * | Dec 15 | * | ||
3 | 1 | 1701.6 | 0.5 | 1707.6 | 0.0 | 1715.5 | 0.0 | 1724.3 | 0.4 | 1730.6 | 0.2 | 1739.2 | 0.2 | 1753.5 | 0.5 | 1768.1 | 0.1 | 1778.4 | 0.0 | 1783.5 | 0.3 | 1791.0 | 0.0 | 1801.1 | 0.2 | ||
33 | 31 | 1707.6 | 0.3 | * | * | 1723.9 | * | * | * | 1739.0 | 0.0 | * | * | 1768.0 | 0.8 | 1778.4 | 0.0 | * | * | 1791.0 | 0.4 | * | * | 1811.5 | 0.1 | ||
34 | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | ||
35 | MONTH TOTAL | 6.5 | * | 7.9 | * | 8.4 | * | 6.5 | * | 8.6 | * | 14.0 | * | 15.0 | * | 10.4 | * | 4.8 | * | 7.8 | * | 9.9 | * | 10.6 | |||
36 | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | ||||
37 | * | * | * | * | * | Current Year Total: | 110.4 | * | Rolling 12-Mo Total: | * | * | * | * | * | * | * | * | * | * | * | * | * | * | ||||
38 | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | * | ||||
Sheet 1 |
The rolling 12 month sum should be the monthly sums from the last complete month before the current month back 12 months. Example: For this month (May), I would need to sum the month sums from May 2015 through April 2016.
The date headers Jan 2016 through Dec 2016 are at Sheet 2 and Sheet 1 (same but for 2015) cells C2, E2, G2 through Y2.
The monthly sums are at Sheet 1 and Sheet 2 cells D35, F35, H35 through Z35.
Excel 2010 and Windows 7