Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
Adding numbers that fall in a date range
Just learning Smartsheet. I need assistance creating a formula that will create a sum based on calendar months. I have two columns: one for a number of appointments, the second is a date column. As an example, I would like to have Smartsheet calculate appointments that fell in December. Thanks for any assistance.
Comments
-
Hello,
Thanks for the question. If you'd like to sum a column for row that meet a specified criteria, you can use the SUMIF() function (https://help.smartsheet.com/function/sumif). To have that criteria be a specific month in a date column, you can utilize the MONTH() and @cell functions. More on the MONTH() function can be found here (https://help.smartsheet.com/function/month), and more on the @cell function can be found here (https://help.smartsheet.com/articles/2476491).
Here's an example of how this formula could be written:
=SUMIF([Date Column]:[Date Column], IFERROR(MONTH(@cell), 0) = 12, [# of appointments]:[# of appointments])
To make this work for you, you can change "Date Column" to the name of your date column, and "# of appointments" to the name of the column that your number of appointments are in. The 12 in the formula is which month to look for, so if you'd like to make this work for another month, this can be changed to the number that represents the month (1-12).
For more information on all of the formulas available in Smartsheet, please check out our formulas list help center article (https://help.smartsheet.com/functions).
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives