+ Reply to Thread
Results 1 to 5 of 5

Rearrange numbers in a cell

Hybrid View

  1. #1
    Registered User
    Join Date
    08-07-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    2

    Rearrange numbers in a cell

    Hello,

    First time posting on this forum, fairly new to using excel beyond very basic stuff. Need some help with turning a string of numbers into a date.
    So I have a cell that contains these numbers: 1950928. I need to find some formula or function that turns thousands of these cells in one column into the U.S date format, 9/28/1950. 9/28/50 is also O.K. As I mentioned I've got thousands of these and deal with it on a daily basis, so any way to easily convert and entire column would be amazing.

    Thank you.

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Rearrange numbers in a cell

    DATE Function will work;
    =DATE(Year,Month,Day)

    Assuming the Date is in cell A1:
    =DATE(LEFT(A1,4),IF(LEN(A1)=7,MID(A1,5,1),MID(A1,5,2)),RIGHT(A1,2))

    The RED colored part of the equation accounts for cells where the months have two digits, 10, 11 and 12. Example : 19501228

    Kirk
    Last edited by K m; 08-07-2012 at 09:15 AM.
    Click on star (*) below if this helps

  3. #3
    Registered User
    Join Date
    08-07-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Rearrange numbers in a cell

    Oh wow, that's awesome, thank you so much!

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Rearrange numbers in a cell

    Be sure to mark the question title as [SOLVED]

    Click on the STAR below if this was helpful

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Rearrange numbers in a cell

    Is the day always entered as 2 digits? How would we (and the formula) know if the date below was December 3 or January 23?

    1950123

+ 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