Determine if a date is prior to another date/year - include as criterion
I would like to determine if a date is prior to 01/01/2015 and include it as criterion for the count/distinct/collect combination I inquired about previously??
=COUNT(DISTINCT(COLLECT({CIP Detail Summary Range 4}, {CIP Detail Summary Range 5}, ="OPEN", {CIP Detail Summary Range 3}, =0, IF(YEAR({CIP Detail Summary Range 1} < 2015)))))
Answers
-
Because of the range, criteria, range, criteria, etc syntax, you would need to specify the range first then use an @cell reference in the criteria.
=COUNT(DISTINCT(COLLECT({CIP Detail Summary Range 4}, {CIP Detail Summary Range 5}, ="OPEN", {CIP Detail Summary Range 3}, =0, {CIP Detail Summary Range 1}, IFERROR(YEAR(@cell), 2016) < 2015)))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 145 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 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!