Formula that counts if records meet specific criteria

modestcode

New Member
Joined
Dec 30, 2022
Messages
2
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
Hi, I am feeling a bit stumped on this excel formula I'm working on. The answer is probably easy.. If i can figure out a way to address this in a simplified example, then I can probably apply it to my more complex dataset. Essentially I'm trying to create a formula that only counts users with tickets in closed status. So in the example below, I would expect Frank to be the only user tied to Closed tickets, and my formula result to be 1. There are duplicate ticket IDs in my dataset but other fields make them unique records. The answer is probably easy, but any help would be greatly appreciated. Thanks!


Example of data:

 UserTicket ID Status
Bob1Closed
Bob1Closed
Bob2Open
Bob3Closed
Frank4Closed
Frank5Closed
Frank6Closed
Steve7Open
Steve7Open
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
If I understand you correctly l, you want to count the # of closed records for each person. To do this you can use COUNTIFS, where your criteria ranges are their names & the status columns, while the criteria will be each individual's names and "closed". On my mobile so can't type up complete example at the moment
 
Upvote 0
Good idea. So with this formula, my result is 2. Assuming the formula I have is counting Bob since there are 3 closed tickets. But I'd like to exclude Bob since he has 1 in open status.

{=SUM(IF(Table1[Status]="Closed", 1/COUNTIFS(Table1[Status],"Closed",Table1[User],Table1[User]),0))}
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,946
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top