Count if function but with multiple groups

msvoboda27

New Member
Joined
Feb 9, 2018
Messages
30
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
HI,
I have a large table, and I'm trying to count the closed, in progress, resolved, and closed statuses. I have multiple assignment groups, and I would like to count the volume of each assignment group. There are multiple rows for the same assignment group as well. I can't use a simple count function since I would like to group the total by assignment group. Can someone please educate me?
Thanks!

Excel Formula Count if.png
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Countifs should work for you. Try this:

Book1
GHIJK
1Requests by Assignment groupClosedIn ProgressResolvedPending
2Group 11011
3Group 20020
4Grand total1031
Sheet1
Cell Formulas
RangeFormula
H2:K3H2=COUNTIFS($C$6:$C$11,H$1,$F$6:$F$11,$G2)
H4:K4H4=SUM(H2:H3)
 
Upvote 0
You need to have something like this?

Group 1: 3 assignments
Pending 1
Resolved 1
Closed 1

If so you have a Pivot Table to do the job or you can use countifs function:

Syntax:
Excel Formula:
=COUNTIFS(A2:A6,E2,B2:B6,F1)

Double Days Offshore Jan a Jul 2024 Sanitized.xlsm
ABCDEFG
1Inquiry StateGroup SummaryGroup 1Group 2
2ResolvedGroup 1Closed10
3ClosedGroup 1Resolved12
4ResolvedGroup 2Pending10
5ResolvedGroup 2
6PendingGroup 1
Sheet2
Cell Formulas
RangeFormula
F2F2=COUNTIFS(A2:A6,E2,B2:B6,F1)
G2G2=COUNTIFS(A2:A6,G1,B2:B6,G1)
F3F3=COUNTIFS(A2:A6,E3,B2:B6,F1)
G3G3=COUNTIFS(A2:A6,E3,B2:B6,G1)
F4F4=COUNTIFS(A2:A6,E4,B2:B6,F1)
G4G4=COUNTIFS(A2:A6,E4,B2:B6,G1)
 
Upvote 0
HI,
I have a large table, and I'm trying to count the closed, in progress, resolved, and closed statuses. I have multiple assignment groups, and I would like to count the volume of each assignment group. There are multiple rows for the same assignment group as well. I can't use a simple count function since I would like to group the total by assignment group. Can someone please educate me?
Thanks!

View attachment 115160
One important caveat to consider is that both answers provided will use the cell value as reference. This means you should change the text in "Assignment group 1" to simply match the information you have in the table: "Group 1". Of course you can write in the formula syntax the "Group 1" too, but you´d better work in the first manner to avoid problems changing names of the group and etc..
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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