+ Reply to Thread
Results 1 to 2 of 2

Time Format Help Please

  1. #1
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241

    Time Format Help Please

    Hi All,
    I have a spread sheet with sun rise/sunset times for one year.
    Times does not have ":" in between. 6:02 is written as 602.
    Like to see if there is a quick way to add : in between the numbers.
    In some places it would be after one number from left and in some cases it would be after 2 numbers from left.
    I hope someone can help me.
    Thank
    Syed

  2. #2
    Biff
    Guest

    Re: Time Format Help Please

    Hi!

    Assuming there are always 2 digit minutes:

    Use a helper cell:

    A1 = 602

    B1 = formula:

    Try one of these:

    =TIME(LEFT(A1,1+(LEN(A1)=4)),RIGHT(A1,2),0)

    =TIME(SUBSTITUTE(A1,RIGHT(A1,2),""),RIGHT(A1,2),0)

    Then, you could copy>paste special>values over the formulas to convert them
    to constants then get rid of the original data.

    Biff

    "saziz" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi All,
    > I have a spread sheet with sun rise/sunset times for one year.
    > Times does not have ":" in between. 6:02 is written as 602.
    > Like to see if there is a quick way to add : in between the numbers.
    > In some places it would be after one number from left and in some cases
    > it would be after 2 numbers from left.
    > I hope someone can help me.
    > Thank
    > Syed
    >
    >
    > --
    > saziz
    > ------------------------------------------------------------------------
    > saziz's Profile:
    > http://www.excelforum.com/member.php...fo&userid=6350
    > View this thread: http://www.excelforum.com/showthread...hreadid=520363
    >




+ 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