Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 3
Default Help with calculating time and a half - I've got straight time and double time.

Hello,
I am having a little, okay, a lot, of trouble figuring out how to calculate time ad a half when it comes to wages.

Straight time is up to 8 hours
Time and a half between 8 and 12 hours
Double time - any hours after 12

Cell G2 is the issue. It ends up showing me all hours after 8, but what I really want is hours between 8 and 12.

B2 - In
C2 - out
D2 - In
E2 - Out
F2 - Regular time =IF((((C2-B2)+(E2-D2))*24)8,8,((C2-B2)+(E2-D2))*24)
G2 - Time and a half = =IF(((C2-B2)+(E2-D2))*248,((C2-B2)+(E2-D2))*24-8,0)
H2 - Double time =IF(((C2-B2)+(E2-D2))*2412,((C2-B2)+(E2-D2))*24-12,0)

Any help would be really appreciated. I hope it doesn't sound too confusing.

Thank-you
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 829
Default Help with calculating time and a half - I've got straight time and double time.

"Paxton31" wrote:
Straight time is up to 8 hours
Time and a half between 8 and 12 hours
Double time - any hours after 12

[....]
B2 - In
C2 - out
D2 - In
E2 - Out
F2 - Regular time
G2 - Time and a half
H2 - Double time


F2: =MIN(8,(C2-B2+E2-D2)*24)
G2: =MIN(4,(C2-B2+E2-D2)*24 - F2)
H2: =(C2-B2+E2-D2)*24 - F2 - G2

Note: I assume that B2, C2, D2 and E2 have date and time, or midnight does
occur between B2 and C2 or between D2 and E2. Right?

  #3   Report Post  
Junior Member
 
Posts: 3
Default

Yes, you assume correctly. :) That's Time in, Time out. Thanks for clarifying.


Note: I assume that B2, C2, D2 and E2 have date and time, or midnight does
occur between B2 and C2 or between D2 and E2. Right?[/quote]
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 829
Default Help with calculating time and a half - I've got straight time and double time.

Errata.... I wrote:
"Paxton31" wrote:
F2: =MIN(8,(C2-B2+E2-D2)*24)
G2: =MIN(4,(C2-B2+E2-D2)*24 - F2)
H2: =(C2-B2+E2-D2)*24 - F2 - G2

Note: I assume that B2, C2, D2 and E2 have date and time, or midnight
does occur between B2 and C2 or between D2 and E2. Right?


I meant to write: "or midnight does __not__ occur between" the time-in and
time-out times.

The point is: if the cells contain only time and the shift spans midnight,
the calculations will not be correct. But it is consistent with your
original calculations.

  #5   Report Post  
Junior Member
 
Posts: 3
Default

Quote:
Originally Posted by joeu2004[_2_] View Post
Errata.... I wrote:
"Paxton31" wrote:
F2: =MIN(8,(C2-B2+E2-D2)*24)
G2: =MIN(4,(C2-B2+E2-D2)*24 - F2)
H2: =(C2-B2+E2-D2)*24 - F2 - G2

Note: I assume that B2, C2, D2 and E2 have date and time, or midnight
does occur between B2 and C2 or between D2 and E2. Right?


I meant to write: "or midnight does __not__ occur between" the time-in and
time-out times.

The point is: if the cells contain only time and the shift spans midnight,
the calculations will not be correct. But it is consistent with your
original calculations.
Thank-you, so, so much. Brilliant! It works perfectly. :)
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
straight time, time and a half, and double time Jeremy Excel Discussion (Misc queries) 3 September 23rd 08 09:03 PM
Calculating Regular time, overtime and double time Brian Smith Excel Worksheet Functions 5 November 9th 07 10:32 PM
calculating double time on a workorder E-QUIP Excel Worksheet Functions 4 January 11th 07 10:28 PM
calculating timesheet, time-in/time-out = total hours & minutes, . Steve Lindsay Excel Worksheet Functions 13 November 8th 06 03:45 PM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM


All times are GMT +1. The time now is 08:27 PM.

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

About Us

"It's about Microsoft Excel"