Count values between dates dependent on another column value
Comments
-
After working on it a bit longer I figured it out:
=COUNTIFS({Community}, "Missoula", {Date}, >=DATE(2016, 1, 1), {Date}, <=DATE(2016, 12, 31))
-
If you are looking at the entire year, you could save yourself a few keystrokes and use something along the lines of...
=COUNTIFS({Community}, "Missoula", {Date}, YEAR(@cell) = 2016)
^^ looks at all of 2016
You can also use this to look at specific months or even a specific month within a specific year.
=COUNTIFS({Community}, "Missoula", {Date}, MONTH(@cell) = 6)
^^ looks at every date that falls within the month of June
=COUNTIFS({Community}, "Missoula", {Date}, AND(YEAR(@cell) = 2016, MONTH(@cell) = 6)
^^ Looks at every date that falls in June of 2016
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 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!