Multiple Matches

healie2204

New Member
Joined
Jan 9, 2020
Messages
7
Office Version
  1. 2019
Platform
  1. Windows
Hi,
After previously having a huge amount of help via this forum previously I’m hoping one of you excel gods wouldn’t mind looking at another thing that’s got me stumped.

So I’m trying to identify where a telephone call has been made by an agent during a time period they weren’t supposed to be active. This is for a period of 3 months and the data I have is two tables, one holding the names of the agents and the date each call was made. The second the names of the agents and a start and end date of an ‘off-task’ period.

The Data tables are huge (200,000 rows of calls and 1,800 rows of off-task periods).

Below are examples of the data tables I’m working with, in Column D of the second image I need a count of how many calls (Column B on the first image) fall between the start and end dates (Col B/C second image) for each agent.

I’m hoping this might be relatively straight forward for someone skilled in excel to figure out.
Thanks I’m advance,
H
FF20D63F-4A0E-4B02-A477-ED1C2F29E761.jpeg
51B47705-C1FF-4F37-8381-81B03717B41C.jpeg
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Assuming that the top image is of Sheet1, edit as necessary.

=COUNTIFS(Sheet1!$A:$A,$A2,Sheet1!$B:$B,">="&$B2,Sheet1!$B:$B,"<="&$C2)

Please remember to use xl2bb for posting samples, not screen captures.
 
Upvote 0
Assuming that the top image is of Sheet1, edit as necessary.

=COUNTIFS(Sheet1!$A:$A,$A2,Sheet1!$B:$B,">="&$B2,Sheet1!$B:$B,"<="&$C2)

Please remember to use xl2bb for posting samples, not screen captures.

Hi jasonb75, thanks for this. Apologies forthe lack of xl2bb, I’ve only currently got access to a mobile device so wasn’t sure if it was an option. Thanks again
 
Upvote 0
You're welcome :)

I can't say for certain as I only use excel on desktop, but I believe that mobile versions have limited functionality that would not allow for the use of the add in.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,190
Members
452,616
Latest member
intern444

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