+ Reply to Thread
Results 1 to 6 of 6

Date format problem

Hybrid View

  1. #1
    Registered User
    Join Date
    06-14-2005
    Location
    London
    MS-Off Ver
    2016
    Posts
    91

    Date format problem

    I have a number of rows of data, all of which has a date in one cell in format of dd/m/yy. In a subsequent cell i am running a mid function to determine the month number. However, the format of the date seems to be a number i.e. 40909 rather than 01/1/12, and therefore my mid function is pulling out 9 rather than 1. I've tried everything to reformat the date cell but it makes no difference

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Date format problem

    If you already check the format, then pls upload a small sample workbook to show us the problem and to work on this.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    06-14-2005
    Location
    London
    MS-Off Ver
    2016
    Posts
    91

    Re: Date format problem

    Book3.xlsx

    Here you go

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,611

    Re: Date format problem

    In col D and E enter =C2 and format as "ddd" and "mmm" respectively

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Date format problem

    Try

    =IF(MONTH(C2)=1,"Jan",IF(MONTH(C2)=2,"Feb",IF(MONTH(C2)=3,"Mar","Apr")))

    You can not use LEFT -MID & RIGHT functions for dates!

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,611

    Re: Date format problem

    Or
    =text(c2,"ddd")
    or
    = text(c2,"mmm")
    - Also read http://www.cpearson.com/excel/datetime.htm#AddingDates

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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