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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Text To Date Conversion



 
 
Thread Tools Display Modes
  #1  
Old March 9th, 2010, 01:23 AM posted to microsoft.public.excel.newusers
John Calder
external usenet poster
 
Posts: 192
Default Text To Date Conversion

Hi

I run Excel 2000

I download information from a mainframe into Excel.

In cell F5 the data looks like this: 19.11.2007

This is formatted as text and is left aligned.

When I try to reformat it to a date (19/11/2007) it does not change.

I would like to have a formula in cell N5 that changes the original data to
a datevalue. (eg: 19/11/2007)

Thanks
  #2  
Old March 9th, 2010, 02:20 AM posted to microsoft.public.excel.newusers
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Text To Date Conversion

If column F contains a lot of the "date" values, then you could:

Data|Text to columns
Fixed width (but don't have any separator lines!)
choose Date (dmy order)
and finish up

Then give the range the date format you like.

You could even do this for a single cell, but I'd just retype it as a real date.

John Calder wrote:

Hi

I run Excel 2000

I download information from a mainframe into Excel.

In cell F5 the data looks like this: 19.11.2007

This is formatted as text and is left aligned.

When I try to reformat it to a date (19/11/2007) it does not change.

I would like to have a formula in cell N5 that changes the original data to
a datevalue. (eg: 19/11/2007)

Thanks


--

Dave Peterson
  #3  
Old March 9th, 2010, 10:49 PM posted to microsoft.public.excel.newusers
John Calder
external usenet poster
 
Posts: 192
Default Text To Date Conversion

Dave

Thanks for your prompt resonse. The data I download from the mainframe is
usually about 500 lines so Ideally what I was after was a formula that would
be copied down the length of the dtata.

I ended up using the following:

=IF(F5="","",VALUE(LEFT(F5,2)&"/"&MID(F5,4,2)&"/"&RIGHT(F5,4)))

This seems so work OK. Thanks very much for all your help.






"Dave Peterson" wrote:

If column F contains a lot of the "date" values, then you could:

Data|Text to columns
Fixed width (but don't have any separator lines!)
choose Date (dmy order)
and finish up

Then give the range the date format you like.

You could even do this for a single cell, but I'd just retype it as a real date.

John Calder wrote:

Hi

I run Excel 2000

I download information from a mainframe into Excel.

In cell F5 the data looks like this: 19.11.2007

This is formatted as text and is left aligned.

When I try to reformat it to a date (19/11/2007) it does not change.

I would like to have a formula in cell N5 that changes the original data to
a datevalue. (eg: 19/11/2007)

Thanks


--

Dave Peterson
.

 




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


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