+ Reply to Thread
Results 1 to 13 of 13

how can I format this time value?

  1. #1
    Forum Contributor
    Join Date
    11-10-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    229

    how can I format this time value?

    Hi all!

    please see the attached xls:

    i need to format the date/time column in the left, that comes out only as a time ---> format it as the column in the right, which is a timestamp with year month, day and 00.000 seconds all in one value without separation, how do i do this?

    many thanks!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-09-2014
    Location
    New York
    MS-Off Ver
    Excel 2013
    Posts
    84

    Re: how can I format this time value?

    Try this
    how-can-i-format-this-time-value-date-and-time-formatting.xlsx

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: how can I format this time value?

    I read the OPs request as being the other way round. Col A the source.. col E the result and got confused as there's no date in col A, whatever way I looked at it...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: how can I format this time value?

    This should convert your values in column E into hours, minutes and seconds.

    Format as h:mm:ss

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

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

    Re: how can I format this time value?

    14:33:00 20140706224625.083
    how is 20140706224625.083 made up?

    20140706 maybe 2014 7 June or 6 July depending on regional settings

    224625.083 how is that a time?
    "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

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: how can I format this time value?

    My thought was that the decimal part was a decimal fraction of a second which the example left off so I left it out also and just gave the seconds without the decimal.

  7. #7
    Forum Contributor
    Join Date
    11-10-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: how can I format this time value?

    newdoverman , thank you but I need the other way around I need to convert the date value in column A as column E, I need something like that 14:33:00 ----> 201407061433 , I believe that the YYY:mm:dd are already embedded in the 14:33:00 .... if this is not the case I'd just need to add YYY:mm:dd next to the 14:33:00 and format it as 201407061433

    Glenn Kennedy , thank you, I believe that there is the YYY:mm:dd in the values of column A... i'm not 100% sure... i tried to extrapolate but I wasn't able to... as per request above, if this is not the case I'd just need to add YYY:mm:dd next to the 14:33:00 and format it as 201407061433

    thank you!

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: how can I format this time value?

    Maybe this one

    =TEXT(INT(A1),"yyyymmdd")&TEXT(MOD(A1,1),"hmm")

    A
    B
    1
    8/30/2014 11:17
    201408301117
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: how can I format this time value?

    Maybe something like this will do what you want. This is to the nearest second but what the decimal is indicating is anyone's guess at this point. I used the current year, the month and day indicated (hard coded into the formula as text) then appended the time.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: how can I format this time value?

    It makes me feel better to see you guys stumbling round a bit, too...

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: how can I format this time value?

    The problem with this question is that there isn't a date given just a time so the first 8 characters are at best a guess as there is no basis given to determine what these characters should be.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: how can I format this time value?

    Exactly... see post 3.

  13. #13
    Registered User
    Join Date
    02-09-2014
    Location
    New York
    MS-Off Ver
    Excel 2013
    Posts
    84

    Re: how can I format this time value?

    how-can-i-format-this-time-value-date-and-time-formatting.xlsx
    Quote Originally Posted by cat3appr View Post
    newdoverman , thank you but I need the other way around I need to convert the date value in column A as column E, I need something like that 14:33:00 ----> 201407061433 , I believe that the YYY:mm:dd are already embedded in the 14:33:00 .... if this is not the case I'd just need to add YYY:mm:dd next to the 14:33:00 and format it as 201407061433

    Glenn Kennedy , thank you, I believe that there is the YYY:mm:dd in the values of column A... i'm not 100% sure... i tried to extrapolate but I wasn't able to... as per request above, if this is not the case I'd just need to add YYY:mm:dd next to the 14:33:00 and format it as 201407061433

    thank you!
    Date imbedded
    =TEXT(A8,"yyyymmddhhmmss.000")

    Date not imbedded
    =TEXT(A2+B2,"yyyymmddhhmmss.000")

+ 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. Format time from military time to standard time
    By Valencia0307 in forum Excel General
    Replies: 7
    Last Post: 06-01-2014, 11:15 AM
  2. Change format of lots of data cell to a time format
    By dazza67 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-24-2013, 03:24 PM
  3. Convert date and time in serial number format to text format
    By nda13112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 02:45 PM
  4. Excel: How to convert time format into number format that can be added?
    By Frances Jones in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2012, 04:10 PM
  5. Display time in time format instead of decimal format
    By CasualVisitor in forum Excel General
    Replies: 5
    Last Post: 07-03-2009, 06:24 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