Best Formula
What is the best formula to count number of different terms (the terms being different names) within a column that does not contain a list of certain names.
Example: I want to count the number of names in the columns that does not include Bob, Anna and Joe, each names could be used multiple times within the list and each one needs to be counted as 1 or not included as 1 in the SUM.
Answers
-
Hi @Annick
We use a simple count in our project sheet's summary, counts the number of projects each are assigned to =COUNTIF([Assigned To]:[Assigned To], "name")
Would this work for you?
Cheers.
-
=COUNT(DISTINCT(column:column)) -
SUM(
IF(COUNTIF(column:column, "Bob") > 0, 1, 0),
IF(COUNTIF(column:column, "Anna") > 0, 1, 0),
IF(COUNTIF(column:column, "Joe") > 0, 1, 0))Explanation:
Count unique using
=COUNT(DISTINCT(column:column))
Use SUM function to calculate unwanted names.
=
SUM(
IF(COUNTIF(column:column, "Bob") > 0, 1, 0),
IF(COUNTIF(column:column, "Anna") > 0, 1, 0),
IF(COUNTIF(column:column, "Joe") > 0, 1, 0))...
-
Nice, was not aware of DISTINCT, can see I was way off on understanding the question - off for another coffee…
Cheers.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 445 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!