Finding Time overlaps with Multiple Criteria

Mandalorian

New Member
Joined
Jan 12, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I complete a daily and weekly time sheets for each of my 30 employees.

the time is uploaded systemically through our ticketing software by each employee throughout their day.

I run the report daily and the time is then sorted by Start Time - smallest to largest, Date - Oldest to Newest and Last Name - A to Z

it puts the report chronologically in order by Last name and the dates they work and then the time should be all in order. Save Overlaps, when one ticket was open and another was actioned without the first one being in a hard stop condition.

I wish to single out these overlaps and highlight them and bring a 1 if True and 0 if False (no overlaps).

I use Sumproduct and can retrieve if using one persons time without looking for the name and multiple dates

=SUMPRODUCT(--($B$2:$B$10=B2),(C2>$C$2:$C$10)*(C2<$D$2:$D$10)+(D2>$C$2:$C$10)*(D2<$D$2:$D$10))

this works great for just one person

DateStart TimeEnd Timeoverlaps
1/1/20209:0013:000
1/1/202013:0013:451
1/1/202013:4016:002
1/1/202015:4518:001
1/1/202018:1519:000
1/2/20209:1510:001
1/2/20209:4513:001
1/2/202013:0015:000
1/2/202015:0016:000

as I stated, i need to add by Last name into the formula. would an nested IF statement work for this?

so i add to the formula

=SUMPRODUCT(--($A$2:$A$10=A2),($B$2:$B$10=B2),(C2>$C$2:$C$10)*(C2<$D$2:$D$10)+(D2>$C$2:$C$10)*(D2<$D$2:$D$10))

and i get False or 0 all the way down

Last NameDateStart TimeEnd Timeoverlaps
Bost1/1/20209:0013:000
Bost1/1/202013:0013:450
Bost1/1/202013:4016:000
Bost1/1/202015:4518:000
Bost1/1/202018:1519:000
Hill1/2/20209:1510:000
Hill1/2/20209:4513:000
Hill1/2/202013:0015:000
Hill1/2/202015:0016:000

can anyone help with this?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
I think there should be a -- in front of the B part, a la --($B$2:$B$10=B2)
 
Upvote 0

Forum statistics

Threads
1,214,386
Messages
6,119,212
Members
448,874
Latest member
b1step2far

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