Another timesheet formual question.

bajra

New Member
Joined
Mar 31, 2011
Messages
11
I have a basic working knowledge of excel (using excel 2010). I'm trying to create a timesheet. It needs to have room for 2 breaks and a lunch. here's what i have
=(J4-C4)-(G4-F4)-(E4-D4)-(I4-H4)

My problem is with the 2 breaks (e4-d4 & i4-h4) i need it to calculate if the break is longer than 10 minutes, to just subtract anything in excess of ten minutes for each break. If this has already been covered, if someone could point me in the right direction, my search powers have escaped me the past couple days.
 
Actually you might be able to lose the Or part altogether, try altering the If to say if shift end ="" leave ""..... That way you shouldn't get anything showing till the shift end is in place.

On my phone and not near Excel right now, hope it helps
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Excel Workbook
KLMNOPQRSTU
25DayDateStartBreak OutBreak inLunch startlunch endBreak startBreak endFinnishTotal
26Friday01/04/201108:0009:0009:1012:0013:0015:0015:1017:0008:00
27
2800:10
Sheet2


A normal day, standard 10 min breaks

With just the start time, no #####signs
Excel Workbook
KLMNOPQRSTU
25DayDateStartBreak OutBreak inLunch startlunch endBreak startBreak endFinnishTotal
26Friday01/04/201108:00 
Sheet2


Still no ##### signs

Excel Workbook
KLMNOPQRSTU
25DayDateStartBreak OutBreak inLunch startlunch endBreak startBreak endFinnishTotal
26Friday01/04/201108:0009:0009:1512:0013:0015:0015:22 
Sheet2


A complete day with an extra long couple of breaks, looks like it works as you want now

Excel Workbook
KLMNOPQRSTU
25DayDateStartBreak OutBreak inLunch startlunch endBreak startBreak endFinnishTotal
26Friday01/04/201108:0009:0009:1512:0013:0015:0015:2217:0007:43
Sheet2


I've put the 00:10 min break in O28 you can hide it wherever you like
 
Upvote 0
Excelsior!!! :) That's done the trick. now reporting time beatifully no ####. that and switching my date calculations of 1904. now my OT shows negative times so i know when i'm under! i'm all set now. thanks for you all your help. It's like magic!
 
Upvote 0

Forum statistics

Threads
1,224,531
Messages
6,179,384
Members
452,908
Latest member
MTDelphis

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