My sheet current has four project types (parent row.) Underneath each project type is the project name (children.) And underneath each project is a list of the team members working on that project (ancestors.)
I need to be able to count each unique employee working on projects under each Project Type. So if an employee is working on two project for HR Operations and one project for Strategic Partnerships, they are counted once for each type. Essentially, what I want my formula to saw is "If the parent row is HR Operations, count the unique employees"
The formula I currently have is:
=IF(COUNT(DISTINCT([Project Team]$13:[Project Team]@row)) <> COUNT(DISTINCT([Project Team]$13:[Project Team]13)), COUNT(DISTINCT([Project Team]$13:[Project Team]@row)))
However, this only counts the employee once for the entire sheet. In the screenshots below, I need the employees under Strategic Partnerships to be counted again. They are currently not being counted because they are on projects under HR Operations.