How to count DISTINCT countries within a date range?
Quarterly, I am required to show how many DISTINCT countries were reached by our instructors. I need a formula that would count the DISTINCT countries reached between (for example) 1/1/2020 thru 3/31/2020 (for first Quarter reporting). I've attached a snippet from my Smartsheet to show the setup.
I have the formula for counting DISTINCT countries, but I need to add the date range.
=COUNT(DISTINCT[LOCATION COUNTRY]1:[LOCATION COUNTRY]114))
Thank you for your help!!!
Kitty Sandel
Answers
-
Try using a COLLECT function in the mix...
=COUNT(DISTINCT(COLLECT([LOCATION COUNTRY]1:[LOCATION COUNTRY]114, [Teaching End Date]1:[Teaching End Date]114, @cell >= DATE(2020, 1, 1), [Teaching Start Date]1:[Teaching Start Date]114, @cell <= DATE(2020, 3, 31))))
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
Check out the Formula Handbook template!