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
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 138 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!