Hi,
My data has 2 columns - StartTime and EndTime - generated when an employee completes a visit to a customer. I need to use this information to work out the Earliest and Latest Start and Finish Times for each employee each week.
I'm able to work out the Earliest Start Time using MIN and the Latest Finish Time using MAX, but the Latest Start and Earliest Finish are causing me problems. Below I've given a simplified example of some data:
Day StartTime(Min) EndTime(Max)
Monday 08:00:00 17:00:00
Tuesday 09:00:00 16:30:00
Wednesday 08:30:00 17:10:00
Thursday 08:10:00 16:50:00
Friday 09:10:00 17:30:00
Earliest 08:00:00 16:30:00
Latest 09:10:00 17:30:00
So the Earliest EndTime looks at the MAX finish time across each day and takes the MIN value of these to get 16:30:00. Similarly the Latest StartTime takes the MIN start time across each day and takes the MAX value to get 09:10:00.
Hopefully this makes sense. Can anyone help?
Thanks,
mjholland