+ Reply to Thread
Results 1 to 4 of 4

Adding Only Positive Time For Time Clock

  1. #1
    Registered User
    Join Date
    07-01-2020
    Location
    Avondale, AZ
    MS-Off Ver
    Excel 2016
    Posts
    2

    Adding Only Positive Time For Time Clock

    I currently have it so lunches are automatically deducted from time clock spread sheet. =SUM(D4-C4)-E4
    But if you are absent it calculates a negative time for day throwing off weekly hours. =SUM(F4:F10)
    I have such a tried a great many sumif statement to only realize positive numbers but get a error. =SUMIF(A1:A100,">0") etc.

    Was wondering if someone had a solution for this problem

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

    Re: Adding Only Positive Time For Time Clock

    First, your first formula does not need to use SUM. Just use this

    =D4-C4-E4

    Then you can do this to prevent negative numbers:

    =MIN(0,D4-C4-E4)

    Then your other SUM formulas should work fine.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    07-01-2020
    Location
    Avondale, AZ
    MS-Off Ver
    Excel 2016
    Posts
    2
    Quote Originally Posted by 6StringJazzer View Post
    First, your first formula does not need to use SUM. Just use this

    =D4-C4-E4

    Then you can do this to prevent negative numbers:

    =MIN(0,D4-C4-E4)

    Then your other SUM formulas should work fine.
    Still get an Err:509
    I think this maybe because I’m dealing with time and not persay numbers

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Adding Only Positive Time For Time Clock

    There is no such thing as Err:509. Where are you seeing that?

    What are the values in C4, D4, E4 when you get the error? What formula is giving you the error?

    It might help to attach your file. See yellow banner at the top of the page.

+ 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. Converting clock time to standard text (Zeitgeber time (ZT0))
    By ckfaber in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2020, 12:40 AM
  2. [SOLVED] How to subtract Time Values contained in Labels on a userform - Time Elapsed Live Clock
    By deadeye_draken in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-18-2017, 06:44 AM
  3. Replies: 5
    Last Post: 07-17-2017, 12:44 PM
  4. [SOLVED] Adding Positive and negative time values formatted as text
    By nixxrite in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 11-22-2014, 02:28 PM
  5. Replies: 3
    Last Post: 09-29-2007, 04:58 PM
  6. Adding Time:a clock card.
    By suicidal jackie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-11-2006, 12:25 PM
  7. [SOLVED] can cell's act like time clock at a certen time/date for payments
    By Colin2u in forum Excel General
    Replies: 6
    Last Post: 08-04-2005, 08:05 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