+ Reply to Thread
Results 1 to 5 of 5

Split date into 3 separate columns

Hybrid View

  1. #1
    Registered User
    Join Date
    11-08-2011
    Location
    MA
    MS-Off Ver
    Office 2010
    Posts
    12

    Split date into 3 separate columns

    Is it possible to start with a date in one column (like 1/23/2012), and get it to split into three separate columns for month, day, and year (ie. column A = month, B = day, C= year)? Seems odd but I have a large file that needs to be in that format. Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Split date into 3 separate columns

    Use Text To Column.
    Highlight the column, Data > Text To Columns > Delimited, Next, under Other put / as separator then hit finish

  3. #3
    Registered User
    Join Date
    01-23-2012
    Location
    Seattle, US
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Split date into 3 separate columns

    In column A use =month()
    In column B use =day()
    In column C use =year()

    or you could just use custom fomatting to show just the day or month or year

  4. #4
    Forum Contributor
    Join Date
    12-20-2011
    Location
    lancashire,England
    MS-Off Ver
    Excel 2013
    Posts
    187

    Re: Split date into 3 separate columns

    You could also use the following method i use, via Vlookup ( see attached) i split the date entered into week number,month and year.insert 3 columns and copy into your sheet with the lookup 1. Manipulate the data as you need. The formula in the sheet is as follows : =IF(A2="","",VLOOKUP(A2,Lookup1!A$3:D$4102,2,FALSE))
    Basically this means lookup a2 (date entered) if it = "0" output nothing, otherwise Vlookup a2 in lookup1 tab in data a3 d4102 and if you find it give the 2nd column result. If you look at the week , month and year you will see it is only the last number that changes.

    you could then use pivot tables to break your data down into weeks months years as i do!

    hope this helps you
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-08-2011
    Location
    MA
    MS-Off Ver
    Office 2010
    Posts
    12

    Re: Split date into 3 separate columns

    Thanks a lot for the responses! I will try these methods.

+ 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