COUNTIF Issue - Multiple Criteria

MCKSD1524

New Member
Joined
Jun 22, 2016
Messages
2
HI

I'm having issues with a COUNTIF formula where i have it check certain columns for mulltiple values. Although its a valid formula the result is incorrect.

The formula is =SUM(COUNTIFS(Table316[Tier],{"Tier 1","Tier 2","Tier 3","Tier 4"},Table316[Zone],{"DOMAIN A","DOMAIN B"},Table316[Sec/Crit Needed],">10"))

The resultant reply should be 44 but this comes back as 1.

If I split the formula it brings back the correct values which then sum upto the expected value of 44

=SUM(COUNTIFS(Table316[Tier],{"Tier 1","Tier 2","Tier 3","Tier 4"},Table316[Zone],"DOMAINA",Table316[Sec/Crit Needed],">10")) Result = 0
=SUM(COUNTIFS(Table316[Tier],{"Tier 1","Tier 2","Tier 3","Tier 4"},Table316[Zone],"DOMAINB",Table316[Sec/Crit Needed],">10")) Result = 44

I've worked around it so far by adding the 2 formulas together as below but I can't see why the top formula wouldn't work. When I use the same formula to count colums with a certian tier "Table316[Tier],{"Tier 1","Tier 2","Tier 3","Tier 4"}" it works fine.

Current Fix

=SUM(COUNTIFS(Table316[Tier],{"Tier 1","Tier 2","Tier 3","Tier 4"},Table316[Zone],{"DOMAIN A"},Table316[Sec/Crit Needed],">10"))+SUM(COUNTIFS(Table316[Tier],{"Tier 1","Tier 2","Tier 3","Tier 4"},Table316[Zone],{"DOMAIN B"},Table316[Sec/Crit Needed],">10"))
 
Welcome to Mr Excel

The first criteria is an horizontal array (values separated by commas); so the second array must be a vertical array (values separated by semicolons)

Try this
=SUM(COUNTIFS(Table316[Tier],{"Tier 1","Tier 2","Tier 3","Tier 4"},Table316[Zone],{"DOMAIN A";"DOMAIN B"},Table316[Sec/Crit Needed],">10"))

Hope this helps

M.
 
Upvote 0
FANTASTIC, worked perfectly.

Without sounding too much like a newbie what's the difference between a horizontal and a vertical array?

Thanks Marcelo!!
 
Upvote 0

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