+ Reply to Thread
Results 1 to 3 of 3

timevalue

  1. #1
    Registered User
    Join Date
    03-24-2012
    Location
    Portage, Indiana
    MS-Off Ver
    Excel 2007
    Posts
    1

    timevalue

    I need to convert time -Hours,minutes- to a decimal. using timevalue I have to input timevalue("string"). I have a lot of these to do. is there a way to do it faster. Macro ?

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: timevalue

    you can do it easier, could you suply a sample of your layout?
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: timevalue

    Hi Tom, welcome to the forum.

    Can you provide a few examples of how you want the decimals to appear? For example, do you want 8:30am to be 8.5 or 8.3? Do you want 8:30pm to be 20.5 or 8.5? Or 20.3/8.3?

    For 8.5 and 20.5, respectively, you can simply use:

    =A1*24

    Where A1 contains the time value. You can fill that down the column for multiple values.

    To get the x.3 variety, you could try:

    =INT(A1*24)+MINUTE(A1)/100

    Hope that helps!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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