+ Reply to Thread
Results 1 to 9 of 9

Convert date to MMMM YYYY not showing year

Hybrid View

  1. #1
    Registered User
    Join Date
    02-21-2017
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    3

    Convert date to MMMM YYYY not showing year

    I try to show a date in format MMMM YYYY - coming from DD-MM-YYYY. I use the below function to convert the date:

    TEXT(B5;"[$-409]mmmm yyyy")

    From date '01-12-2016' I would get 'December yyyy'.

    Any idea why year is not shown, when month is?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,477

    Re: Convert date to MMMM YYYY not showing year

    =TEXT(B5;"mmmm yyyy")

    or just format B5 to look the way you want. PS Your original also works fine!!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,858

    Re: Convert date to MMMM YYYY not showing year

    Is your column wide enough to show the year?

    Pete

  4. #4
    Registered User
    Join Date
    02-21-2017
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    3

    Re: Convert date to MMMM YYYY not showing year

    Year, my column is wide enough - see picture for actual look.

    http://fs5.directupload.net/images/170221/jx9iqt8g.png

    I understand that this formula should work, but the real question is why it does not for me.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,477

    Re: Convert date to MMMM YYYY not showing year

    A picture is not much help.

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!


    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

  6. #6
    Registered User
    Join Date
    02-21-2017
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    3

    Re: Convert date to MMMM YYYY not showing year

    After much back and forth I learned that this is an issue with language.

    I needed to change my locale on the PC to English (which per default is Danish...) and then it understood the YYYY part.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: Convert date to MMMM YYYY not showing year

    Thanks for the feedback, always good to know little tricks like that
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,858

    Re: Convert date to MMMM YYYY not showing year

    Or you could stick to Danish and use AAAA instead of YYYY.

    Hope this helps.

    Pete

  9. #9
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Convert date to MMMM YYYY not showing year

    There are some tips here on working around international issues with the TEXT function- http://www.rondebruin.nl/win/s9/win013.htm
    Useful if you need it to work in multiple regions, though it will require saving the workbook in a macro enabled format.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ 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. Replies: 3
    Last Post: 07-14-2016, 06:36 PM
  2. Date Function: How to convert MM-DD-YYYY to DD-MM-YYYY
    By ramki in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-23-2014, 12:03 AM
  3. [SOLVED] Issue in macro to convert date from DD-MON-YYYY into YYYY-MON-DD
    By abraham30 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2014, 09:17 AM
  4. Convert Month Day, Year to dd/mm/yyyy
    By Apple Ling in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-30-2013, 07:31 AM
  5. [SOLVED] Imported data contains strings dd.mm.yyyy how can I convert to date format dd/mm/yyyy inVB
    By Boormo in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-05-2012, 05:48 PM
  6. Problems converting date from d/m/yyyy to mmmm format
    By dcgrove in forum Excel General
    Replies: 6
    Last Post: 07-22-2009, 01:25 PM
  7. Replies: 5
    Last Post: 03-23-2006, 08:00 PM

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