Count mulitple criteria with string text and two conditions in one column

kbaker

New Member
Joined
Jan 29, 2013
Messages
4
I need to count the number of items that meet one criteria in some columns and in other columns could be one critieria or another. Example:

I need to count those items that meet the following criteria: col d = Change Request, col A contains AVM, col b can be active or assigned, and col c can be minor or major. Should produce count of 2. I have tried many varieties of sumproduct, countifs, isnumbers, etc, but to no avail. Any suggestions would be appreciated.
[TABLE="width: 615"]
<TBODY>[TR]
[TD][TABLE="width: 681"]
<TBODY>[TR]
[TD]


[/TD]
[TD][/TD]
[TD]A</SPAN>
[/TD]
[TD]B</SPAN>
[/TD]
[TD]C</SPAN>
[/TD]
[TD]D</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]1</SPAN>
[/TD]
[TD][/TD]
[TD]AVMSDM</SPAN>
[/TD]
[TD]Active
[/TD]
[TD]minor</SPAN>
[/TD]
[TD]Change Request</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]2</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Closed</SPAN>
[/TD]
[TD]Major</SPAN>
[/TD]
[TD]Change Request</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]3</SPAN>
[/TD]
[TD][/TD]
[TD]AVMSDM</SPAN>
[/TD]
[TD]Active</SPAN>
[/TD]
[TD]minor</SPAN>
[/TD]
[TD]Problem Report</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]4</SPAN>
[/TD]
[TD][/TD]
[TD]A/ODSM
IMCC</SPAN>
[/TD]
[TD]Assigned</SPAN>
[/TD]
[TD]6 - Integration</SPAN>
[/TD]
[TD]Problem Report</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]5</SPAN>
[/TD]
[TD][/TD]
[TD]ASFAVM</SPAN>
[/TD]
[TD]Assigned</SPAN>
[/TD]
[TD]major</SPAN>
[/TD]
[TD]Change Request</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]6</SPAN>
[/TD]
[TD][/TD]
[TD]IPSM</SPAN>
[/TD]
[TD]Pending</SPAN>
[/TD]
[TD]9 - Product Improvement</SPAN>
[/TD]
[TD]Change Request</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]</SPAN>
[/TD]
[TD]</SPAN>
[/TD]
[TD]</SPAN>
[/TD]
[TD][/TD]
[TD]</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]</SPAN>
[/TD]
[TD][/TD]
[TD]</SPAN>
[/TD]
[TD]</SPAN>
[/TD]
[TD]</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]</SPAN>
[/TD]
[TD]</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]</SPAN>
[/TD]
[TD]</SPAN>
[/TD]
[TD][/TD]
[TD]</SPAN>
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD]</SPAN>
[/TD]
[TD]</SPAN>
[/TD]
[/TR]
[TR]
[TD="align: right"]</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Give this formula a try...

=SUMPRODUCT(ISNUMBER(SEARCH("AVM",A1:A6))*(OR(B1:B6={"active","assigned"})*(OR(C1:C6={"major","minor"}))*(D1:D6="Change Request")))
 
Last edited:
Upvote 0
Try (untested)

=SUMPRODUCT(--(D1:D6="Change request")*--(ISNUMBER(SEARCH("AVM",A1:A6)))*((B1:B6="Active")+(B1:B6="Assigned"))*((C1:C6="Minor")+(C1:C6="Major")))
 
Upvote 0
try:

=SUMPRODUCT((ISNUMBER(SEARCH("AVM",A1:A6)))*(B1:B6={"active","assigned"})*(C1:C6={"minor","major"})*(D1:D6="change request"))
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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