#1   Report Post  
T
 
Posts: n/a
Default Dates in Excel

If a date has been entered 20051103, is there a way to convert it to
11/03/2005?
  #2   Report Post  
Nick Hodge
 
Posts: n/a
Default Dates in Excel

T

Presuming data in column A, use a new empty column and enter

=DATEVALUE(MID(A1,5,2)&"/"&RIGHT(A1,2)&"/"&LEFT(A1,4))

and format the resulting number as a sate, via FormatCells...Number

You can then copy these new dates and Paste Special...Values and number
formats over the old ones

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"T" wrote in message
...
If a date has been entered 20051103, is there a way to convert it to
11/03/2005?



  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default Dates in Excel

On Thu, 3 Nov 2005 14:26:12 -0800, "T" wrote:

If a date has been entered 20051103, is there a way to convert it to
11/03/2005?


=DATE(INT(A1/10^4),INT(MOD(A1,10^4)/100),MOD(A1,100))

or

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

The first will convert "illegal" dates, such as 20050132 -- 1 Feb 2005

The second will give an error for "illegal" dates.
--ron
  #4   Report Post  
RagDyer
 
Posts: n/a
Default Dates in Excel

Select the column containing the dates, then:
<Data <TextToColumns <Next <Next,
Click on "Date", and expand the date window,
And choose "YMD",
Then <Finish

This will give you "legal" XL dates,
Which you can the format any way you wish, if they didn't happen to come up
with the exact display that you wanted.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



"T" wrote in message
...
If a date has been entered 20051103, is there a way to convert it to
11/03/2005?


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
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
How do I generate random numbers using dates in excel? celia w Excel Worksheet Functions 1 April 20th 05 08:05 PM
Ensure dates imported into Excel 2003 are shown in DD/MM/YYY form. KymY Excel Discussion (Misc queries) 3 February 11th 05 02:28 PM
dates in Excel 2003 [email protected] Excel Discussion (Misc queries) 3 January 4th 05 11:04 PM


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