Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Time formulas in Excel

aCan anyone help please?

I am trying to put together a spreadsheet that will keep track of my hours
worked in a month, on different days. I have 2 rates at work. On day shift
rate, and a night shift rate. sometimes I work 09:00 till 18:00 at rate one,
and sometimes 22:00 till 06:00 at rate 2. The days vary, and I can get it to
work my day shift, but not my night shift. The calculation cell needs to be
able to calculate the difference in both shifts. Thanks for the help :)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Time formulas in Excel


Say start time is in A1 and End time in B1 then enter the below formula
into C2 and format as [h]:mm

=IF(A1B1,B1+1-A1,B1-A1)

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=567218

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Time formulas in Excel


Izzy Wrote:
aCan anyone help please?

I am trying to put together a spreadsheet that will keep track of my
hours
worked in a month, on different days. I have 2 rates at work. On day
shift
rate, and a night shift rate. sometimes I work 09:00 till 18:00 at
rate one,
and sometimes 22:00 till 06:00 at rate 2. The days vary, and I can get
it to
work my day shift, but not my night shift. The calculation cell needs
to be
able to calculate the difference in both shifts. Thanks for the help
:)

Hi Izzy,

If your day rate was say, £15.25
and your night rate was £20.25

you could try this

=IF(A1B1,B1+1-A1,B1-A1)*24*15.25
=IF(A2B2,B2+1-A2,B2-A2)*24*20.25

Then format C1 to currency

oldchippy :)


--
oldchippy
------------------------------------------------------------------------
oldchippy's Profile: http://www.excelforum.com/member.php...o&userid=19907
View this thread: http://www.excelforum.com/showthread...hreadid=567218

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Time formulas in Excel


To calculate time difference in hours either

=B1-A1+(A1B1)

or

=MOD(B1-A1,1)

if you want the hours in decimal format multiply by 24, e.g.

=MOD(B1-A1,1)*24


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=567218

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Time formulas in Excel

Thanks for that guys. Would you know the following too......

We have 2 pay rates. 06:00 to 22:00 is rate 1 and 22:00 to 06:00 is rate 2.

I can work out the rates if I work within rate 1 or rate 2, but if I work
03:00 to 15:00 or 20:00 to 04:00 crossing over between the rates, I get hung
up. I need to be able to work out my days pay for all my shifts including the
cross overs.

Thanks :)

"Izzy" wrote:

aCan anyone help please?

I am trying to put together a spreadsheet that will keep track of my hours
worked in a month, on different days. I have 2 rates at work. On day shift
rate, and a night shift rate. sometimes I work 09:00 till 18:00 at rate one,
and sometimes 22:00 till 06:00 at rate 2. The days vary, and I can get it to
work my day shift, but not my night shift. The calculation cell needs to be
able to calculate the difference in both shifts. Thanks for the help :)



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Time formulas in Excel


Not particularly straightforward but if your shift start time is in A2
and end time in B2, in time format then this formula in C2 will give
you rate 2 hours

=IF(MOD(A2+1/12,1)<1/3,MIN(1/3,MOD(B2+1/12,1))-MOD(A2+1/12,1),IF(MOD(B2+1/12,1)<A2,MIN(MOD(B2+1/12,1),1/3),0))

format as h:mm

this format in D2 will then give you rate 1 hours

=MOD(B2-A2,1)-C2

then to calculate total pay for shift

=(C2*rate2+D2*rate1)*24


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=567218

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Excel file with hyperlinks takes a long time to open over the network Didier P Links and Linking in Excel 3 July 4th 06 04:39 PM
Please help with Statistics Formulas in Excel Fonz Excel Discussion (Misc queries) 10 April 9th 06 03:22 PM
Accumulate weekly time to total time in Excel. delve Excel Discussion (Misc queries) 0 May 4th 05 08:14 PM
Excel Error when copying formulas Joe Gieder Excel Worksheet Functions 2 March 18th 05 05:01 PM


All times are GMT +1. The time now is 09:17 AM.

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"