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
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!