Count unique cities depending on project status (2 different sheets)
Hi everyone,
I have 2 different sheets. Sheet A has Project number/name and Status. Sheet B has Project number/name and cities (notice Sheet B has more rows because a project can have more than one city associated).
Sheet A:
Sheet B:
In a third sheet I need to count the unique cities for an specific Project Status. So for example:
*Nb of cities in "In Progress" Projects should be: 5 different cities (A, B, C, D, E). C is repeated in both projects.
*Nb of cities in "Not Started" Projects should be: 4 different cities (B, D, A, C).
I can´t add a new "Status" column in Sheet B. So I was trying with the COUNT(DISTINCT(COLLECT but I keep only getting a 1 result. And also tried adding IFs and INDEX but can´t make it work.
Thanks in advance, greetings!
Answers
-
I did something similar and had to use a helper column with a join(collect then did a column for # of unique entries that I used Countm(Distinct
-
Hi Hollie! Thank you for your response!
Yes, it seems that I will need a helper column after all.
Regards
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 473 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!