Using a Named Range List as a criteria in COUNTIFS

Steven975

New Member
Joined
Nov 14, 2019
Messages
20
I'm looking for some assistance using COUNTIFS with a named range (list) as a criteria.

It seems to me like it should work like this, but it doesn't. After some research I found a place that said this would work if the named range was a single cell, but I need it to reference a list, as I need the ability to add new criteria, without needing to change this formula. Is there a way to do this?
=COUNTIFS(A:A,"Jan",B:B,"Call",C:C,"<>OM",D:D"<>"&List)

In the example below it should return "2"
ABCD
JanCallOMLeft Message(n)
JanCallCall ListCustomer Contacted First(n)
JanCallFollow UpContacted(y)
JanCallOMNo Contact(n)
JanCallCall ListNo Contact(n)
JanCallCall ListContacted(y)

List
Customer Contacted First
No Contact
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Can you add a worker column?

Book1
ABCDEFG
1JanCallOMLeft MessageIn List?Count
2JanCallCall ListCustomer Contacted FirstFalse2
3JanCallFollow UpContactedTrue
4JanCallOMNo ContactFalse
5JanCallCall ListNo ContactFalse
6JanCallCall ListContactedTrue
7
8List
9Customer Contacted First
10No Contact
11
Sheet1
Cell Formulas
RangeFormula
G2G2=COUNTIFS(A:A,"Jan",B:B,"Call",C:C,"<>OM",E:E,TRUE)
E2:E6E2=ISNA(MATCH(D2,List,0))
 
Upvote 0
How about:

Book1
ABCDEFGH
1JanCallOMLeft Message2Customer Contacted First
2JanCallCall ListCustomer Contacted FirstNo Contact
3JanCallFollow UpContacted
4JanCallOMNo Contact
5JanCallCall ListNo Contact
6JanCallCall ListContacted
sheet
Cell Formulas
RangeFormula
E1E1=SUMPRODUCT((A1:A6="Jan")*(B1:B6="Call")*(C1:C6<>"OM")*(--ISNA(MATCH(D1:D6,List))))
 
Upvote 0
Hi,

You need the following forula, which should be confirmed with Ctrl-Shift-Enter:
=SUM(COUNTIFS(A:A,"Jan",B:B,"Call",C:C,"<>OM",D:D,"<>"&A10:A11)-COUNTIFS(A:A,"Jan",B:B;"Call",C:C,"<>OM")
 
Upvote 0
How about:

Book1
ABCDEFGH
1JanCallOMLeft Message2Customer Contacted First
2JanCallCall ListCustomer Contacted FirstNo Contact
3JanCallFollow UpContacted
4JanCallOMNo Contact
5JanCallCall ListNo Contact
6JanCallCall ListContacted
sheet
Cell Formulas
RangeFormula
E1E1=SUMPRODUCT((A1:A6="Jan")*(B1:B6="Call")*(C1:C6<>"OM")*(--ISNA(MATCH(D1:D6,List))))
It seems to be partially working. It doesn't seem to be referencing the list properly? There was an entry I put on the list earlier to test it, but I have removed it since. It is still removing those results, even though it is not on the list anymore. I added a new phrase to test and it isn't removing it.
 
Upvote 0
It seems to be partially working. It doesn't seem to be referencing the list properly? There was an entry I put on the list earlier to test it, but I have removed it since. It is still removing those results, even though it is not on the list anymore. I added a new phrase to test and it isn't removing it.

Sorry, I forgot a 0

=SUMPRODUCT((A1:A6="Jan")*(B1:B6="Call")*(C1:C6<>"OM")*(--ISNA(MATCH(D1:D6,List,0))))
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,414
Messages
6,119,375
Members
448,888
Latest member
Arle8907

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