A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Converting e.g. 28-07-2004 to recognised date format



 
 
Thread Tools Display Modes
  #1  
Old August 20th, 2004, 06:14 PM
claytorm
external usenet poster
 
Posts: n/a
Default Converting e.g. 28-07-2004 to recognised date format

Hello

I've got a column full dates in a non standard format, like below. How
can I convert these to an excel recognised format?

28-07-2004_
30-07-2003_
31-07-2002_
01-08-2001_
31-07-2000_
02-08-1999_
03-08-1998_
04-08-1997_
29-07-1996_
17-07-1995_

Thanks,

Bertie


---
Message posted from http://www.ExcelForum.com/

  #2  
Old August 20th, 2004, 06:59 PM
Biff
external usenet poster
 
Posts: n/a
Default

Hi Bertie!

Here's one way:

Use a helper column and this formula:

=DATE(MID(A1,7,4),MID(A1,4,2),LEFT(A1,2))

Format to the date style that you want. then you could
delete the orginal list if you so desire.

Biff

-----Original Message-----
Hello

I've got a column full dates in a non standard format,

like below. How
can I convert these to an excel recognised format?

28-07-2004_
30-07-2003_
31-07-2002_
01-08-2001_
31-07-2000_
02-08-1999_
03-08-1998_
04-08-1997_
29-07-1996_
17-07-1995_

Thanks,

Bertie


---
Message posted from http://www.ExcelForum.com/

.

  #3  
Old August 20th, 2004, 07:01 PM
Chip Pearson
external usenet poster
 
Posts: n/a
Default

You can use a formula like

=DATE(MID(A1,7,4),MID(A1,4,2),LEFT(A1,2))


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"claytorm " wrote in
message ...
Hello

I've got a column full dates in a non standard format, like

below. How
can I convert these to an excel recognised format?

28-07-2004_
30-07-2003_
31-07-2002_
01-08-2001_
31-07-2000_
02-08-1999_
03-08-1998_
04-08-1997_
29-07-1996_
17-07-1995_

Thanks,

Bertie


---
Message posted from http://www.ExcelForum.com/



  #4  
Old August 20th, 2004, 07:03 PM
Ron Rosenfeld
external usenet poster
 
Posts: n/a
Default

On Fri, 20 Aug 2004 12:14:54 -0500, claytorm
wrote:

I've got a column full dates in a non standard format, like below. How
can I convert these to an excel recognised format?

28-07-2004_
30-07-2003_
31-07-2002_


=DATE(MID(A1,7,4),MID(A1,4,2),LEFT(A1,2))

will convert your data to an Excel date number.

Enter it into a blank column. Adjust A1 to reflect the proper location.
Copy/Drag down as needed. Format to taste.

Then do a copy/paste special values over the original data delete the helper
column.

If this is going to be a repetitive task, you could use a macro to convert the
data in place.


--ron
  #5  
Old August 20th, 2004, 07:26 PM
Biff
external usenet poster
 
Posts: n/a
Default

Ooops!

Don't delete that original list just yet!!!

If you want to delete it, first you must convert the
formulas to constants. Select the range of formulas then
do: CopyPaste SpecialValues.

Now you can safely delete the original list.

Here's an alternative method that does not require the use
of a helper column and formulas.

Use the Text To Columns feature in the Data menu.

Select the range of values.
Goto DataText to Columns
Select: Fixed width
Click Next
In the data preview section on the "ruler" click the hash
mark under the 10. This will insert a separator before the
last underscore in the string.
Click Next
In the column data format area, click Date and from the
dropdown select the format you want.
Click Finish.
Now you can just delete the column where the separated
underscore is.

Sounds "complicated" but it isn't and it takes only a few
seconds to accomplish.

Biff

-----Original Message-----
Hi Bertie!

Here's one way:

Use a helper column and this formula:

=DATE(MID(A1,7,4),MID(A1,4,2),LEFT(A1,2))

Format to the date style that you want. then you could
delete the orginal list if you so desire.

Biff

-----Original Message-----
Hello

I've got a column full dates in a non standard format,

like below. How
can I convert these to an excel recognised format?

28-07-2004_
30-07-2003_
31-07-2002_
01-08-2001_
31-07-2000_
02-08-1999_
03-08-1998_
04-08-1997_
29-07-1996_
17-07-1995_

Thanks,

Bertie


---
Message posted from http://www.ExcelForum.com/

.

.

  #6  
Old August 20th, 2004, 09:02 PM
Gord Dibben
external usenet poster
 
Posts: n/a
Default

Bertie

DataText to ColumnsNextNext "column data format"DateDMYFinish.

Gord Dibben Excel MVP

On Fri, 20 Aug 2004 12:14:54 -0500, claytorm
wrote:

Hello

I've got a column full dates in a non standard format, like below. How
can I convert these to an excel recognised format?

28-07-2004_
30-07-2003_
31-07-2002_
01-08-2001_
31-07-2000_
02-08-1999_
03-08-1998_
04-08-1997_
29-07-1996_
17-07-1995_

Thanks,

Bertie


---
Message posted from http://www.ExcelForum.com/


  #7  
Old August 20th, 2004, 10:01 PM
Dave Peterson
external usenet poster
 
Posts: n/a
Default

And divide that underscore character into another field and choose to skip that
one.

Gord Dibben wrote:

Bertie

DataText to ColumnsNextNext "column data format"DateDMYFinish.

Gord Dibben Excel MVP

On Fri, 20 Aug 2004 12:14:54 -0500, claytorm
wrote:

Hello

I've got a column full dates in a non standard format, like below. How
can I convert these to an excel recognised format?

28-07-2004_
30-07-2003_
31-07-2002_
01-08-2001_
31-07-2000_
02-08-1999_
03-08-1998_
04-08-1997_
29-07-1996_
17-07-1995_

Thanks,

Bertie


---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson

  #8  
Old August 20th, 2004, 10:57 PM
Gord Dibben
external usenet poster
 
Posts: n/a
Default

Dave

When I copied the data including underscore and sent it through T to T it
changed the data to dates and deleted/ignored the underscore character
automagically.

Gord

On Fri, 20 Aug 2004 16:01:06 -0500, Dave Peterson wrote:

And divide that underscore character into another field and choose to skip that
one.

Gord Dibben wrote:

Bertie

DataText to ColumnsNextNext "column data format"DateDMYFinish.

Gord Dibben Excel MVP

On Fri, 20 Aug 2004 12:14:54 -0500, claytorm
wrote:

Hello

I've got a column full dates in a non standard format, like below. How
can I convert these to an excel recognised format?

28-07-2004_
30-07-2003_
31-07-2002_
01-08-2001_
31-07-2000_
02-08-1999_
03-08-1998_
04-08-1997_
29-07-1996_
17-07-1995_

Thanks,

Bertie


---
Message posted from http://www.ExcelForum.com/


  #9  
Old August 20th, 2004, 11:43 PM
Dave Peterson
external usenet poster
 
Posts: n/a
Default

Ouch.

I knew I should have tested. (I know you did!)

But still not a bad tip if there's characters that are less forgiving. (back
pedaling as fast as I can!)

Gord Dibben wrote:

Dave

When I copied the data including underscore and sent it through T to T it
changed the data to dates and deleted/ignored the underscore character
automagically.

Gord

On Fri, 20 Aug 2004 16:01:06 -0500, Dave Peterson wrote:

And divide that underscore character into another field and choose to skip that
one.

Gord Dibben wrote:

Bertie

DataText to ColumnsNextNext "column data format"DateDMYFinish.

Gord Dibben Excel MVP

On Fri, 20 Aug 2004 12:14:54 -0500, claytorm
wrote:

Hello

I've got a column full dates in a non standard format, like below. How
can I convert these to an excel recognised format?

28-07-2004_
30-07-2003_
31-07-2002_
01-08-2001_
31-07-2000_
02-08-1999_
03-08-1998_
04-08-1997_
29-07-1996_
17-07-1995_

Thanks,

Bertie


---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson

  #10  
Old August 21st, 2004, 03:36 AM
Ron Rosenfeld
external usenet poster
 
Posts: n/a
Default

On Fri, 20 Aug 2004 14:57:42 -0700, Gord Dibben gorddibbATshawDOTca wrote:

When I copied the data including underscore and sent it through T to T it
changed the data to dates and deleted/ignored the underscore character
automagically.


Interesting. It did not do that here (Excel 2002). As a matter of fact, even
with T to C and setting the underscore as a separator, only some of the entries
were changed.


--ron
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Format Steve McKenna New Users 0 July 12th, 2004 01:18 PM
when import EXCEL to ACCESS, the date format excel column title changed... Amolin General Discussion 6 June 25th, 2004 08:56 AM
Unable to change date format kd Worksheet Functions 2 June 16th, 2004 05:57 PM
Date format YYYYMMDD John C. Das General Discussion 1 June 15th, 2004 12:17 AM
Formatting dates in Excel bernrunner15 New Users 4 May 11th, 2004 10:32 PM


All times are GMT +1. The time now is 07:32 AM.


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