+ Reply to Thread
Results 1 to 7 of 7

Adjusted Clock Times

  1. #1
    Banned User!
    Join Date
    09-26-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    607

    Adjusted Clock Times

    Hello,

    I'm having trouble coming up with formulas for adjusted times by rules in my 'Time Clock Log'.

    I added helper columns to reduce the formulas. What I'm looking for are in cells G5:J5 please.

    I really appreciate the help,
    Billy

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Adjusted Clock Times

    You have set up data validation on cell G5, so it will not allow a blank to be returned from the formula. If you remove the DV, you will be able to use this formula in G5:

    =IF(C5="","",MAX(C5,C$2))

    This can be copied across into H5:I5, and then down as required.

    Hope this helps.

    Pete

  3. #3
    Banned User!
    Join Date
    09-26-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    607

    Re: Adjusted Clock Times

    Thanks Pete but in J5 it has a different scenario to allow a few minutes after shift end please.

    For instance if their shift end is 4:30 and they clock out at 4:34 it needs to be 4:30 but if they clock out past 4:34 then it should be the clock out time
    Last edited by Billy Spivy; 03-16-2018 at 02:44 PM.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Adjusted Clock Times

    Try this in J5:

    =IF(F5="","",IF(F5-5/60/24>F$2,F5,F$2))

    Hope this helps.

    Pete

  5. #5
    Banned User!
    Join Date
    09-26-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    607

    Re: Adjusted Clock Times

    Thanks Pete that works fine. I have one last request please.

    I need to add up the paid times and put that in K5.

    I have this formula:

    =IF(H5-G5>=6/24,H5-G5-30/1440,IF(I5<>"",(H5-G5)+(J5-I5),(H5-G5)))

    It works fine with entries but gives me value errors when blank. The 6 hours is there so if an employee works at least 6 hours they must take a mandatory lunch of 30 minutes or they will be docked that amount.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Adjusted Clock Times

    Can you be certain that an employee will clock out for lunch and then back in again? i.e. might you have someone who clocks in at 8:30am (in G5) then clocks out at 4:40pm (in J5) with D5 and E5 (and thus H5 and I5) both left blank? If so, you need to use J5-G5 rather than H5-G5. Also, instead of subtracting 30 (which represents minutes, but would be taken by Excel to mean days) you should subtract 30/60/24.

    I think the rules you expressed in the sheet are a bit faulty - what happens if someone clocks out for lunch at 12:10pm? Your logic would set this to 12:30pm and thus give them an extra 20 minutes of working time.

    Hope this helps.

    Pete

  7. #7
    Banned User!
    Join Date
    09-26-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    607

    Re: Adjusted Clock Times

    Yes I agree my logic is wrong there. There are some days that they have to leave the day early and don't take a lunch. As long as it's less than 6 hours they should not be docked the 30 minutes but if 6 hours or longer they must take the lunch break or be docked the 30 minutes.

    Can you please revise ?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Clear Previous Days Clock Times
    By Billy Spivy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2018, 11:50 AM
  2. Replies: 5
    Last Post: 07-17-2017, 12:44 PM
  3. Replies: 2
    Last Post: 05-15-2014, 09:04 AM
  4. Alarm Clock multiple times
    By ballz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2011, 04:48 PM
  5. Time (clock) times a number
    By saadeet in forum Excel General
    Replies: 4
    Last Post: 04-02-2009, 11:26 AM
  6. total to date field adjusted multiple times
    By debrant in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-06-2009, 11:55 PM
  7. Replies: 1
    Last Post: 05-13-2005, 01:06 PM

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