Data Extract With Multiple OR Criteria

Status
Not open for further replies.

NickFru

New Member
Joined
Mar 10, 2022
Messages
48
Office Version
  1. 2019
Hi, I have two lists and want to have a formula that I can use as the COUNT of the records of two employee lists to see what names are in both then to use this count for data to extract relevant records and also between two date ranges. The formula for count I am using is =SUMPRODUCT(--ISNUMBER(MATCH(B2:B28,E2,E11,0)/COUNTIFS(A2:A28,">="&I2 (Start Date), A2:A28,"<="&J2 (End Date) but don't think this correct.

I finally need to enter a formula in the first cell under date of the empty grid, which I think maybe similar to IF(ROWS(E$17:E17)>COUNT,"",INDEX(Date Range), AGGREGATE(15,6,(ROW(Date Range)-ROW(A2)+1)/ISNUMBER(MATCH(Employee First Range (Column B), Employee Second Range (Column E),0)*(Date Range >=Start Date)*(Date Range<=End Date),ROWS(E$17:E17) but not sure on this. The info is below;

Employee List 1

DateEmployeeContacts Made
01/07/2024​
Nick
75​
08/07/2024​
Dave
80​
15/07/2024​
Helen
85​
22/07/2024​
Paul
90​
29/07/2024​
Tom
95​
05/08/2024​
James
100​
12/08/2024​
Alex
105​
19/08/2024​
Carolyn
110​
26/08/2024​
Nick
115​
02/09/2024​
Alex
120​
09/09/2024​
James
125​
16/09/2024​
Helen
130​
23/09/2024​
Nick
135​
30/09/2024​
James
140​

Employee List 2

Employee
Gary
James
Terry
Fiona
Jason
Paula
Nick
Tim
Scott
Mandy

CountStart DateEnd Date
6​
01/07/2024​
09/09/2024​


DateEmployeeContacts Made
IF(ROWS FormulaCopied OverCopied Over

Many Thanks

Nick
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
@NickFru

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread.
 
Upvote 0
Status
Not open for further replies.

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