identifying last month to sum up separate column
Hi, I have another query:
My worksheet includes a date column (mm/dd/yy) and I also have several other columns which include a 1 or 0 if certain criteria are met. What I need to be able to do is to identify if the month = LAST MONTH and if it does, to sum up, the values in each of the other columns separately. See the example table below if this helps:
Can anyone help, please?
Answers
-
Try something like this:
=IF(AND(MONTH(Date@row) = IF(MONTH(TODAY()) = 1, 12, MONT(TODAY()) - 1), YEAR(Date@row) = IF(MONTH(TODAY()) = 1, YEAR(TODAY()) - 1, YEAR(TODAY()))), SUM(This@row:[The Other]@row))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 142 Industry Talk
- 473 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!