+ Reply to Thread
Results 1 to 6 of 6

Date Format

Hybrid View

  1. #1
    Registered User
    Join Date
    01-17-2011
    Location
    Wiltshire, England
    MS-Off Ver
    Excel 2007
    Posts
    36

    Lightbulb Date Format

    Hi,

    I have a formula that outputs a date 9 months in advance i.e 15 Oct 2014, how do I format the date to output 15 OCT 2014?

    =IF(DAY(DATE(YEAR($J$3),MONTH($J$3)+9,DAY(J3)))=DAY($J$3),DATE(YEAR($J$3),MONTH($J$3)+9,DAY($J$3)),DATE(YEAR($J$3),MONTH($J$3)+(9+1),1)-1)

    I know I can format a cell using

    =UPPER(TEXT(J3,"dd mmm yyyy"))
    But not sure how to put both together

    Thanks in Advance
    Last edited by processchip; 01-29-2014 at 02:19 PM. Reason: Solved

  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

    Formula: copy to clipboard
    =IF(DAY(DATE(YEAR($J$3),MONTH($J$3)+9,DAY(J3)))=DAY($J$3),DATE(YEAR($J$3),MONTH($J$3)+9,DAY($J$3)),DATE(YEAR($J$3),MONTH($J$3)+(9+1),1)-1)


    In cell that you use this formula, use custom format like this

    Formula: copy to clipboard
    dd mmm yyy
    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
    01-17-2011
    Location
    Wiltshire, England
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Date Format

    Thanks Fotis1991

    But I have already tried that and I get 15 Oct 2014 not 15 OCT 2014.

  4. #4
    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

    Ok. sorry didn't understoond. Try this

    Formula: copy to clipboard
    =UPPER(TEXT(IF(DAY(DATE(YEAR($J$3),MONTH($J$3)+9,DAY(J3)))=DAY($J$3),DATE(YEAR($J$3),MONTH($J$3)+9,DAY($J$3)),DATE(YEAR($J$3),MONTH($J$3)+(9+1),1)-1),"dd mmm yyyy"))

  5. #5
    Registered User
    Join Date
    01-17-2011
    Location
    Wiltshire, England
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Date Format

    Brilliant...Thanks for your help Fotis1991

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

    You are welcome and thanks for the feedback & rep.

+ 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. Converting from the 1904 date format to the 1900 date format without losing data
    By Patty McJorst in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-01-2020, 12:53 PM
  2. Replies: 5
    Last Post: 02-08-2013, 11:06 AM
  3. Need Formula/VBA Code to convert date in String Format to Normal Date format
    By Karthik Sen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2012, 04:54 AM
  4. Column Range with date Format MM/DD/YYYY independate of sys date Format
    By gaursh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2011, 03:31 AM
  5. [SOLVED] Date Format Question- convert into a usable date format.
    By Josh O. in forum Excel General
    Replies: 1
    Last Post: 02-10-2005, 06:06 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