+ Reply to Thread
Results 1 to 3 of 3

Macro to deconstruct and change date string needed

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    Newark, DE
    MS-Off Ver
    Excel 2010
    Posts
    23

    Exclamation Macro to deconstruct and change date string needed

    I am faced with the challenge of taking dates is this form "January 28 2013" and converting them to the mmddyyyy "01282013" format. If I could move the month to a seperate cell and the day to a seperate cell and then the year to a seperate cell I could concatenate the results to achieve my goal. I can do the year with a LEFT function but don't know how to build the other components.

    Guidance is much appreciated!!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Macro to deconstruct and change date string needed

    If you want to convert that to a date,

    =--SUBSTITUTE(A1, " ", ", ", 2)

    ... and then format as mmddyyyy

    If you want a text output in that format,

    =TEXT(--SUBSTITUTE(A1, " ", ", ", 2), "mmddyyyy")
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-28-2013
    Location
    Newark, DE
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Macro to deconstruct and change date string needed

    shg,

    Thanks so much! Does the job perfectly. Have a Shiner on me!

    Steve

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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