+ Reply to Thread
Results 1 to 10 of 10

Excel 2007 Custom date

  1. #1
    Registered User
    Join Date
    07-03-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    1

    Excel 2007 Custom date

    Hi,

    I have a lot of date to change all the time and was trying to find a formula to go faster

    here is the date that I received 8/7/12 I need to format that day into 7th day of August,2012

    any idea??

    thanks

  2. #2
    Registered User
    Join Date
    08-08-2007
    Location
    Vancouver
    MS-Off Ver
    Excel 2002, Excel 2007, Excel for Mac 2011
    Posts
    38

    Re: Excel 2007 Custom date

    Sebastien try this... Where A1 references the cell with the date

    Please Login or Register  to view this content.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel 2007 Custom date

    See if you can use something from this link:

    http://www.excelforum.com/tips-and-t...-or-later.html
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Excel 2007 Custom date

    You could try formatting the date with a custom format of d"th day of" mmm/yyyy
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel 2007 Custom date

    I'd be willing to bet that they don't want something like:

    23th day of July 2013


  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Excel 2007 Custom date

    I found this via Google search:

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


    This is on this site: http://excel.tips.net/T002510_Adding..._to_Dates.html

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel 2007 Custom date

    This one uses less functions to get the ordinal day:

    =DAY(A1)&LOOKUP(DAY(A1),{1,2,3,4,21,22,23,24,31},{"st","nd","rd","th","st","nd","rd","th","st"})&TEXT(A1," mmmm, yyyy")

    However, I think they want to FORMAT the cell to display the date that way, not use a helper formula.

    Using the technique I describe in the link in post #3 you can create ordinal date formats if you're using Excel 2007 or later. I don't have the time to work it out tonight. Maybe I'll look at it again tomorrow if we get some feedback from the OP.

  8. #8
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Excel 2007 Custom date

    Hi..
    One more option..

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


    Specially for OP.. try this one..

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel 2007 Custom date

    Quote Originally Posted by Debraj Roy View Post
    Hi..
    One more option..

    =A1&MID("thstndrdth",MIN(9,2*RIGHT(A1)*(MOD(A1-11,100)>2)+1),2)
    That formula is already mentioned in the link in post #3.

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel 2007 Custom date

    Here's how to use conditional formatting to display an ordinal date in the format "d[ordinal] day of mmmm,yyyy" (5th day of July,2013) in Excel versions 2007 and later.

    Create the custom formats...

    Select the cell you want to format. Let's assume that's cell A1.

    Right click>Format Cells>Number tab>Custom

    In that little box under Type: enter the format code:

    d"st day of "mmmm,yyyy

    Click OK

    Repeat that process for these format codes:

    d"nd day of "mmmm,yyyy
    d"rd day of "mmmm,yyyy
    d"th day of "mmmm,yyyy

    Now, apply the conditional formatting...

    Since there is a maximum of 31 days in any month we only need to deal with the ordinal suffix for the numbers 1 to 31 (days of the month).

    With cell A1 still selected...

    Goto the Home tab>Styles>Conditional Formatting>
    Manage rules>New rule>Use a formula to determine
    which cells to format

    Enter this formula in the box below:

    =OR(DAY(A1)=1,DAY(A1)=21,DAY(A1)=31)

    Click the Format button
    Select the Number tab>Custom
    From the drop down list on the right select the code:

    d"st day of "mmmm,yyyy

    OK>OK

    New rule>Use a formula to determine which cells to format

    Enter this formula in the box below:

    =OR(DAY(A1)=2,DAY(A1)=22)

    Click the Format button
    Select the Number tab>Custom
    From the drop down list on the right select the code:

    d"nd day of "mmmm,yyyy

    OK>OK

    New rule>Use a formula to determine which cells to format

    Enter this formula in the box below:

    =OR(DAY(A1)=3,DAY(A1)=23)

    Click the Format button
    Select the Number tab>Custom
    From the drop down list on the right select the code:

    d"rd day of "mmmm,yyyy

    OK>OK

    New rule>Use a formula to determine which cells to format

    Enter this formula in the box below:

    =OR(AND(DAY(A1)>=4,DAY(A1)<=20),AND(DAY(A1)>=24,DAY(A1)<=30))

    Click the Format button
    Select the Number tab>Custom
    From the drop down list on the right select the code:

    d"th day of "mmmm,yyyy

    OK out

    Try it out. Enter some date in cell A1 like 7/5/2013. Excel will display that date as 5th day of July,2013. The cell is still a numeric date value.

    The cell can also contain a formula that returns a date, for example:

    =TODAY()
    =EDATE(NOW(),12)

+ 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