Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default 7 day workweek timesheet - excluding lunch

I thought I alreayd posted this but don't see it anywhere, so forgive me if
this is duplicated somewhere.
I am looking for a formula to calculate total hours worked, to exclude
lunch, based on the assumption of a 30 min lunch if working 6 hours or more


a b c d e f g h i j k l m n o p
name total start end start end start end start end start end start end start end
Kathy 36:00 15:00 19:00 5:00 13:30 5:00 13:30 5:00 13:30 5:00 13:30
Bob 28:00 15:00 19:00 5:00 13:30 5:00 13:30 5:00 13:30
Thanks in advance for your help

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default 7 day workweek timesheet - excluding lunch

Yeah S, I have a complicated payroll sheet that uses the same premise. Have
an IF function evaluate the difference between the end time and start time to
see if it is less than or equal to 6, if it is not then use the difference
alone. If it is then have the formula deduct the half hour. It might look
like this:

=sum(if(b3-b2<=6,(c2-b2)-00:30,c2-b2),if(e2-d2<=6,(e2-d2)-00:30,e2-d2),if.....)

The IF function will be repeated 7 times for each day of the week, beacause
each day of the week will have to be evaluated separately. The SUM function
will add up all the results of the seven IF functions. I couldn't make sense
of the way you pasted the example chart into the question so you may have to
adjust the cell numbers.

Good luck

fryguy

"S in AZ" wrote:

I thought I alreayd posted this but don't see it anywhere, so forgive me if
this is duplicated somewhere.
I am looking for a formula to calculate total hours worked, to exclude
lunch, based on the assumption of a 30 min lunch if working 6 hours or more


a b c d e f g h i j k l m n o p
name total start end start end start end start end start end start end start end
Kathy 36:00 15:00 19:00 5:00 13:30 5:00 13:30 5:00 13:30 5:00 13:30
Bob 28:00 15:00 19:00 5:00 13:30 5:00 13:30 5:00 13:30
Thanks in advance for your help

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default 7 day workweek timesheet - excluding lunch

Thanks fryguy - I am having a hard time duplicating the formula you gave.
Here is what I have set up (sorry the pasting didn't work)

Column A - name
Column B - start time (mon)
Column C - end time (mon)
Column D - start time (tue)
Column E - end time (tue)
Column F - start time (wed)
Column G - end time (wed)
Column H - start time (thu)
Column I - end time (thu)
Column J - start time (fri)
Column K - end time (fri)
Column L - start time (sat)
Column M - end time (sat)
Column N - start time (sun)
Column O - end time (sun)
Column P - total hours worked

Thanks again for your assistance


"fryguy" wrote:

Yeah S, I have a complicated payroll sheet that uses the same premise. Have
an IF function evaluate the difference between the end time and start time to
see if it is less than or equal to 6, if it is not then use the difference
alone. If it is then have the formula deduct the half hour. It might look
like this:

=sum(if(b3-b2<=6,(c2-b2)-00:30,c2-b2),if(e2-d2<=6,(e2-d2)-00:30,e2-d2),if.....)

The IF function will be repeated 7 times for each day of the week, beacause
each day of the week will have to be evaluated separately. The SUM function
will add up all the results of the seven IF functions. I couldn't make sense
of the way you pasted the example chart into the question so you may have to
adjust the cell numbers.

Good luck

fryguy

"S in AZ" wrote:

I thought I alreayd posted this but don't see it anywhere, so forgive me if
this is duplicated somewhere.
I am looking for a formula to calculate total hours worked, to exclude
lunch, based on the assumption of a 30 min lunch if working 6 hours or more


a b c d e f g h i j k l m n o p
name total start end start end start end start end start end start end start end
Kathy 36:00 15:00 19:00 5:00 13:30 5:00 13:30 5:00 13:30 5:00 13:30
Bob 28:00 15:00 19:00 5:00 13:30 5:00 13:30 5:00 13:30
Thanks in advance for your help

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default 7 day workweek timesheet - excluding lunch

hey sorry about the delay. try this:

=SUM(IF((C3-B3)=TIME(6,0,0),C3-B3-TIME(0,30,0),C3-B3),IF((E3-D3)=TIME(6,0,0),E3-D3-TIME(0,30,0),E3-D3),IF((G3-F3)=TIME(6,0,0),G3-F3-TIME(0,30,0),G3-F3),IF((I3-H3)=TIME(6,0,0),I3-H3-TIME(0,30,0),I3-H3),IF((K3-J3)=TIME(6,0,0),K3-J3-TIME(0,30,0),K3-J3),IF((M3-L3)=TIME(6,0,0),M3-L3-TIME(0,30,0),M3-L3),IF((O3-N3)=TIME(6,0,0),O3-N3-TIME(0,30,0),O3-N3))

Make sure you format the totals column to "time - 37:30:55" otherwise when
the total hits 25 hours total it will show 01:00.

good luck

fryguy.
"S in AZ" wrote:

Thanks fryguy - I am having a hard time duplicating the formula you gave.
Here is what I have set up (sorry the pasting didn't work)

Column A - name
Column B - start time (mon)
Column C - end time (mon)
Column D - start time (tue)
Column E - end time (tue)
Column F - start time (wed)
Column G - end time (wed)
Column H - start time (thu)
Column I - end time (thu)
Column J - start time (fri)
Column K - end time (fri)
Column L - start time (sat)
Column M - end time (sat)
Column N - start time (sun)
Column O - end time (sun)
Column P - total hours worked

Thanks again for your assistance


"fryguy" wrote:

Yeah S, I have a complicated payroll sheet that uses the same premise. Have
an IF function evaluate the difference between the end time and start time to
see if it is less than or equal to 6, if it is not then use the difference
alone. If it is then have the formula deduct the half hour. It might look
like this:

=sum(if(b3-b2<=6,(c2-b2)-00:30,c2-b2),if(e2-d2<=6,(e2-d2)-00:30,e2-d2),if.....)

The IF function will be repeated 7 times for each day of the week, beacause
each day of the week will have to be evaluated separately. The SUM function
will add up all the results of the seven IF functions. I couldn't make sense
of the way you pasted the example chart into the question so you may have to
adjust the cell numbers.

Good luck

fryguy

"S in AZ" wrote:

I thought I alreayd posted this but don't see it anywhere, so forgive me if
this is duplicated somewhere.
I am looking for a formula to calculate total hours worked, to exclude
lunch, based on the assumption of a 30 min lunch if working 6 hours or more


a b c d e f g h i j k l m n o p
name total start end start end start end start end start end start end start end
Kathy 36:00 15:00 19:00 5:00 13:30 5:00 13:30 5:00 13:30 5:00 13:30
Bob 28:00 15:00 19:00 5:00 13:30 5:00 13:30 5:00 13:30
Thanks in advance for your help

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to substract for lunch on =MOD function jcc31 Excel Worksheet Functions 4 March 9th 06 07:30 PM
Time Calculation For A Timesheet To Include Lunch poddys Excel Worksheet Functions 2 March 3rd 06 08:05 PM
How can Excel do daily timesheet, -lunch time, & not use colon in. Jan Excel Worksheet Functions 2 March 8th 05 10:05 PM
overtime on timesheet kimmyrt Excel Worksheet Functions 4 January 26th 05 07:33 PM
timesheet with running total of overtime kimmyrt Excel Worksheet Functions 2 January 26th 05 06:15 PM


All times are GMT +1. The time now is 02:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"