Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Data being corrupted by excels automatic date recognition re-forma


I often cut and paste information from web pages into excel so that I can
manipulate that data. However if the data has numbers seperated by "-" then
it is automatically identified as a date and converted into the excel date
format. This corrupts the underlying data.

Eg. a cell on the web reads "5-22". This gets automatically converted to
1/5/1922 when pasted into a cell (pre-formated as text)l and the format
automatically changed to "custom" "mmm-yy" and displayed as "May-22". By this
stage it's too late to manually convert it back to text as the underlying
value has been changed into a date format of "44682".

Can anyone suggest a solution to this for me...
Please note the following...
I have no control over the starting data so cannot insert characters into it.
Some of the fields within the data are text including spaces, "-", ".", etc

Thanks in advance PaddyD.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Data being corrupted by excels automatic date recognition re-forma

when pasted into a cell (pre-formated as text)

OK, pre-format the destination cells *and* instead of doing a paste do a
paste specialtext.

However!!!

If the data being copy/pasted is numeric then it will also get pasted as
TEXT but converting text numbers to numeric numbers is a lot easier than
dealing with data converted to dates!

--
Biff
Microsoft Excel MVP


"PaddyD." wrote in message
...

I often cut and paste information from web pages into excel so that I can
manipulate that data. However if the data has numbers seperated by "-"
then
it is automatically identified as a date and converted into the excel date
format. This corrupts the underlying data.

Eg. a cell on the web reads "5-22". This gets automatically converted to
1/5/1922 when pasted into a cell (pre-formated as text)l and the format
automatically changed to "custom" "mmm-yy" and displayed as "May-22". By
this
stage it's too late to manually convert it back to text as the underlying
value has been changed into a date format of "44682".

Can anyone suggest a solution to this for me...
Please note the following...
I have no control over the starting data so cannot insert characters into
it.
Some of the fields within the data are text including spaces, "-", ".",
etc

Thanks in advance PaddyD.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 118
Default Data being corrupted by excels automatic date recognition re-forma

Paddy,
Try changing your "Short date format" to "M/d". To do this:
1. Control Panel
2. If Category View -- Date, Time, Language and Regional Options
-- Regional and Language Options
If Classic View -- Regional and Language Options
3. Regional Options Tab -- Customize...
4. Date Tab -- Short date formate: -- M/d
(please note, M/d is not a standard option so you will have to type
it in but you will see that the "Short date sample:" changes to
reflect what you have asked for)
5. Apply

Now when you paste 5-22 into Excel it will recognise a date Excel will
recognise it as 22 May 2009 (it uses the current year when no year is
specified). You can manually change the year in the formula bar.

Be sure that once you are finished you change the date format back to
something with which you are familiar.

If this helps, please click "Yes"
<<<<<<<<<<<


"PaddyD." wrote:


I often cut and paste information from web pages into excel so that I can
manipulate that data. However if the data has numbers seperated by "-" then
it is automatically identified as a date and converted into the excel date
format. This corrupts the underlying data.

Eg. a cell on the web reads "5-22". This gets automatically converted to
1/5/1922 when pasted into a cell (pre-formated as text)l and the format
automatically changed to "custom" "mmm-yy" and displayed as "May-22". By this
stage it's too late to manually convert it back to text as the underlying
value has been changed into a date format of "44682".

Can anyone suggest a solution to this for me...
Please note the following...
I have no control over the starting data so cannot insert characters into it.
Some of the fields within the data are text including spaces, "-", ".", etc

Thanks in advance PaddyD.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Data being corrupted by excels automatic date recognition re-forma

If you're only copying a few pieces of data, you could copy and paste into the
formulabar (format the cells as text first). You'll have to do each cell
individually.

If you have lots, you may want to paste into a text file (*.txt), then use
File|Open (or data|Import external data|Import data (in xl2003 menus)).

You'll be prompted with a text to columns wizard and you'll be able to specify
how each field should be treated.

Then (if you used File|Open), you can copy|Paste to its final location.

PaddyD. wrote:

I often cut and paste information from web pages into excel so that I can
manipulate that data. However if the data has numbers seperated by "-" then
it is automatically identified as a date and converted into the excel date
format. This corrupts the underlying data.

Eg. a cell on the web reads "5-22". This gets automatically converted to
1/5/1922 when pasted into a cell (pre-formated as text)l and the format
automatically changed to "custom" "mmm-yy" and displayed as "May-22". By this
stage it's too late to manually convert it back to text as the underlying
value has been changed into a date format of "44682".

Can anyone suggest a solution to this for me...
Please note the following...
I have no control over the starting data so cannot insert characters into it.
Some of the fields within the data are text including spaces, "-", ".", etc

Thanks in advance PaddyD.


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Data being corrupted by excels automatic date recognition re-forma

Instead of cutting and pasting you could DataImport External DataNew Web
Query.

Enter the URL and go to the webpage.

Select the data by clicking on the yellow arrow(s).

In Options, diasble date recognition.

Import.


Gord Dibben MS Excel MVP


On Tue, 27 Oct 2009 21:04:04 -0700, PaddyD.
wrote:


I often cut and paste information from web pages into excel so that I can
manipulate that data. However if the data has numbers seperated by "-" then
it is automatically identified as a date and converted into the excel date
format. This corrupts the underlying data.

Eg. a cell on the web reads "5-22". This gets automatically converted to
1/5/1922 when pasted into a cell (pre-formated as text)l and the format
automatically changed to "custom" "mmm-yy" and displayed as "May-22". By this
stage it's too late to manually convert it back to text as the underlying
value has been changed into a date format of "44682".

Can anyone suggest a solution to this for me...
Please note the following...
I have no control over the starting data so cannot insert characters into it.
Some of the fields within the data are text including spaces, "-", ".", etc

Thanks in advance PaddyD.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Data being corrupted by excels automatic date recognition re-f



"T. Valko" wrote:

when pasted into a cell (pre-formated as text)


OK, pre-format the destination cells *and* instead of doing a paste do a
paste specialtext.

However!!!

If the data being copy/pasted is numeric then it will also get pasted as
TEXT but converting text numbers to numeric numbers is a lot easier than
dealing with data converted to dates!

--
Biff
Microsoft Excel MVP


Hi Biff, thanks your reply.
The problem is i'm pasting in tables and if i past in using Paste
SpecialText it only goes into one column. I can't then split this as some of
the table fields are open text format and I can't specify a meaningful
delimiter...

Paddy.
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Data being corrupted by excels automatic date recognition re-f

Ok, well, try one of the other methods in the other replies.

--
Biff
Microsoft Excel MVP


"PaddyD." wrote in message
...


"T. Valko" wrote:

when pasted into a cell (pre-formated as text)


OK, pre-format the destination cells *and* instead of doing a paste do a
paste specialtext.

However!!!

If the data being copy/pasted is numeric then it will also get pasted as
TEXT but converting text numbers to numeric numbers is a lot easier than
dealing with data converted to dates!

--
Biff
Microsoft Excel MVP


Hi Biff, thanks your reply.
The problem is i'm pasting in tables and if i past in using Paste
SpecialText it only goes into one column. I can't then split this as some
of
the table fields are open text format and I can't specify a meaningful
delimiter...

Paddy.



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
HI, I want to 5-9 as age group but it comes as 05 sept date forma mastermind[_2_] New Users to Excel 1 September 17th 07 11:11 PM
date recognition problem Chandler Excel Worksheet Functions 4 September 3rd 07 09:16 AM
Automatic copy recognition in columns Brymor Excel Discussion (Misc queries) 2 December 5th 06 12:43 PM
Copying Data forma website gunny1979 Excel Discussion (Misc queries) 0 April 18th 06 03:06 PM
How do I compare output data from 2 pivot tables in a graph forma. Doobi Charts and Charting in Excel 2 February 7th 05 12:36 AM


All times are GMT +1. The time now is 04:37 AM.

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"