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
- Customer Resources
- 65.4K Get Help
- 447 Global Discussions
- 144 Industry Talk
- 479 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 490 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!