+ Reply to Thread
Results 1 to 5 of 5

Formatting a date, excluding the year

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    FL
    MS-Off Ver
    Excel 2013
    Posts
    3

    Formatting a date, excluding the year

    I was given a spreadsheet and the date is displayed 20130821 as today for example. I need to format the dates to read Aug-21 but can't for the life of me figure this out. Any help will be appreciated.

  2. #2
    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,926

    Re: Formatting a date, excluding the year

    Hi and welcome to the forum

    if that is indeed exactly what your date looks like, then it is not exactly a date, but text (or a regular number) that just looks like a date - a date in excel is really a 5-digit number representing how many days have passed since 1/1/1900.

    To convert that to a date, use this, andthen format as required...
    =DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
    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

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

    Re: Formatting a date, excluding the year

    Or =--TEXT(A1,"00-00-00")

    Format the result as mmm-dd
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Formatting a date, excluding the year

    Try this..

    Data-- Text to Columns --Delimited by -- Next -- Next -- Date -- YMD -- Finish

    Format cell as mmm-dd
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    08-21-2013
    Location
    FL
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Formatting a date, excluding the year

    Quote Originally Posted by shg View Post
    Or =--TEXT(A1,"00-00-00")

    Format the result as mmm-dd
    This worked perfect! Thanks!

+ 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. Excluding the leap year in a date formula
    By babstierney in forum Excel General
    Replies: 4
    Last Post: 08-27-2012, 05:47 AM
  2. Replies: 5
    Last Post: 08-22-2012, 05:06 PM
  3. Replies: 4
    Last Post: 07-16-2012, 07:02 AM
  4. Replies: 9
    Last Post: 05-01-2012, 09:52 PM
  5. Date Formula Question: date+1 year formatting
    By sheldons86 in forum Excel General
    Replies: 1
    Last Post: 07-30-2008, 04:41 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