Formula help to count a distinct field when a condition is met
Hello Smartsheet Community,
I'm trying to count the Distinct Project names in a different sheet's column when another column, PI Group, matches [PI Group]@row, but am getting an Incorrect Argument. Can you help me finesse this formula? Thank you!! Below is the formula that's not working and the data it's referencing. -kerri
Best Answer
-
Try
=COUNT(DISTINCT(COLLECT({Product Increment Data Project Name}, {Product Increment Data PI Group}, [PI Group]@row)))
Answers
-
@Kerri S I would use Collect() inside the Distinct function to ensure you are only looking at the right subset of project names. The Collect function should let you build the list of projects where PI groups match. The Distinct function will then pick distinct project names, which you can count.
dm
-
Hi Dale - I'm still gettting Incorrect Argument.
=COLLECT(DISTINCT({Product Increment Data Project Name}, {Product Increment Data PI Group}, [PI Group]@row))
-
Try
=COUNT(DISTINCT(COLLECT({Product Increment Data Project Name}, {Product Increment Data PI Group}, [PI Group]@row)))
-
Works perfectly, many thank yous!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.7K Get Help
- 472 Global Discussions
- 200 Use Cases
- 514 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 82 Community Job Board
- 520 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!