+ Reply to Thread
Results 1 to 15 of 15

Dates with ST, TH, RD ND

  1. #1
    Registered User
    Join Date
    12-09-2013
    Location
    Lancashire, England
    MS-Off Ver
    Excel 2023
    Posts
    39

    Dates with ST, TH, RD ND

    When entering a date can this be done so it reads 1st, 2nd, 3rd etc for when we do a mail merge?

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dates with ST, TH, RD ND

    Please read your question again, and read it hrough our eyes (the forummembers you are willing to help you).

    Would you understand what the question is?

    Would you have all information to give an answer?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    12-09-2013
    Location
    Lancashire, England
    MS-Off Ver
    Excel 2023
    Posts
    39

    Re: Dates with ST, TH, RD ND

    When I enter a date for example 08/06/2014 can this be shown in the cell as 8th June 2014 the only way I can find this is 08 June 2014.

  4. #4
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Dates with ST, TH, RD ND

    Hi wjb1976,

    Hope this formula helps you :


    =TEXT(D1,"dddd, mmmm d")&MID("stndrdthstndrdthst",MATCH(DAY(D1),{1,2,3,4,21,22,23,24,31},1)*2-1,2)

    Where D1 is the cell where you enter Input value.


    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dates with ST, TH, RD ND

    It has to be in the same cel?

    I don't think that can be done with excel formula / format.

    Maybe it can be done with VBA.

    If it is possible to use another cell, i think i will be possible.

  6. #6
    Registered User
    Join Date
    12-09-2013
    Location
    Lancashire, England
    MS-Off Ver
    Excel 2023
    Posts
    39

    Re: Dates with ST, TH, RD ND

    Thank you for your help

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dates with ST, TH, RD ND

    @wjb1976

    It's an working solution for you?

    if so will you mark the question solved?

  8. #8
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Dates with ST, TH, RD ND

    Hi wjb1976,

    Made some changes in the formula, this will give output as expected :

    =TEXT(D1,"dd")&MID("stndrdthstndrdthst",MATCH(DAY(D1),{1,2,3,4,21,22,23,24,31},1),2)&" "&TEXT(D1,"mmmm yyyy")


    Regards,
    Paresh J

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Dates with ST, TH, RD ND

    tony valko shows how to do this with conditional formatting
    here
    http://www.excelforum.com/tips-and-t...-or-later.html
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Dates with ST, TH, RD ND

    Pareshj, there are a couple of bugs in your formula. It should read:

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




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  11. #11
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Dates with ST, TH, RD ND

    Hi,


    Yes, I just figured out that, but formula posted in previous reply is working fine.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Dates with ST, TH, RD ND

    It is. It's just when you switched the order round that it went a bit odd. A good piece of work, though!

  13. #13
    Registered User
    Join Date
    12-09-2013
    Location
    Lancashire, England
    MS-Off Ver
    Excel 2023
    Posts
    39

    Re: Dates with ST, TH, RD ND

    Could this include the day of the week please?
    Quote Originally Posted by Glenn Kennedy View Post
    Pareshj, there are a couple of bugs in your formula. It should read:

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

  14. #14
    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: Dates with ST, TH, RD ND

    =TEXT(A1,"ddd d") & ...
    Entia non sunt multiplicanda sine necessitate

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Dates with ST, TH, RD ND

    Shg... I didn't know you could do that!

+ 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. Check dates in range either same dates or different dates by formula
    By breadwinner in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-12-2013, 07:42 AM
  2. Replies: 6
    Last Post: 03-11-2013, 06:11 PM
  3. [SOLVED] Array of dates when tested shows no dates ......but there are dates
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-29-2012, 12:45 PM
  4. [SOLVED] Highlight Group of Dates if Dates Match List of other Dates
    By martinpgibson in forum Excel General
    Replies: 5
    Last Post: 10-24-2012, 08:14 PM
  5. [SOLVED] Auto filling dates based on previously entered dates and averaging numbers if dates equal
    By grambograham in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 03:21 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