+ Reply to Thread
Results 1 to 10 of 10

How can convert number to Month and Year?

  1. #1
    Registered User
    Join Date
    01-22-2013
    Location
    Bangkok, Thailand
    MS-Off Ver
    Excel 2007
    Posts
    56

    How can convert number to Month and Year?

    Dear Excel expert person,

    Could you please advise me how can convert number data to Month and year?

    I have data is 27.03.2014 and would like to change this value is Mar-2014.

    which formula should be work?

    Best regards.

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: How can convert number to Month and Year?

    Is the original date text or a number? If it is text do the days have leading zeros (ie. is 1 March 2014 shown as 01.03.2014 or 1.03.2014)? Do you want the result as a number or as text?
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  3. #3
    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,945

    Re: How can convert number to Month and Year?

    change the format, there are many options under Date to choose from, if what is there is not what you want, create your own format under Custom
    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

  4. #4
    Registered User
    Join Date
    01-22-2013
    Location
    Bangkok, Thailand
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: How can convert number to Month and Year?

    Attached please find my example data of Excel file
    And I try to change format but does not work.

    please help me and advise me.

    Convert to Date.xlsx

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How can convert number to Month and Year?

    Try this

    in B1

    =TEXT(DATE(RIGHT(A1,4),MID(A1,4,2),LEFT(A1,2)),"mmm-yyyy")

    A
    B
    1
    27.03.2014 Mar-2014
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    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,945

    Re: How can convert number to Month and Year?

    Your dates are not real dates, they are text looking like dates. Convert with this and then format...
    =DATE(RIGHT(A2,4),MID(A2,4,2),LEFT(A2,2))

    @ AlKey, I feel its always better to have dates AS dates where possible, that way you can use them in calcs. For instance, if you try to add 1 to your answer(Feb-2014), you get 2/2/2014, instead of 2/28/2014
    Last edited by FDibbins; 06-12-2014 at 12:34 AM.

  7. #7
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: How can convert number to Month and Year?

    In B2 try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    To work properly it will require the original dates to have leading zeros on the days. Your example does not show a day prior to the 10th of a month to see it that is true or not.

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: How can convert number to Month and Year?

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    i used 1 instead of actual date because thats what your example showed?
    unsure if thats what you actually want though

    alternatively you can text to column>date>DMY
    Last edited by humdingaling; 06-12-2014 at 12:34 AM. Reason: additional data
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How can convert number to Month and Year?

    Thank you for the feedback!

    Please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How can convert number to Month and Year?

    why not just
    =--SUBSTITUTE(A2,".","/")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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 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
  2. [SOLVED] Convert Number into Month and Year
    By acsishere in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-22-2013, 04:43 PM
  3. convert month in to year nad day into month
    By wasim.qureshi in forum Excel General
    Replies: 3
    Last Post: 10-28-2009, 08:47 AM
  4. Convert Day, Month, Year, Hour into One Value
    By cb3291u in forum Excel General
    Replies: 3
    Last Post: 09-12-2006, 05:19 PM
  5. [SOLVED] convert number to month and year in formula
    By Soth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-19-2006, 03:35 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