COUNT DISTINCT Using Dates
I'm trying to count how many days in a set of data based on criteria of other columns, yet it's returning an answer for the entire sheet instead of the selected IF range.
I've tried =COUNT(DISTINCT(Date:Date), IF([Year / Month]:[Year / Month] = [Date Field for Klipfolio]@row))
My aim is count unique dates from "Date" column, when "Year / Month" column = "[Date Field for Klipfolio]2541". So as example in the screenshot the formula should return 5.
Please advise what I'm doing wrong with my formula.
Thanks
Best Answer
-
Try this...
=COUNT(DISTINCT(COLLECT(Date:Date, [Year / Month]:[Year / Month], @cell = [Date Field for Klipfolio]@row)))
Answers
-
Try this...
=COUNT(DISTINCT(COLLECT(Date:Date, [Year / Month]:[Year / Month], @cell = [Date Field for Klipfolio]@row)))
-
Yes it worked! Thank you @Paul Newcome
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 145 Just for fun
- 62 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!