+ Reply to Thread
Results 1 to 5 of 5

Convert timevalue to time

  1. #1
    Registered User
    Join Date
    09-07-2018
    Location
    Europe
    MS-Off Ver
    Office for Mac 15
    Posts
    5

    Convert timevalue to time

    I have a timevalue (like 0.4791) in a cell. I would like to display 11:30 WITH the use of a formula. I do NOT want to change the cell formatting.

    Timevalue("11:30") = 0.4791. What is the inverse of this formula?

  2. #2
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Convert timevalue to time

    If Timevalue is in C3, this should work.

    HTML Code: 
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Convert timevalue to time

    =TEXT(A1,"hh:mm:ss")

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Convert timevalue to time

    Oops, forgot about this simple solution.
    thanks Pepe.

  5. #5
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Convert timevalue to time

    Why do you need to use a formula per se?

    First, TIMEVALUE("11:30") returns 0.479166666666667, which rounds to 0.4792.

    If you have the first value in a cell, simply format the cell as Custom hh:mm to see 11:30.

    Now, if you really mean that you want a function that you can use in a text expression (e.g., "the time is " & ...), you might use TEXT(A1,"hh:mm").

    But note that if you have the value 0.4791, that returns "11:29", not "11:30".

    If your intent is round the approximate decimal number to hr:min, use: --TEXT(ROUND(A1*1440,0)/1440,"hh:mm") for numeric time formatted as Custom hh:mm. Omit the double negate ("--") if you want just the text.

+ 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. Convert time to text for timevalue function
    By JonathanEngr in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-24-2018, 11:02 AM
  2. Cells time for TIMEVALUE formula
    By umirin in forum Excel General
    Replies: 1
    Last Post: 08-31-2016, 10:44 AM
  3. Using RangeName instead of hard coded time in OnTime + TimeValue Vba Macro
    By rsaha in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-04-2015, 12:01 PM
  4. if statement with timevalue? Tracking Time.
    By whywhybother in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-24-2012, 08:58 PM
  5. Replies: 5
    Last Post: 10-20-2009, 06:45 AM
  6. passing a time string with milliseconds into TimeValue()
    By twd000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2009, 12:18 AM
  7. Replies: 0
    Last Post: 08-23-2005, 12:22 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