Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Is it possible to subtract two times and automatically have it subtract .5
hours for a lunch break if it is over 5 hours? I'd like to do this all in one cell. Any suggestions would be helpful! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=A1-B1-if(A1-B15/24,.5/24,0)
formated as time "mndpy" wrote: Is it possible to subtract two times and automatically have it subtract .5 hours for a lunch break if it is over 5 hours? I'd like to do this all in one cell. Any suggestions would be helpful! |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=(B2-A2)*24-((B2-A2)*245)*0.5
"mndpy" wrote: Is it possible to subtract two times and automatically have it subtract .5 hours for a lunch break if it is over 5 hours? I'd like to do this all in one cell. Any suggestions would be helpful! |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
That didn't seem to work. I have it set like this
G13 7:30 AM G14 10:00 PM G15 14.5 Do I need to have G15 formatted differently? It is general text now. Any other suggestions would be great! Thanks! "bj" wrote: =A1-B1-if(A1-B15/24,.5/24,0) formated as time "mndpy" wrote: Is it possible to subtract two times and automatically have it subtract .5 hours for a lunch break if it is over 5 hours? I'd like to do this all in one cell. Any suggestions would be helpful! |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
if you want it as a number and g13 and g14 are formated as time
in g15 =mod(g14-g13,1)*24-if(mod(g14-g13)*255,.5,0) this will allow you to go over midnight and still have the correct answer "mndpy" wrote: That didn't seem to work. I have it set like this G13 7:30 AM G14 10:00 PM G15 14.5 Do I need to have G15 formatted differently? It is general text now. Any other suggestions would be great! Thanks! "bj" wrote: =A1-B1-if(A1-B15/24,.5/24,0) formated as time "mndpy" wrote: Is it possible to subtract two times and automatically have it subtract .5 hours for a lunch break if it is over 5 hours? I'd like to do this all in one cell. Any suggestions would be helpful! |
#6
![]() |
|||
|
|||
![]()
I tried the suggested formula and it works fine!!! You might want to try again.
Quote:
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Time Calculation For A Timesheet To Include Lunch | Excel Worksheet Functions | |||
Deducting breaks from time measurements | Excel Worksheet Functions | |||
How can I do one-time printing without set page breaks? | Excel Discussion (Misc queries) | |||
Subtracting lunch breaks from different shift times | Excel Discussion (Misc queries) | |||
How can Excel do daily timesheet, -lunch time, & not use colon in. | Excel Worksheet Functions |