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.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 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!