Help with DISTINCT Formula
I need to calculate a value that shows the following:
# of distinct institutions in a column, and out of those distinct institutions, I need to filter out the Global institutions in another column labeled "Territory". Here is what I have come up with, but it is not working:
=COUNTIF(DISTINCT(Institution:Institution), Territory:Territory, NOT(@cell = "Global"))
I saw somewhere that the COUNTIF and COUNTIFS do not work with the DISTINCT value. Is that true? Help!
Best Answer
-
It is true. You are gong to need a COUNT/DISTINCT/COLLECT.
=COUNT(DISTINCT(COLLECT(Institution:Institution, Territory:Territory, @cell <> "Global")))
Answers
-
It is true. You are gong to need a COUNT/DISTINCT/COLLECT.
=COUNT(DISTINCT(COLLECT(Institution:Institution, Territory:Territory, @cell <> "Global")))
-
Yep, that did it!! Thank you!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!