bfoxworthy
New Member
- Joined
- Jun 28, 2011
- Messages
- 7
I feel like this should be pretty straightforward using a Sum and Offset function. I have monthly revenue data in a table as follows:
Excel 2010
<tbody>
</tbody>
I tried using a formula like this: =SUM(OFFSET(C2,0,0,,(MONTH(E$C1)))) but this doesn't work.
Excel 2010
B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 1/31/2012 | 2/29/2012 | 3/31/2012 | 4/30/2012 | 5/31/2012 | 6/30/2012 | 7/31/2012 | 8/31/2012 | 9/30/2012 | 10/31/2012 | 11/30/2012 | 12/31/2012 | 1/31/2013 | 2/28/2013 | 3/31/2013 | |
2 | Revenue | 173,995 | 171,098 | 180,910 | 193,189 | 282,645 | 297,107 | 345,414 | 364,242 | 372,352 | 396,951 | 379,082 | 460,580 | 470,766 | 441,368 | 506,636 |
3 | ||||||||||||||||
4 | Year to Date Revenue | 173,995 | 345,093 | 526,003 | 719,192 | 1,001,837 | 1,298,944 | 1,644,358 | 2,008,600 | 2,380,953 | 2,777,904 | 3,156,986 | 3,617,565 | 470,766 | 912,134 | 1,418,770 |
5 | ^YTD Sum starts over |
<tbody>
</tbody>
Sheet3
I would like to be able to use a single formula to sum the year to date data based on the month. For example: February would include the sum of 2 months (January and February). My date inputs are dynamic from another sheet so I cannot simply use a Sum($C2:C2) style reference. When you get out to January 2013 the formula should only sum the single month.I tried using a formula like this: =SUM(OFFSET(C2,0,0,,(MONTH(E$C1)))) but this doesn't work.