+ Reply to Thread
Results 1 to 9 of 9

How to convert time (9:15) to time in quarter hours (9.25)

  1. #1
    Registered User
    Join Date
    09-07-2007
    Posts
    1

    How to convert time (9:15) to time in quarter hours (9.25)

    I've been poking around trying to figure this out but can't. The time of 9 hours, 15 minutes is being returned from a calculation but I want the cell to display the 9.25 hours instead. This seems like something simple on the surface, but apparently it's not. Any help would be appreciated!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,905
    Try:

    =A1*24 and format the cell as General (where A1 contains original time)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,099
    Try this in B1, with your time in A1

    =HOUR(A1)+MINUTE(A1)/60 format cell to number
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Registered User
    Join Date
    10-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to convert time (9:15) to time in quarter hours (9.25)

    These are both great formulas if all times are PM. Neither of these formulas works for my AM times, though. Ideas?

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    MS Office Excel 2007
    Posts
    5,636

    Re: How to convert time (9:15) to time in quarter hours (9.25)

    Both work fine for me regardless of AM PM.

    What's your input data and what results are you getting?
    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.

  6. #6
    Registered User
    Join Date
    10-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to convert time (9:15) to time in quarter hours (9.25)

    My input data is likely the issue. It comes from reporting software designed for paratransit operations circa 1997. I'm pasting into Excel 2010 and only have the option to paste special as text or unicode text. After formatting as time and applying either the *24 method or B1=HOUR(A1)+MINUTE(B1)/60 formulas, the cell displays "#VALUE", or error in value except for my PM times.

    An issue not directly related to this thread but which is likely puzzling other users facing a similar input data issue is why the original data's appearance does not change when formatted in one of many different time formats.

  7. #7
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    MS Office Excel 2007
    Posts
    5,636

    Re: How to convert time (9:15) to time in quarter hours (9.25)

    #VALUE sounds like the data is indeed text.
    The first formula should have resulted in a number unless you have spurious data in there, e.g. spaces or non printable characters (usually CHAR(160))

    Changing the format will only work once the data is numeric.

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,765

    Re: How to convert time (9:15) to time in quarter hours (9.25)

    Can you post a sample workbook?
    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    44,046

    Re: How to convert time (9:15) to time in quarter hours (9.25)

    lucasl welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think some-1 helped you

    Regards
    Ford

+ 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