Countif with Multiple arguments for external sheets
I am looking to count the total number of specific persons within a smartsheet using COUNTIF. I have a working function for one person, but I need to integrate multiple persons. This formula references a seperate sheet so my code is a little long. How can I make this work for me?
This works
=COUNTIF({external sheet name}, "Person 1")
Ideally I'd like to do something like this:
=COUNTIF({external sheet name}, "Person 1", "Person 2", "Person 3")
Answers
-
Hi @ndaudio,
If you want the total amount of times Person 1, 2 & 3 appear then you can use a simple addition:
=COUNTIF({external sheet name}, "Person 1") + COUNTIF({external sheet name}, "Person 2) + COUNTIF({external sheet name}, "Person 3")
Or you can use an OR statement in combination with @cell:
= COUNTIF({external sheet name}, (OR(@cell = "Person 1", @cell = "Person 2", @cell= "Person 3")))
Both of these should give you the result you're after so pick whichever one you prefer.
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
- 444 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!