+ Reply to Thread
Results 1 to 4 of 4

Date and Time Concatenate Help

Hybrid View

  1. #1
    Registered User
    Join Date
    05-16-2006
    Posts
    3

    Date and Time Concatenate Help

    Column A has date data formatted yyyy/mm/dd. Column B has time data formatted hh:mm:ss. I would like a formula to return in Column C "yyyymmddhhmmss" without any colons or slashes etc

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Mr Gow
    Column A has date data formatted yyyy/mm/dd. Column B has time data formatted hh:mm:ss. I would like a formula to return in Column C "yyyymmddhhmmss" without any colons or slashes etc
    Hi,

    the site http://www.cpearson.com/excel/datetime.htm#SerialDates shows some information on Dates and Times, but for your question, the Custom Format yyyymmddhhmmss with the formula =INT(A1)+MOD(B1,1)
    should suffice.

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    05-16-2006
    Posts
    3

    Concatenate Date and Time

    Thats great - Thanks

  4. #4
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    try this

    =YEAR(A6)&IF(MONTH(A6)<10,0&MONTH(A6),MONTH(A6))&IF(DAY(A6)<10,0&DAY(A6),DAY(A6))&IF(HOUR(B6)<10,0&HOUR(B6),HOUR(B6))&IF(MINUTE(B6)<10,0&MINUTE(B6),MINUTE(B6))&IF(SECOND(B6)<10,0&SECOND(B6),SECOND(B6))
    not a professional, just trying to assist.....

+ 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