Count Rows in Sheet Meeting Certain Criteria

I'm trying to get a count of the number of rows in my sheet that meet a certain criteria and am getting an #INVALID OPERATION error.
Here is what I have so far:
=COUNTIF([Resident (Lookup)]:[Resident (Lookup)], AND([Resident (Lookup)]@row, Status:Status <> "Closed"))
What I'm trying to do is get a count of the number of rows for a resident that are not closed. We have three statuses, New, In Progress and Closed, and if a resident has more than one ticket that is New or In Progress I want to see the total number of open tickets that they have.
Example, Resident ABC has two closed tickets, two new tickets and one in progress ticket. I'd like the column to return 3 for every row where Resident (Lookup) = ABC.
Best Answers
-
=COUNTIFS([Resident (Lookup)]:[Resident (Lookup)], [Resident (Lookup)]@row, Status:Status, <>"Closed")
Use COUNTIFS and specify the first range and it's criteria and then the 2nd range and it's criteria.
-
Thank you, this is what I needed!
Answers
-
=COUNTIFS([Resident (Lookup)]:[Resident (Lookup)], [Resident (Lookup)]@row, Status:Status, <>"Closed")
Use COUNTIFS and specify the first range and it's criteria and then the 2nd range and it's criteria.
-
Thank you, this is what I needed!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 452 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!