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
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 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!