+ Reply to Thread
Results 1 to 8 of 8

negative working hours

  1. #1
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    negative working hours

    Good evening, I would like to manage the working hours but negative with the formulas by mistake when you subtract a smaller value.
    I used a function
    Please Login or Register  to view this content.
    But even this in a few lines from the wrong values.See attached file
    You can correct it or tell me another way to get your hours in negative values?
    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: negative working hours

    Just use

    =(E5-D5)*24

    That won't produce the nuber of minutes though, it will be a percentage of an hout
    e.g.
    -15.25 instead of -15.15
    Last edited by Special-K; 01-08-2016 at 01:28 PM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: negative working hours

    If you only have calculations with hours (no dates) you could change the 1904 option in File/Options/Advanced/Use 1904 date system/ then you can simply use the formula =E5-D5 even for negative calculations.
    Last edited by rollis13; 01-08-2016 at 01:50 PM.

  4. #4
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: negative working hours

    I tried with:

    = IF (E5<D5;((E5-D5)*24);E5-D5)

    but by the same mistake.

    Not a single line but many, and I need the exact value in hours and minutes.

  5. #5
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: negative working hours

    Thanks, Rollis13 but I would not change the settings in 1904
    I might have errors in other files.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: negative working hours

    You could use this formula

    =IF(SIGN(E5-D5)+1, TEXT(ABS(E5-D5),"[h]:mm"), "-"& TEXT(ABS(E5-D5),"[h]:mm"))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: negative working hours

    The option will be only for that single file.

  8. #8
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: negative working hours

    I tried the formula ChemistB and apparently functions properly.
    For now I thank you if I have problems I will hear.

+ 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] Negative Working Hours
    By Mohammed Zenuwah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  2. Negative Working Hours
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 AM
  3. Negative Working Hours
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  4. [SOLVED] Negative Working Hours
    By Mohammed Zenuwah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. Negative Working Hours
    By Mohammed Zenuwah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. Negative Working Hours
    By Mohammed Zenuwah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] Negative Working Hours
    By Mohammed Zenuwah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. Negative Working Hours
    By Mohammed Zenuwah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10: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