Count IF formula that meets multiple criteria.
I am looking to get an accurate count of someone’s workload. I want to count if a specific person’s workload meets multiple stage criterion such as “Execution” and “Planning”
The Support Required column is a contact list. The Stage column in a dropdown list.
I am pulling this information into a separate sheet hence the {} for the cross sheet formula.
The below formula works and counts all projects they are listed on under “Support Required”
=COUNTIF({Master Sheet Support Required}, FIND("Denise", @cell) > 0)
When I try to add additional criteria it comes back at #incorrect agreement.
=COUNTIFS({Master Sheet Support Required}, FIND("Denise", @cell) > 0, AND(IF({Master Sheet Stage} = "Execution")))
Best Answer
-
@AlexisJ COUNTIFS will only count a row if all the criteria are present. So if you want to count multiple possible values in the same range, you need to incorporate an OR function to make that work.
=COUNTIFS({Master Sheet Support Required}, FIND("Denise", @cell) > 0, {Master Sheet Stage}, OR(@cell = "Execution", @cell = "Planning"))
You can keep adding more Stage values in the same way within the OR if needed.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
@AlexisJ Just a syntax issue. In COUNTIFS and SUMIFS, since you can list multiple criteria ranges, the AND is implied and built into the function, plus you don't need the IF in there. The syntax is just COUNTIFS(range1, criteria1, range2, criteria2...) Try this:
=COUNTIFS({Master Sheet Support Required}, FIND("Denise", @cell) > 0, {Master Sheet Stage}, "Execution")
If the above has an issue, maybe try:
=COUNTIFS({Master Sheet Support Required}, FIND("Denise", @cell) > 0, {Master Sheet Stage}, @cell = "Execution")
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
@Jeff Reisman That is helpful! I am now running into another issue. I hope you can help out.
It works if I am only looking to count 1 stage "Execution". When I try to add a second stage it doesn't count any of the projects and reports a 0.
=COUNTIFS({Master Sheet Support Required}, FIND("Denise", @cell) > 0, {Master Sheet Stage}, @cell = "Execution", {Master Sheet Stage}, @cell = "Planning")
-
@AlexisJ COUNTIFS will only count a row if all the criteria are present. So if you want to count multiple possible values in the same range, you need to incorporate an OR function to make that work.
=COUNTIFS({Master Sheet Support Required}, FIND("Denise", @cell) > 0, {Master Sheet Stage}, OR(@cell = "Execution", @cell = "Planning"))
You can keep adding more Stage values in the same way within the OR if needed.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
@Jeff Reisman Thank worked! Thank you so much.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!