+ Reply to Thread
Results 1 to 6 of 6

Time display properly

  1. #1
    Registered User
    Join Date
    08-20-2017
    Location
    Netherlands
    MS-Off Ver
    office
    Posts
    2

    Time display properly

    Hello,

    Please Login or Register  to view this content.
    When using the formula the time is sometimes dispayed as -00:00 while it should be 00:00. what is causing this?
    I have added my sheet in the attachment.

    Regards,
    Kiewan
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Time display properly

    Column P you have different cell formats

    Kind regards
    Leo

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,265

    Re: Time display properly

    Hi kiewan and welcome to the forum,

    I believe this is simply a rounding error while using binary math. Zero and -Zero are the same (you know this). But in computers that need to use 16 digits of accuracy it might be just negative.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    514

    Re: Time display properly

    @Kiewan:

    It's a rounding issue. To address it, try placing the following formula in cell O3 and drag-copying it down as needed:

    =MROUND(E3+G3+I3+K3+M3+R3+N3,"0:01")

  5. #5
    Registered User
    Join Date
    08-20-2017
    Location
    Netherlands
    MS-Off Ver
    office
    Posts
    2

    Re: Time display properly

    Quote Originally Posted by Root_ View Post
    @Kiewan:

    It's a rounding issue. To address it, try placing the following formula in cell O3 and drag-copying it down as needed:

    =MROUND(E3+G3+I3+K3+M3+R3+N3,"0:01")
    This fixed the issue, thanks. What is the function of the 0:01?

  6. #6
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    514

    Re: Time display properly

    You are welcome.

    MROUND(time_value,"0:01") rounds the time_value to the nearest minute.

+ 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] Struggling to display the time properly in a formula
    By john dalton in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-17-2015, 07:28 AM
  2. Date Does Not Display Properly
    By ditee26 in forum Excel General
    Replies: 1
    Last Post: 05-06-2013, 11:41 AM
  3. B5 uses VBA Code. How to properly display info in B5 into AB5?
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-19-2010, 01:54 PM
  4. Graph does not display properly
    By ravichander in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 01-31-2009, 02:26 PM
  5. Replies: 1
    Last Post: 01-05-2006, 12:20 PM
  6. Replies: 2
    Last Post: 07-22-2005, 09:05 PM
  7. Word Wrap does not seem to display properly
    By news.microsoft.com in forum Excel General
    Replies: 1
    Last Post: 03-21-2005, 07: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