Formula question - count projects by status, category and date
Hi Everyone,
I want to count the number of Project IDs where the Project Status = "Complete", the Project Category matches the column header (AV-TV, Software, etc.) and the End Date is greater than 2022,09,30. I can count the number of overall complete projects for the project category without the date, but cannot seem to get the date to work also.
=COUNT(COLLECT({Project ID}, {Project Status3}, $Label@row, {Project Category}, [AV-TV]$1))
I've tried many different combinations with this as the last. Although it is no longer UNPARSABLE it does not count correctly.
=COUNT(AND(COLLECT({Project ID}, {Project Status}, $Label@row, {Project Category}, [AV-TV]$1), {End Date} > DATE(2022, 9, 30)))
Can anyone offer a solution?
Thank you for any help!
Best Answer
-
You dont need the AND()
Simply add more contition to the Collect
=COUNT(COLLECT({Project ID}, {Project Status}, $Label@row, {Project Category}, [AV-TV]$1,{End Date},> DATE(2022, 9, 30)))
Answers
-
You dont need the AND()
Simply add more contition to the Collect
=COUNT(COLLECT({Project ID}, {Project Status}, $Label@row, {Project Category}, [AV-TV]$1,{End Date},> DATE(2022, 9, 30)))
-
Christian,
This works perfectly! Thank you very much.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!