+ Reply to Thread
Results 1 to 3 of 3

How to convert YYYYMM to MMYYYY in a cell

  1. #1
    Registered User
    Join Date
    03-30-2014
    Location
    Australia
    MS-Off Ver
    Excel 2003 & 10
    Posts
    30

    How to convert YYYYMM to MMYYYY in a cell

    Hi all

    I have some dates in cells formatted as 201212 201304

    How do I format the cells so I the date like mm yyyy? so 12/2012 and 04 2012?

    Thanks!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,238

    Re: How to convert YYYYMM to MMYYYY in a cell

    Are they real dates? Or just numbers that look like yyyymm? If they are real dates, and you are only displaying the year and month, you could pick another format.

    If they're numbers, there's not a lot you can do in the cell, you'd need a formula to swap the elements around.

    So, if the "date" is in cell A1, you'd use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    . You could then select the formula column and Copy and Paste Special Values over the original.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    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: How to convert YYYYMM to MMYYYY in a cell

    You could convert them to dates and then format however you like.

    A
    B
    C
    1
    201212
    12/2012
    B1: =--TEXT(A1, "0000-00-\1")
    2
    201304
    04/2013
    Format of B1: mm/yyyy
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Convert Date " yyyymm" through Formatting
    By bimo in forum Excel General
    Replies: 5
    Last Post: 04-11-2014, 05:09 AM
  2. [SOLVED] Converting yyyymm to date
    By Platinum3x in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-06-2013, 11:08 AM
  3. can not convert yyyymmdd to yyyymm
    By dschmitt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-14-2010, 10:56 PM
  4. Replies: 2
    Last Post: 12-02-2009, 03:23 PM
  5. Converting DD/MM/YYYY format into text MMYYYY
    By giantwolf in forum Excel General
    Replies: 3
    Last Post: 08-03-2006, 11:00 AM

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