+ Reply to Thread
Results 1 to 4 of 4

Date formula, but need to add the day to this - can anyone help?

  1. #1
    Registered User
    Join Date
    12-22-2010
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    9

    Date formula, but need to add the day to this - can anyone help?

    Hi - I have the following formula:

    =(IF(INT(DAY(C9)/10)=1,DAY(C9)&"th ",IF(MOD((DAY(C9)),10)=1,DAY(C9)& "st ",IF(MOD((DAY(C9)),10)=2,DAY(C9)&"nd ",IF(MOD((DAY(C9)),10)=3,DAY(C9)&"rd ",DAY(C9)&"th ")))))&TEXT(C9,"mmmm ")&YEAR(C9)

    to change date in my spreadsheet to the format, say '2nd June 2012' - however, I would like to add the day to this too, so it would read 'Saturday 2nd June 2012'...

    Can anyone help??

    Many thanks & regards

    Jim

  2. #2
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    876

    Re: Date formula, but need to add the day to this - can anyone help?

    Format the cell to custom - dd-dddd-mmm-yy


  3. #3
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    876

    Re: Date formula, but need to add the day to this - can anyone help?

    if you are unsure on how, right click the cell ->format->Custom-> and type -> dd-dddd-mmm-mm


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

    Re: Date formula, but need to add the day to this - can anyone help?

    just add=text(c9,"dddd ")& in front
    or you could use the slightly shorter
    =TEXT(C9,"dddd d")&IF(AND(DAY(C9)>=10,DAY(C9)<=14),"th",CHOOSE(MOD(DAY(C9),10)+1,"th","st","nd","rd","th","th","th","th","th","th"))&TEXT(C9," mmmm yyyy")
    Last edited by martindwilson; 06-21-2012 at 11:35 AM.
    "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

+ 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