Formula to Obtain Cumulative Month Total From Previous Days
Currently I am using a formula that will give a month to date sum from previous days. It was working until I got to a new month. The formula is
=IF([Medicare Calls Received]@row = "", "", SUMIFS([Medicare Calls Received]:[Medicare Calls Received], [Date of Service]:[Date of Service], <=[Date of Service]@row))
What I am trying to accomplish now is to narrow it down by month. So October would do a sum of previous days but only for October and not summing the ones from September. I do have another column called "Month" that converts the date to just the month name i.e. "October" and was wondering if that will work.
Answers
-
Hi John,
That month column should be all you need!
=IF([Medicare Calls Received]@row = "", "", SUMIFS([Medicare Calls Received]:[Medicare Calls Received], [Date of Service]:[Date of Service], <=[Date of Service]@row, [Month]:[Month], Month@row))
This additional criteria will count if the month is equal to the month in that row, so that should be enough to narrow the filter as desired.
A year from now, if all the data is still in the same sheet you would need to similarly create a Year column and add that to the SUMIFS.
Cheers!
Renée Roberge
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!