Disable Date Reconigtion

Steveo59

Board Regular
Joined
Oct 19, 2007
Messages
204
The only way i can import the data i need is copy and paste. The trouble is that when i do this column E is in fractions i.e 5/6 and this is always shown as a date. Is there anyway to disable this? I know you can disable date reconigtion if importing data from the web but is this possible using copy/paste ? please help as this is driving me nuts. Im using excel 2007.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
You'll need to format the sheet (or more likely just the relevant columns/cells) as Fraction before pasting in the data:

Format | Cells and choose fraction under the Number tab for formats.

AB
 
Upvote 0
Alexander Barnes thanks for the reply but it doesn't seem to work
 
Last edited:
Upvote 0
1) Where are you copying and pasting from? Another Excel sheet?

2) Since you describe this as importing data, is the data coming initially from another source besides Excel?


Regards
 
Upvote 0
When you paste it do you get the Paste Options smart tag appearing? If so step through the text import wizard and specify a Text format.
 
Upvote 0
If there are no options before pasting and formatting the cells prior to import doesn't work you could, if the import forces a recalculation of the sheet, you could try a VBA solution (that you wouldn't necessarily see take place)

Right click on the sheet tab name in to which the data is imported and select View Code, paste into that sheet the below:

Code:
Private Sub Worksheet_Calculate()
Columns(3).NumberFormat = "0.00000"
End Sub

Change 3 (Column C) to be whichever column is affected and the number format to match your own criteria.

If the import doesn't invoke a calculation you could think about adding a dummy cell that links to the first cell that will be populated with a decimal using something like 1*cellref --> this should then fire the calculation event and format the column automatically - ie before you really see it.

I hope that helps.
 
Upvote 0
could you post up some samples (post import pre-reformat) and also specifiy where they reside in terms of column reference etc...

also - what exactly is it that you are importing from email and how are you importing data ?
 
Upvote 0
I have seen the data and can confirm that the data comes from an external website which when imported as text/unicode/html will always change the values to a date (losing the "original" text string -- not a number)

To get around this:

Prior to importing set Column D format to be Custom: d-m
Prior to importing set Column E format to be Custom: d/m
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top