Count unless text is in a list

Steven975

New Member
Joined
Nov 14, 2019
Messages
20
In this scenario I am trying to track how many calls a staff member made in Jan. The catch is there are some calls that are not eligable for tracking. The ineligable call statuses are in a list. Is there a way to do this?

I'm not great with excel, any help is appreciated!

Count if the 'month' is "Jan", and the 'Type' is "call", unless the 'status' is in the list below.
In the chart below, Jan should be 2, Feb 0, Mar 1
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Type[/TD]
[TD]Status[/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD]Call[/TD]
[TD]Left message[/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD]Call[/TD]
[TD]Do not call[/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD]Call[/TD]
[TD]Contacted[/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD]Other[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mar[/TD]
[TD]Call[/TD]
[TD]Left message[/TD]
[/TR]
[TR]
[TD]Mar[/TD]
[TD]Call[/TD]
[TD]Client came into branch[/TD]
[/TR]
</tbody>[/TABLE]











IneligableCalls
Do not call
Client came into branch
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Welcome to Mr Excel :)

Looking at your example, here are 2 ways of doing what you need. I've assumed that the data is in columns A:C, for testing I had the list of exclusions in G2:G4

=SUMPRODUCT(($A$2:$A$7="Jan")*($B$2:$B$7="Call")*ISNA(MATCH($C$2:$C$7,$G$2:$G$4,0)))

Or, an array formula confirmed by pressing Ctrl Shift Enter.

=COUNTIFS($A$2:$A$7,"Jan",$B$2:$B$7,"Call")-SUM(COUNTIFS($A$2:$A$7,"Jan",$B$2:$B$7,"Call",$C$2:$C$7,TRANSPOSE($G$2:$G$4)))

I believe that the second formula should be quicker to recalculate if you have a lot of data in your real sheet, but have not tested that theory.
 
Upvote 0
Welcome to the Board.

Try:


Book1
ABCDEFG
1MonthTypeStatusIneligible CallsEligible count
2JanCallLeft messageDo not call2
3JanCallDo not callClient came into branch
4JanCallContacted
5FebOther
6MarCallLeft message
7MarCallClient came into branch
Sheet8
Cell Formulas
RangeFormula
G2=COUNTIFS(A:A,"Jan",B:B,"call")-SUMPRODUCT(COUNTIFS(A:A,"Jan",B:B,"call",C:C,E2:E3))
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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