+ Reply to Thread
Results 1 to 4 of 4

Formatting Merged Date and Time

  1. #1
    Registered User
    Join Date
    12-13-2007
    Posts
    3

    Formatting Merged Date and Time

    Hi all.

    I've done a search and haven't come up with the answer I need, so hopefully someone can help.

    I've imported a CSV file that has 230 rows.
    Column A: has a Date MM/DD/YY
    Column B: has a time 00:00:00
    Column C: has data I want to graph over time

    I would like to merge columns A & B together so that I get MM/DD/YY 00:00:00.

    I've used the concatenate function, however I'm having problems.
    For example.

    Sample Data

    12/10/07 00:00:00 1
    12/10/07 06:00:00 2
    12/10/07 12:00:00 67
    12/10/07 18:00:00 90

    Concatenating 12/10/07 with 12:00:00 results in 39425 12:00:00
    How can I get this to display correctly?

    It needs to be in the correct format so that the X Axis of a line chart shows the actual date and time and not the 39425 number and time.

    Thanks for the help!

    -Paul

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Hi, Paul.

    Did you try adding the 2 columns together, rather than concatenate?

    Jason

  3. #3
    Registered User
    Join Date
    12-13-2007
    Posts
    3
    Tried that.

    It's something to do with the date and/or time formatting.

    If I start a new workbook and manually type in 10/13/07 and 12:00:00 and then add them together, I get 10/13/07 12:00:00

    However, If I copy and paste or paste special (values only) and then try to add them together in my new workbook I get #VALUE!

  4. #4
    Registered User
    Join Date
    12-13-2007
    Posts
    3
    Figured it out.

    There was a space before my time value _12:00:00
    Find and replace took care of that.
    Now I just gotta get this stuff to graph correctly and i'll be good to go!

+ 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