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.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!