Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Malcolm Agingwell
 
Posts: n/a
Default Format date in excel 2000 like '31st January 2005'

Trying to set up field in Excel Data Source file so that the current date can
be input in letters typed in this format '31st January 2005'

Is it possible or am I stuck with dd/mmm/yy format?
  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Wed, 29 Jun 2005 02:45:01 -0700, "Malcolm Agingwell"
wrote:

Trying to set up field in Excel Data Source file so that the current date can
be input in letters typed in this format '31st January 2005'

Is it possible or am I stuck with dd/mmm/yy format?


You can certainly type in or input the date in that format. It will be
interpreted as TEXT by Excel.

Perhaps if you explained your problem in more detail ???

Entering a date in that format seems rather inefficient compared to other
methods.
--ron
  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

You can type in

31 January 2005

and display the same format : dd mmmm yyyy

but you can't use the ordinal to input data without using a VBA event
macro.


In article ,
"Malcolm Agingwell"
wrote:

Trying to set up field in Excel Data Source file so that the current date can
be input in letters typed in this format '31st January 2005'

Is it possible or am I stuck with dd/mmm/yy format?

  #4   Report Post  
Flintstone
 
Posts: n/a
Default


Hello Malcolm:

I don’t know if this will work with Excel 2000 but try this.

The date goes in cell A1 and the day ( =DAY(A1) ) goes in cell A2.

=A1&IF(AND(MOD(A1,100)=10,MOD(A1,100)<=14),"th",C HOOSE(MOD(A1,10)+1,"th","st","nd","rd","th","th"," th","th","th","th"))&"
"&TEXT(A2,"mmmm yyyy")

I got this from this web site listed under excel tips.

I hope this helps.

Matt


--
Flintstone
------------------------------------------------------------------------
Flintstone's Profile: http://www.excelforum.com/member.php...o&userid=15310
View this thread: http://www.excelforum.com/showthread...hreadid=383056

  #5   Report Post  
Paul D. Simon
 
Posts: n/a
Default

Hi Matt,

Just a slight alteration to your formula that will also eliminate the
need for A2. (It may show below as wrapped to several lines.
Obviously, you'd enter it all on 1 line.)


=DAY(A1)&IF(OR(AND(MOD(DAY(A1),100)=4,MOD(DAY(A1) ,100)
<=20),AND(MOD(DAY(A1),100)=24,MOD(DAY(A1),100)<=3 0)),"th",
CHOOSE(MOD(DAY(A1),10),"st","nd","rd","th","th","t h","th","th","th"))&"
"&TEXT(A1,"mmmm yyyy")


Paul



Reply
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
how to merge a date file into an excel format massachusetts Excel Discussion (Misc queries) 1 April 26th 05 02:41 AM
How do I report a Date Format bug in Excel 2003 to Microsoft ? KymY Excel Discussion (Misc queries) 1 April 6th 05 12:45 PM
Converting a date in Excel 2002 to a Year/Quarter format Jim Excel Worksheet Functions 2 January 10th 05 07:49 PM
Why can't I format cells in Excel 2000? Larry Excel Discussion (Misc queries) 1 January 4th 05 04:34 PM
How do I unhide the cell format function in Excel 2000 Len Melcer Excel Worksheet Functions 2 December 15th 04 06:49 PM


All times are GMT +1. The time now is 12:35 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"