+ Reply to Thread
Results 1 to 3 of 3

TIME function produces incorrect results

  1. #1
    Registered User
    Join Date
    02-11-2015
    Location
    Santa Rosa, CA
    MS-Off Ver
    2019
    Posts
    39

    TIME function produces incorrect results

    I am using =TIME(h,m,s). Excel seems to only use the integer portion of the input. For example, =TIME(1.75,0,5.9999) should output 1:45:06 but is the outputs 1:00:05 instead. My input is actually coming from three other cells, where I can use the ROUND functions for each of the three input variables, but it's frustrating that the Excel TIME function can't handle decimal input. Further, I see no caution about this constraint in the official Excel "Help on this formula" section. Any ideas?

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

    Re: TIME function produces incorrect results

    I've never known anyone who's wanted to use decimals with the TIME function!

    Why don't you just add the values together and weight appropriately?

    For example, if A1 contains hours, A2 minutes and A3 seconds:

    =(A1/24)+(A2/60/24)+(A3/60/60/24)

    Format the output cell as time.

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    1
    1.75
    01:45:06
    2
    0
    3
    5.9999
    Sheet: Sheet1
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    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.83 (24031120))
    Posts
    8,739

    Re: TIME function produces incorrect results

    EDIT
    you have a reply suggesting the same as my post, arrived while i was typing

    you have 3 cells , 1st providing time as a decimal number 1.75 in your example
    2nd is providing the minutes - but in what format, is this also decimal so includes seconds - so is 1.75 here 1 min and 45 seconds
    3rd value is providing seconds
    perhaps give a few more examples - I think you would need to convert the decimal time into hours mins and seconds for each of the the 3 cells and add them together

    maybe a simpler solution, someone else may answer - but thats how i think i would do it

    TIME( HOURS() , .....
    Not fraction of hours
    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. [SOLVED] Incorrect Time calcs when summing results of formulas
    By drewberts in forum Excel General
    Replies: 5
    Last Post: 01-23-2020, 11:44 AM
  2. Using ln() function produces strange results
    By OGAngryHulk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-25-2018, 07:20 PM
  3. [SOLVED] If and OR function gives incorrect results
    By Karnik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2018, 04:21 AM
  4. [SOLVED] Incorrect results of UDF function
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-29-2014, 06:28 PM
  5. [SOLVED] Forumula Results Incorrect when data missing. Wanting to hide the incorrect formula.
    By firemedic6265 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-05-2014, 05:01 PM
  6. Sum function returning incorrect results
    By Elena.P in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-16-2013, 01:26 PM
  7. Copy Paste of Formula Produces Incorrect Result
    By JLa in forum Excel General
    Replies: 1
    Last Post: 05-17-2005, 02:06 PM

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