Question with "Distinct" and "Countifs" or "Count" with "Collect"
I want to find out how many distinct items are in a list matching a condition but not in a similar distinct list of items matching a different criteria. Here's the setup: How many distinct fruits are recorded for 2024 that are not in the distinct list recorded for 2025 (see image)
?
Answers
-
Hi @Alan Meshaw
You could create a helper column to concatenate your fruit and year. You can hide that column to keep things pretty. Then do a Count Distinct formula against that column.
My Concat column (name yours whatever you like, and adjust the final formula accordingly) is concatenating the fruit and the year:
=Fruit@row + Year@row
Then your formula can look like this which will count uniques in 2025
Arrow pointing at cell with this formula: =COUNT(CONTAINS(2025, DISTINCT(Concat:Concat)))
Hope that helps!
BRgds,
-Ray
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 450 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!