Merge two SUM(COUNTIFS( formulas

detriez

Board Regular
Joined
Sep 13, 2011
Messages
193
Office Version
  1. 365
Platform
  1. Windows
These two formulas work independently but I cant figure out how to put them together
I'm trying to count the status values AND Countries

Code:
=SUM(COUNTIFS(Table6[Lead Status],{"Open","Suspect","Working - Attempted","Working - Connected"}))
Code:
=SUM(COUNTIFS(Table6[Country],{"United States","Canada"}))

I tried this but, the counts are wrong
Code:
=COUNTIFS(Table6[Lead Status],{"Open","Suspect","Working - Attempted","Working - Connected"},Table6[Country],{"United States","Canada"})
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Try
=sum(COUNTIFS(Table6[Lead Status],{"Open","Suspect","Working - Attempted","Working - Connected"},Table6[Country],{"United States";"Canada"}))

Note the ; in the second array
 
Last edited:
Upvote 0
Thanks Fluff.. That worked by why? What does the ; do and why would it only be in the last array?
 
Upvote 0
When working with two arrays like that one has to be horizontal(rows) & one Vertical (columns)then ; in the 2nd array makes it vertical
 
Upvote 0
ok.. thanks.
so using that, this should also work?

Code:
=SUM(COUNTIFS(Table6[Zip/Postal Code],"<>"&"*",Table6[Country],{"United States";"Canada"}))
 
Upvote 0
Yeah.. No. that didn't work.. Maybe this not an array
but , instead of ; didnt work either

"<>"&"*"
 
Upvote 0
If you are trying to count blanks try "" instead of "<>"&"*"
 
Upvote 0
Tried that too... But again the numbers are off

Code:
=SUM(COUNTIFS(Table6[Zip/Postal Code],"",Table6[Country],{"United States","Canada"}))
 
Upvote 0
my bad.. I forgot to include the "Status" Array.. It all works now

Thank you for your help
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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