countifs with multiple variables from multiple columns

HappierGnome

New Member
Joined
Nov 18, 2016
Messages
1
I'm in a computer work center with a daily report that shows the amount of work being done company wide each day. The return file is 14 columns that is 7000+ rows deep and I receive this file every day with new data. What I need is an individual count of the number of files from each work type completed by our 44 associates. There are other associates from other programs working the same work type that my associates work.


I have an if function that pulls out just our programs work types;


=IF(Data!G2="OUR-PROGRAM",Data!E2,"Other")


Then an array function to list unique values;


{=IFERROR(INDEX(list,MATCH(0,COUNTIF($G$1:G4,list),0)),"")}


Finally, I'm using a countif to find out how many times those unique values are counted;


=COUNTIF(Data!E:E,Report!G3)


I need to modify this last countif to also check if the associates listed under DATA!D:D matches one of our 44 associates listed under REPORT!A:A. I don't want to have to run a big long {"agent1","agent2","agent3"} string because then it has to be updated through the code with all new hires as opposed to just adding them to the bottom of the REPORT!A:A column. I'm trying to get it to be as easy to modify as possible so the people who use the report and don't know excel don't have to come to me for updates each time.


Please help!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Welcome to the forum.

Just put the list of agents in a column somewhere, say Agents!A1:A50, then put that range in the COUNTIFS like this:

=SUM(COUNTIFS(Data!E:E,Report!G3,Data!D:D,Agents!A1:A50))
and confirm with Control+Shift+Enter.

Empty cells in the range are acceptable, so you can leave room to add new agents.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,137
Messages
6,123,253
Members
449,093
Latest member
Vincent Khandagale

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