I am stumped and need some help from you guys.
I have a list of Punch Times (Sheet2) with their respective Departments:
I'm trying to figure out a way to get the data summed/consolidated into this format (Sheet1):
The solution for C5 would sum the total number of hours worked between 12 AM and 1 AM (using Punch Times on Sheet2 Col G & I) on Sundays (Sheet2 Col K) for Department 300 (Sheet2 Column R) stated in Sheet1 B2.
Note: Punch Out Time cannot go past 12 AM. If they work past 12 AM a new record will start underneath with 12 AM as the Punch In Time.
I can write a formula to grab the total time for each individual record and time frame, but I don't want to add a bunch of columns to the dataset and rather sum all the records in one cell (Sheet1 C5).
Is there any way to do this with a single formula?
Thanks!
I12
or do you want to spread those 8 hours worked on the rangeI12:I19
? If it's the latter it becomes a bit more complicated. – Fernando J. Rivera