Prev Previous Post   Next Post Next
  #8   Report Post  
adodson
 
Posts: n/a
Default

nevermind. I got it playing around deleting different parts and this worked:

=TEXT(D37,"") & DAY(D37)
&IF(AND(MOD(DAY(D37),100)=10,MOD(DAY(D37),100)<=1 4),"th",

CHOOSE(MOD(DAY(D37),10)+1,"th","st","nd","rd","th" ,"th","th","th","th","th"))

"adodson" wrote:

I'm trying to modify the code you helped locate to show only the ordinal
number from the date, not the month, year, day of week, etc. Any ideas how
to incorporate this in?

"Dave Peterson" wrote:

Maybe you could use a helper cell with a formula.

Chip Pearson has one at:
http://www.cpearson.com/excel/ordinal.htm

If A1 contains the date:
=TEXT(A1,"DDDD ") & DAY(A1)
&IF(AND(MOD(DAY(A1),100)=10,MOD(DAY(A1),100)<=14) ,"th",
CHOOSE(MOD(DAY(A1),10)+1,"th","st","nd","rd","th", "th","th","th","th","th"))
& TEXT(A1," MMMM YYYY")

All one cell.

StuartTheBrit wrote:

I would like Excel and Access to display dates in the following format:
Wednesday 3rd August 2005

Currently, I can only get a display of :
Wednesday 3 August 2005 using dddd d mmmm yyyy

Grateful for help getting 3rd instead of 3 displayed.

Many thanks

Stuart


--

Dave Peterson

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compare dates (one cell not in date format) craigcsb Excel Discussion (Misc queries) 5 June 28th 05 05:07 PM
How do I keep the date from changing format in a mail merge? Brynn Wilson Excel Discussion (Misc queries) 1 June 9th 05 06:44 PM
Date format Jean-Francois Boucher Excel Discussion (Misc queries) 2 February 22nd 05 04:35 PM
USING THE DATE FORMAT IN EXCEL teach Excel Discussion (Misc queries) 3 December 14th 04 11:55 PM
Date format collapses diagram Richard H Excel Discussion (Misc queries) 3 December 14th 04 11:08 PM


All times are GMT +1. The time now is 04:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"