+ Reply to Thread
Results 1 to 18 of 18

Time & a half calulated on real time (not after x many hours worked)

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    during dnReoog
    MS-Off Ver
    Excel 2003
    Posts
    17

    Time & a half calulated on real time (not after x many hours worked)

    Hi,

    Can't quite find what I'm looking for.
    I 'm trying to calculate time and a half after a certain time of day not after x many hours worked (which seems to be everyone else's question)

    ie Standard time 7.30am-11.30pm, time and a half 11.30pm - 7.30am.

    Name Start End
    Simon 12/04/2012 12:00 12/04/2012 18:00
    David 12/04/2012 22:00 13/04/2012 03:00
    etc

    I've got the rates on a separate tab, so can just link to them as I need to but need a helping hand with the formula - any ideas? 'IF" and some kind of <>?
    Thanks all

    N
    Last edited by nickp84; 11-04-2012 at 08:17 AM.

  2. #2
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Time & a half calulated on real time (not after x many hours worked)

    Hi

    Can you post a sample worksheet and are the times quoted static or do they vary

    Chris
    Click my star if I helped Thanks

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Time & a half calulated on real time (not after x many hours worked)

    post an excel file without confidentional information.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    10-24-2012
    Location
    during dnReoog
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Time & a half calulated on real time (not after x many hours worked)

    Hi,

    Here is something I mocked up - Timesheet on one tab, various bands of pay on the next.

    Essentially fill in Total Due Column

    Cheers all. Thanks for your help

    dogberry - times would vary yes, could be anything from 1 to 10 hours (for arguments sake) actually they would be subject to a minimum call but I'm not worried about that at this stage..thanks


    N

    TimeSheetTest.xlsx
    Last edited by nickp84; 11-03-2012 at 11:27 AM.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Time & a half calulated on real time (not after x many hours worked)

    Maybe you can also add the desired result in the flile.

  6. #6
    Registered User
    Join Date
    10-24-2012
    Location
    during dnReoog
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Time & a half calulated on real time (not after x many hours worked)

    good idea - slightly rejigged here.

    NB - the notes section is just my working out to get the answer - not needed in final.

    cheers

    TimeSheetTest2.xlsx

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Time & a half calulated on real time (not after x many hours worked)

    Hi

    I would start with dates & times in their own columns. You are over complicating things as well, with overtime between 11:30 PM - 7:30 AM and regular time between 7:30 - 11:30 PM you will need a bunch of IF's, AND's OR's etc. Probably why your not getting much response to your post!

    Here's a link to working with Dates and Times

  8. #8
    Registered User
    Join Date
    10-24-2012
    Location
    during dnReoog
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Time & a half calulated on real time (not after x many hours worked)

    Quote Originally Posted by Kevin UK View Post
    Hi

    I would start with dates & times in their own columns. You are over complicating things as well, with overtime between 11:30 PM - 7:30 AM and regular time between 7:30 - 11:30 PM you will need a bunch of IF's, AND's OR's etc. Probably why your not getting much response to your post!

    Here's a link to working with Dates and Times
    HI,

    Thanks for replying Kevin.

    I can't change the time bands (annoyingly) that is just the deal at work. Do you think it is just a little too tricky to do what I want?

    Take your point about separate columns - however then you can't work out the possible bridge over two days, (ie Monday 22:00 - Tuesday 03:00 in separate columns returns a shift of -19 hrs).

    Unless anyone can think of a workaround,even if slightly convoluted, maybe I'm stuck.

    Any thoughts?

    Nick

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Time & a half calulated on real time (not after x many hours worked)

    I can do convoluted

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    10-24-2012
    Location
    during dnReoog
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Time & a half calulated on real time (not after x many hours worked)

    well fliberdigibbit! you got it it seems. though I don't really understand it... I'll have to look at the MAX and MOD functions.

    Thank you very much.

    N

  11. #11
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Time & a half calulated on real time (not after x many hours worked)

    You're welcome,

    As an afterthought, I didn't check the results with a start time before 23:30 and finish after 07:30, I think it should be ok though.

  12. #12
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Time & a half calulated on real time (not after x many hours worked)

    Impressive, but how about row 4 where the hours are 15.5!

    I got it! I was looking at what the OP had in E4 & F4
    Last edited by Kevin UK; 11-04-2012 at 09:16 AM.

  13. #13
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Time & a half calulated on real time (not after x many hours worked)

    @jason.b75,

    I was having a look at this problem last night, and decided the best course of action would be to sleep on it - I'm glad now that that's what I did! Good work.
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  14. #14
    Registered User
    Join Date
    10-24-2012
    Location
    during dnReoog
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Time & a half calulated on real time (not after x many hours worked)

    Hello -

    Bad news - something doesn't quite work. I thought i did at first then realised something wasn't quite right. See attached for illustration.


    TimeSheetTest2.xlsx

    Seems to be fine if they are working eg 06:30 - 07:30 but if they work 06:00 - 07:00 it doesn't. (No one would every work just a single hour shift of course but for ease)

    Result even stranger if they work 01:00 - 02:00. Seems to be continuing to multiply....

    Also there is a rogue penny that appears every now and again.

    Or maybe it's just me and I've done something weird when I copied the formula...

    Thanks for your help thus far!

  15. #15
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Time & a half calulated on real time (not after x many hours worked)

    I see the problem, just having a little trouble trying to figure out a solution, think I need to upgrade my thinking cap

    The rogue penny is probably just a rounding issue, part pennies resulting from partial hours rounding up when you're expecting them to round down.

  16. #16
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Time & a half calulated on real time (not after x many hours worked)

    So far I haven't found anything to cause this version to fail, it's ugly, but given what you're working with, it's the best I can come up with.

    As Kevin advised in an earlier post, it's much easier to work with the date and time split into separate columns, I've included both versions in the sheet for you to compare.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    10-24-2012
    Location
    during dnReoog
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Time & a half calulated on real time (not after x many hours worked)

    Oh thanks - sorry I didn't reply earlier - I never got the 'someone has replied to your message' email so assumed the thread had gone quiet.

    Thanks all for your hard work, and jason for cracking it!

    Have a good day!

    Nick

  18. #18
    Registered User
    Join Date
    10-24-2012
    Location
    during dnReoog
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Time & a half calulated on real time (not after x many hours worked)

    Oh thanks - sorry I didn't reply earlier - I never got the 'someone has replied to your message' email so assumed the thread had gone quiet.

    Thanks all for your hard work, and jason for cracking it!

    Have a good day!

    Nick

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1