Help with COUNTIF formula
Hi all,
I'm trying to finalize a formula - wondering if anyone can help?
I was successful with the first part of the formula which is this:
=COUNTIF([Departments Involved in Project]:[Departments Involved in Project], CONTAINS("IT", @cell))
The formula above tells me how many projects our IT dept is involved in. I'd like to drill down a bit more to know how many projects IT is involved in that are also department level. I don't know how to add an AND function. There is another column in the same sheet that I would like to reference, so if the column above contains "IT" and the second column is equal to "department level" I'd like to get the result of that. Any suggestions?
=COUNTIF([Departments Involved in Project]:[Departments Involved in Project], CONTAINS("IT", @cell, AND([CU Wide/Dept Level Project]:[CU Wide/Dept Level Project], CONTAINS("Department Level"))))
Answers
-
You would need a COUNTIFS (with the "S" on the end) instead to allow for multiple range/criteria sets.
-
Thank you Paul for the response. I did try that, I'm getting stuck going from the first part of the formula to the second. Any suggestions?
-
It is just how it is outlined in the article.
=COUNTIFS(range 1, criteria 1, range 2, criteria 2)
-
I saw that, here's where I'm at and am getting "unparseable"
=COUNTIFS([Departments Involved in Project]:[Departments Involved in Project], CONTAINS("IT"), [CU Wide/Dept Level Project]:[CU Wide/Dept Level Project], Department Level))
-
Looks like you are missing quotes around "Department Level" and have one too many closing parenthesis on the end.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 200 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!