+ Reply to Thread
Results 1 to 4 of 4

Pretty simple time problem

  1. #1
    Registered User
    Join Date
    10-25-2011
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Pretty simple time problem

    Hey guys,

    First time poster and an idiot at excel. I've done a bit of programming in python/java but that just seems to confuse me when it comes to the syntax of excel functions.

    Right, what i'm planning to do is create a spreadsheet that compares the clock in time for an employee against their rostered clock in time and flags any that are out by greater than 7 minutes, either way. I've got this working fine (Refer to conditional formatting in colums O and P).

    The bit im struggling with as as follows:

    I want column Q to display the correct amount of hours worked ONLY if the automatic clock in time is within 7 minutes either side of the rostered clock in time.

    By automatic clock in time i mean column E 'Roundstart' and by rostered clock in time i mean column M 'Start'.

    As you can see in Q7, it works if the automatic clock in time and rostered clock in time are EXACTLY the same but i need the 7 minute leeway each way (early or late)..

    Any tips would be greatly appreciated...

    Thanks,

    Drummerkid
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,849

    Re: Pretty simple time problem

    Use this formula in Q3 and copy down:

    =IF(AND(ABS(M3-C3)<7/(24*60),ABS(N3-D3)<7/(24*60)),I3,"")
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-25-2011
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Pretty simple time problem

    Hey,

    Thanks alot, works a charm!

    If someone can mark this as solved, that'd be great - it might be of some use for people doing the same sort of thing with employee timesheets.

    Cheers,

    Drummerkid

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Pretty simple time problem

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

+ 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