Using COUNTIF and AND Together
I am trying to count the number of times a person is assigned as a project lead, and only if the project is currently in progress. I'm still pretty new to functions and am having a hard time figuring out what i missed here. I only want to count if it meets both criteria.
I haven't done much with helper columns yet, so not sure if this is a situation where i need that. Any help would be appreciated!
=COUNTIF({Project Lead}, "Lynn Meadow", AND({Project Status}, CONTAINS("In Progress", @cell)))
Answers
-
Hi @Lynn Meadow,
This formula should work if you pop it into a sheet summary field or a metrics sheet. It would be a little different if you are trying to display the count on the sheet itself.
=COUNTIFS([Project Lead]:[Project Lead], [Project Lead]:[Project Lead] = "Lynn Meadow", [Project Status]:[Project Status], "In Progress")
-
Thanks so much. I forgot about the difference with COUNTIFS. I still had to tweak a bit, but got it to work. I am using a metrics sheet and referencing to the main project list.
=COUNTIFS({Project Lead}, [Team Member]@row, {Project Status}, CONTAINS("In Progress", @cell))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!