Counting Unique Instances

I have an inventory of courses and course masters in a Smartsheet. A course (e.g., CAP 600) can have one or two modalities (BL or blended, OL or online, or BL and OL).

The PARENT row is the prefix, and each child is a row for a course. Oftentimes there are two rows for each course because there are two modalities of the course (e.g., CAP 600 below) while other times there is just one row (e.g., CAP 608) since it only has one modality (BL or blended).

I can count the number of children (equals 12), and I can use a formulae to determine if a course is unique (see the first row of CAP 600 is marked "Yes", but the second row of CAP 600 is marked "No"). I can then count the number of unique courses (equals 7). I can count the number of masters for courses/modalities that are completed (equals 5). And, finally, I can count the number of unique courses that are Active (equals 5, since CAP 609 and 610, while unique, are not "Active").

NUMBER OF CHILDREN = 12

NUMBER OF UNIQUE COURSES = 7

NUMBER OF COMPLETED MASTERS = 6

NUMBER OF UNIQUE COURSES THAT ARE ALSO ACTIVE = 5

However, what I cannot figure out how to do is count the number of courses that have a master for at least one modality. (This is different than just counting the number of "Completed".)

For this example, it would be 4. I do not want to count both of the Completed for CAP 600. I just want to count this course once, even though there are two masters, one for each modality. I would also count CAP 605 (it has a completed master for the OL modality at least), CAP 607 (it has at least the BL modality completed), and CAP 608 (even though it only has one modality, unlike others that have two modalities).

I would NOT count CAP 609 (it has no completed master) or CAP 610 (it has a completed master for the BL modality, but the course itself is Inactive).

Any idea what formula I could use to do this?

countingin-CMR.png


Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!