#1   Report Post  
AG
 
Posts: n/a
Default Date format

I want to have a column to be my date field. I want to be able to enter for
instance 09072005 or 90705 I would like for Excel to be able to convert it to
read 09/07/2005. If I format my cell to Date it reads as ########, If I
leave my cell as General it excepts the number but does not have the slashes.
Thanks for your help.
ANN

--
AG
  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 8 Sep 2005 10:35:03 -0700, "AG" wrote:

I want to have a column to be my date field. I want to be able to enter for
instance 09072005 or 90705 I would like for Excel to be able to convert it to
read 09/07/2005. If I format my cell to Date it reads as ########, If I
leave my cell as General it excepts the number but does not have the slashes.
Thanks for your help.
ANN



You will need to either use VBA to convert it, or enter the data in one column
and convert it with a formula in another.

The formula would be (with your entry in A1):

=--TEXT(A1,"00\/00\/0000") or
=--TEXT(A1,"00\/00\/00")

(depending on which format you decide to use for entry)

and format the cell as a Date


--ron
  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

You could do all your data entry and then
data|text to columns
fixed width
(erase any lines that excel guesses)

choose mdy (or dmy???) as the date format.

Chip Pearson has some VBA code that could do what you want at:
http://www.cpearson.com/excel/DateTimeEntry.htm



AG wrote:

I want to have a column to be my date field. I want to be able to enter for
instance 09072005 or 90705 I would like for Excel to be able to convert it to
read 09/07/2005. If I format my cell to Date it reads as ########, If I
leave my cell as General it excepts the number but does not have the slashes.
Thanks for your help.
ANN

--
AG


--

Dave Peterson
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
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 03:23 AM.

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

About Us

"It's about Microsoft Excel"