COUNTIFS Function for Multiple Criteria in Single & Multiple Column

petes

Board Regular
Joined
Sep 12, 2009
Messages
168
I have 2 columns in spreadsheet as mentioned below:

Column A Column B

Closed Master
Open Slave
Error Master
Hold Master
Reopen Slave

I need to Count all "Closed", "Open" & "Hold" status from Column A and corresponding "Master" status from Column B so that the output of that formula will be "2" as per the above example.

Thanks Guys!!!!
 
Nice formula Aladin,

Can you tell me if it is possible to use such a formula and rely upon the array "Closed","Open,"Hold" being entered in a separate single cell rather than being located within the formula?
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Nice formula Aladin,

Can you tell me if it is possible to use such a formula and rely upon the array "Closed","Open,"Hold" being entered in a separate single cell rather than being located within the formula?

If Closed, Open, and Hold are in a 3-cell area like C2:C4...

=SUMPRODUCT(COUNTIFS(A2:A6,"<>"&C2:C4,B2:B6,"Master")

If the items are in a single cell, say in E2...

=SUMPRODUCT(1-ISNUMBER(SEARCH(A2:A6,E2)),--(B2:B6="Master"))
 
Upvote 0

Forum statistics

Threads
1,214,790
Messages
6,121,607
Members
449,037
Latest member
Arbind kumar

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