Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default over time in a sheet

i need to put overtime in a work sheet
but here is what i need to do if you work Between 12:00 am to 8:00 am this
is double time now how do i calculate these hours as double time

So what i'm saying is if i come to work a 8:00pm and work unitl 4:00 am
i will invoice the company 4 stright hours and 4 double time hours

i want the program to auto calculate this .
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default over time in a sheet

Suppose you have data in ColA and ColB as below...(Format colC and D to time
format)


6/21/09 6:00 PM 6/22/09 8:00 AM 6:00 8:00
6/21/09 8:00 PM 6/21/09 9:00 PM 1:00 0:00

C1(normal hours)
=IF(DAY(A1)=DAY(B1),B1-A1,1-MOD(A1,1))

D1(double hours)
=IF(DAY(A1)=DAY(B1),0,MIN(1/3,MOD(B1,1)))

If this post helps click Yes
---------------
Jacob Skaria


"chilson" wrote:

i need to put overtime in a work sheet
but here is what i need to do if you work Between 12:00 am to 8:00 am this
is double time now how do i calculate these hours as double time

So what i'm saying is if i come to work a 8:00pm and work unitl 4:00 am
i will invoice the company 4 stright hours and 4 double time hours

i want the program to auto calculate this .

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default over time in a sheet

You didn't post the layout for your worksheet, so I'll assume you have a
total hours column (say, Column T for this example). Assuming your data
starts in Row 2, use =MIN(T2,4) for your normal hours and =MAX(T2-4,0) for
your overtime hours, so I guess the formula you want would be this...

=MIN(T2,4)+2*MAX(T2-4,0)

--
Rick (MVP - Excel)


"chilson" wrote in message
...
i need to put overtime in a work sheet
but here is what i need to do if you work Between 12:00 am to 8:00 am
this
is double time now how do i calculate these hours as double time

So what i'm saying is if i come to work a 8:00pm and work unitl 4:00 am
i will invoice the company 4 stright hours and 4 double time hours

i want the program to auto calculate this .


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
Annual Wages Sheet to pick up info from Time Sheet stallence Excel Worksheet Functions 2 May 5th 08 11:02 PM
Detailed Time Sheet (overtime, comp time, vacation used) Robert D. Sandersfeld New Users to Excel 2 May 22nd 06 10:14 PM
how do I set up time sheet and items bought expense sheet gianni Excel Discussion (Misc queries) 1 December 24th 05 11:10 AM
How do I time Hours & mins in excel - Time sheet Helen Excel Discussion (Misc queries) 5 September 17th 05 11:42 AM
I need a time sheet template that verifies time entered against sy Bob Powell Excel Discussion (Misc queries) 1 April 19th 05 03:11 PM


All times are GMT +1. The time now is 02:12 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"