+ Reply to Thread
Results 1 to 3 of 3

Concatenate Date and Time

  1. #1
    Forum Contributor
    Join Date
    08-15-2005
    Location
    Oklahoma
    MS-Off Ver
    2010, 2013
    Posts
    112

    Concatenate Date and Time

    Attached is an Excel spreadsheet with Date and Time in 1st and 2nd columns, respectively. The 3rd column is how I want the data to look for plotting. How do I concatenate columns 1 and 2 to arrive at 3? When I concatenate, I get a number for the data instead of date.

    Thanks,

    Jim Williams
    Attached Files Attached Files

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445
    Hi Jim,

    Your time is not being recognised as such because of the lack of space between numbers and meridian indicator. However, if you use this:

    =A2+TIMEVALUE(LEFT(B2,(FIND("M",B2)-2))&" "&RIGHT(B2,2))

    and copy it down the length of the data it will give you the required output. Remember to format the column appropriately.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650
    Hi, This bit of code will do, I like you don't know how to do it as a function
    Please Login or Register  to view this content.
    I'll watch this space
    Regards Mick

+ 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