Timesheet - Time data issue

Jods70

New Member
Joined
Dec 20, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi guys.

First post but I've spent the last 6 hours trying to figure this one out. I work for a transport company & our drivers currently fill in their timesheets on printed paper, then take a photo of it & email it to me so I can process their pay. To say this is time-consuming is an understatement as I need to enter their times manually to then work out the number of hours over 80 hours as this needs to be entered seperately.

I'm trying to make life easier for them & myself by having the spreadsheet calculate all of this as the data is entered, my problem is they will be entering the data on either a tablet or mobile phone & having to enter the : "colon" for excel to register that they are times won't really work with my guys.

I'm currently using custom cell formatting of hhmm but it's not always working as the cells change to date/time format & throughs all the calculations out per my image.

Any & all help will be most appreciated. Thanks Jods :)
 

Attachments

  • Screenshot 2022-12-20 220306.png
    Screenshot 2022-12-20 220306.png
    18.8 KB · Views: 42

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Adjust the columns as necessary.
You can paste this post into a clean sheet and review the formulas. Select the cell below the f(x) in the heading and then move to your sheet and paste.
Probably K5 is the relevant formula. K3 and K4 are just initial examples of the concept.

Conversion.xlsm
ABCDEFGHIJKLMNO
2DayDateStartLunchLunchDinnerDinnerFinishBase
3MonDec-12061509301200200011.2588.0026,993.2527,001.25
40800093010001200130018309.0088.00
50800093010001200130018309.0088.00
2e
Cell Formulas
RangeFormula
O3O3=N3+M3
K3K3=(TEXT(D3,"00\:00")-TEXT(C3,"00\:00"))*24+(TEXT(H3,"00\:00")-TEXT(G3,"00\:00"))*24
K4K4=(TEXT(D4,"00\:00")-TEXT(C4,"00\:00"))*24+(TEXT(F4,"00\:00")-TEXT(E4,"00\:00"))*24+(TEXT(H4,"00\:00")-TEXT(G4,"00\:00"))*24
K5K5=(TEXT(D5,"00\:00")-TEXT(C5,"00\:00")+TEXT(F5,"00\:00")-TEXT(E5,"00\:00")+TEXT(H5,"00\:00")-TEXT(G5,"00\:00"))*24
M3:M5M3=MIN(L3,K3)
 
Upvote 0
Adjust the columns as necessary.
You can paste this post into a clean sheet and review the formulas. Select the cell below the f(x) in the heading and then move to your sheet and paste.
Probably K5 is the relevant formula. K3 and K4 are just initial examples of the concept.

Conversion.xlsm
ABCDEFGHIJKLMNO
2DayDateStartLunchLunchDinnerDinnerFinishBase
3MonDec-12061509301200200011.2588.0026,993.2527,001.25
40800093010001200130018309.0088.00
50800093010001200130018309.0088.00
2e
Cell Formulas
RangeFormula
O3O3=N3+M3
K3K3=(TEXT(D3,"00\:00")-TEXT(C3,"00\:00"))*24+(TEXT(H3,"00\:00")-TEXT(G3,"00\:00"))*24
K4K4=(TEXT(D4,"00\:00")-TEXT(C4,"00\:00"))*24+(TEXT(F4,"00\:00")-TEXT(E4,"00\:00"))*24+(TEXT(H4,"00\:00")-TEXT(G4,"00\:00"))*24
K5K5=(TEXT(D5,"00\:00")-TEXT(C5,"00\:00")+TEXT(F5,"00\:00")-TEXT(E5,"00\:00")+TEXT(H5,"00\:00")-TEXT(G5,"00\:00"))*24
M3:M5M3=MIN(L3,K3)
Hi Dave.

Thank you for this but it isn't working for me :unsure: I've also been informed today that the drivers require a third break period. Here's the first few rows of what I'm trying to fix, that might make it easier to figure out what I've done wrong. Thanks again for the assistance :)

Fortnightly Time Sheets - MTAHRFORM3.0.xlsm
ABCDEFGHIJKLMNOPQRSTU
3DayDateStartLunchLunch DinnerDinner SupperSupperFinishBase 8Over 8TotalJob Description: Ref #'s Con-Notes
4TimeStartFinishStartFinishStartFinishTimeHrs/DayHrs/DayHrs
5Mon12-Dec800900000023922393
6Tue13-Dec000
7Wed14-Dec000
8Thu15-Dec000
Timesheet
Cell Formulas
RangeFormula
K5K5=(TEXT(D5,"00\:00")-TEXT(C5,"00\:00")+TEXT(F5,"00\:00")-TEXT(E5,"00\:00")+TEXT(H5,"00\:00")-TEXT(G5,"00\:00"))*24
L5:L8L5=IF(((D5-C5)+(F5-E5)+(H5-G5))*24>8,((D5-C5)+(F5-E5)+(H5-G5))*24-8,0)
M5:M8M5=L5+K5
K6:K8K6=(MOD(G6-B6,1)-MOD(D6-C6,1)-MOD(F6-E6,1))*24
B5B5=N2-13
B6B6=N2-12
B7B7=N2-11
B8B8=N2-10
 
Upvote 0
Conversion.xlsm
ABCDEFGHIJKLMN
1info
2
3DateStartLunchLunch DinnerDinner SupperSupperFinishTotalBase 8Over 8Total
4TimeStartFinishStartFinishStartFinishTimeHoursHrs/DayHrs/DayHrs
5Mon 12-Dec-228009001101
6Tue 13-Dec-22800900930125013201800183020009819
2ee
Cell Formulas
RangeFormula
K5:K6K5=(TEXT(D5,"00\:00")-TEXT(C5,"00\:00")+TEXT(F5,"00\:00")-TEXT(E5,"00\:00")+TEXT(H5,"00\:00")-TEXT(G5,"00\:00"))*24
L5:L6L5=MIN(K5,8)
M5:M6M5=IF(K5>8,K5-8,0)
N5:N6N5=L5+M5
 
Upvote 0
Solution
Conversion.xlsm
ABCDEFGHIJKLMN
1info
2
3DateStartLunchLunch DinnerDinner SupperSupperFinishTotalBase 8Over 8Total
4TimeStartFinishStartFinishStartFinishTimeHoursHrs/DayHrs/DayHrs
5Mon 12-Dec-228009001101
6Tue 13-Dec-22800900930125013201800183020009819
2ee
Cell Formulas
RangeFormula
K5:K6K5=(TEXT(D5,"00\:00")-TEXT(C5,"00\:00")+TEXT(F5,"00\:00")-TEXT(E5,"00\:00")+TEXT(H5,"00\:00")-TEXT(G5,"00\:00"))*24
L5:L6L5=MIN(K5,8)
M5:M6M5=IF(K5>8,K5-8,0)
N5:N6N5=L5+M5
Thank you SO MUCH Dave that worked a treat. Have a wonderful Xmas & New Year
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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