+ Reply to Thread
Results 1 to 3 of 3

Time Sheet that Auto Calculates OT and Adjusts Hours to a Max Value

  1. #1
    Registered User
    Join Date
    07-22-2024
    Location
    Naples, Florida, USA
    MS-Off Ver
    Office Home and Business 2019
    Posts
    8

    Question Time Sheet that Auto Calculates OT and Adjusts Hours to a Max Value

    Any of the grayed out fields will have automatic values. White fields will be manually filled in.

    The problem is with B7 and C7. These will be gray once resolved.

    B7 needs to calculate for hours in B2:B6 with a max value of 40 if C7 has a value above 0 and without that max value if C7 is 0.

    C7 needs to calculate for hours in C2:C6 with a minimum value of 0. This also needs to read 0 when sick, vacation, or other is entered into D2:F6 (or D7:F7).

    I've been working on this one problem for days.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,234

    Re: Time Sheet that Auto Calculates OT and Adjusts Hours to a Max Value

    In B7:

    =IF(C7>0,MIN(40,SUM(B2:B6)),SUM(B2:B6))

    In C7 maybe:

    =IF(SUM(D7:F7)=0,MAX(0,SUM(C2:C6)),0)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,142

    Re: Time Sheet that Auto Calculates OT and Adjusts Hours to a Max Value

    C7 needs to calculate for hours in C2:C6 with a minimum value of 0. This also needs to read 0 when sick, vacation, or other is entered into D2:F6 (or D7:F7).
    so you want any OVERTIME to be zero , if any day has an entry for sick, vacation, or other - not just that day ?

    =IF(COUNTA($D$2:$F$6)>0,MIN(40,SUM($B$2:$B$6)),IF(C7>0,SUM(B2:B6)-SUM(C2:C6),SUM(B2:B6)))
    not sure why you need this

    not sure why you would not just total B - with 40 as the max value
    and then
    OT sum of C

    probably i'm not following correctly - sorry

    i have also modified the formula so you dont get value error

    just need calarity on the sick/vac etc

    can you give an example with those value include
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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. Replies: 1
    Last Post: 11-11-2019, 10:04 AM
  2. Excel Formula that calculates hours worked between a set time
    By Ixorian in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-24-2015, 02:27 PM
  3. [SOLVED] Time Sheet that calculates hours worked into one of three shift columns
    By mbocian in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2014, 11:27 AM
  4. Time Sheet turmoil.-auto calculate the hours
    By Short on time and money. in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  5. [SOLVED] Need Time Sheet that calculates hours/mins from input of times
    By Steve in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2005, 08:06 PM
  6. Replies: 2
    Last Post: 02-24-2005, 05:06 PM
  7. Replies: 2
    Last Post: 02-16-2005, 06:06 AM

Tags for this Thread

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