+ Reply to Thread
Results 1 to 3 of 3

Convert dd/mm/yyy to mmm-yy

  1. #1
    Registered User
    Join Date
    11-05-2019
    Location
    London
    MS-Off Ver
    2013
    Posts
    14

    Convert dd/mm/yyy to mmm-yy

    Hi,

    I got a simple one but for some reason confusing.

    I have dates in the following format 27/03/2018 and i want it in Mar-19.

    The reason for it is i need to average if them, so they need to be the exact same number.

    Thank you!

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Convert dd/mm/yyy to mmm-yy

    first off, 27/03/2018 wouldn't be Mar-19 since that is a different year. And that is only a formatting issue to change it from dd/mm/yyyy to mmm-yy.
    but if you are wanting it to be simply translated as march 2018 you can use =TEXT(MONTH(A1)&"-"&YEAR(A1),"mmm-yy")

    EDIT, caution as the output will be text.
    Last edited by Sam Capricci; 01-31-2020 at 08:33 AM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Convert dd/mm/yyy to mmm-yy

    Now, as I added in the edit, the output of that will be text which might make it difficult to use for averaging.
    This will output a date and will make all dates within a month as the first of the month. I use this for doing calculations from as it does return a date and you can format as you want...
    =DATEVALUE(MONTH(A1)&"/1/"&YEAR(A1))

    EDIT: sorry, for your format in London (mine is US standard) yours might be like this =DATEVALUE("1/"&MONTH(A1)&"-"&YEAR(A1)) though I'm not completely sure but you can adjust as needed.

    EDIT2: maybe simply =DATEVALUE(MONTH(A1)&"-"&YEAR(A1))
    Last edited by Sam Capricci; 01-31-2020 at 09:09 AM.

+ 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: 4
    Last Post: 11-29-2015, 07:20 AM
  2. Replies: 2
    Last Post: 11-10-2015, 10:51 AM
  3. [SOLVED] Convert 1 List into 5 and Convert 5 lists into 1
    By brainzlp in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-25-2015, 01:54 PM
  4. Replies: 1
    Last Post: 12-15-2014, 08:46 PM
  5. Convert Cell Formula to Convert Text to VBA Code
    By PY_ in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-08-2014, 05:51 PM
  6. [SOLVED] convert decimal number to time : convert 1,59 (minutes, dec) to m
    By agenda9533 in forum Excel General
    Replies: 22
    Last Post: 09-15-2013, 10:43 AM
  7. what function to convert convert 34234 to 99999
    By archiles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-04-2008, 11:26 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