Deducting breaks in total time cell

AndyB63UK

New Member
Joined
Oct 5, 2011
Messages
47
A1 is start time, B1 is finish time, C1 is B1 - A1 to give total time worked that day.
Is there an easy way to auto deduct breaks in C1 as follows?
less than or equal to 9 hours deduct 30 mins break
More than 9 hours deduct 1 hour break
All cells to be 24 hour format without : entered as 0900
Thanks in advance
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
I use this: =IF(B1="","",(MOD(B1-A1,1))*24) which is useful if a shift goes past midnight and into a new day. But it does require times to be entered with a colon (09:00 etc). It also needs A & B columns formatted as time, and C to be formatted as number.

Perhaps a combination of this and kvsrinivasamurthy's suggestion would be ideal.
 
Upvote 0
Both great ideas but with =IF(B1-A1<=9/24,B1-A1-TIMEVALUE("0:30:00"),B1-A1-TIMEVALUE("1:00:00")) I get ######### in C1 when A1 and B1 are empty.

And =IF(B1="","",(MOD(B1-A1,1))*24) doesn't work, sorry.

I'm on Office 365 Personal on a Windows 10 Laptop.

Maybe I should be more precise;

A B C D E F G H
1 Mon Tue Wed Thu Fri Sat Totals
2 Start time
3 Finish time
4 Total less Break

Hope that makes it clearer, don't now how to paste a screen shot.
 
Upvote 0
Sorted with a combination of both.

=IF(B1="","",IF(B1-A1<=9/24,B1-A1-TIMEVALUE("0:30:00"),B1-A10-TIMEVALUE("1:00:00")))

Many thanks guys
 
Upvote 0
So, the start time is in A2, and finish time in A3 for Monday?
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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