+ Reply to Thread
Results 1 to 3 of 3

Converting Time

  1. #1
    Registered User
    Join Date
    07-09-2010
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    13

    Converting Time

    Hello all, excited to be part of the forum!

    Hopefully I can help and be helped (with Excel issues at least)

    I've hit a bit of a road block.

    The report generator I'm working with spits out time values as follows:
    3:45 (in h:mm format)
    1:20
    :15
    etc

    The problem is with the 3rd example entry.

    How do I convert the :15 to 0:15?

    I've tried searching the forum and web, and to no avail.

    Please help... thanks all,

    TGIF.

    Just to elaborate:

    I've tried adding a custom formatting:
    [h]:mm

    However, all the entries except the troubled one are converted and correct.

    It just seems like Excel is recognizing the field as text.
    Last edited by pike; 07-09-2010 at 09:45 AM. Reason: merge post to reset replies to 0

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Converting Time

    try =IF(LEN(a1)=3,SUBSTITUTE(A1,":","00:"),A1)+0
    then copy paste back special values
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-09-2010
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Converting Time

    Worked magically, I thank you kind sir.

    Have a great weekend.

    Quote Originally Posted by martindwilson View Post
    try =IF(LEN(a1)=3,SUBSTITUTE(A1,":","00:"),A1)+0
    then copy paste back special values

+ 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