Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Why this paste result?

I have a text file containing lines
3-01
3-02
3-03
etc

On copy/pasting these into an empty column (in Excel 2002) they were
displayed as

03-Jan
03-Feb
03-Mar
etc

First, I don't really understand why. That column was not formatted
for dates. More important, I don't see why specifying General or Text
doesn't now get them displayed correctly?

Any advice would be appreciated please.

--
Terry, East Grinstead, UK
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Why this paste result?

Hi Terry,

Am Thu, 09 Oct 2014 11:35:03 +0100 schrieb Terry Pinnell:

I have a text file containing lines
3-01
3-02
3-03
etc

On copy/pasting these into an empty column (in Excel 2002) they were
displayed as

03-Jan
03-Feb
03-Mar
etc


3-01 is the short style to write a date.
Format your cells as text before pasting or open Excel = Data =
External Data from Text and choose in the 3. step of the assistent for
the expected column the format "Text"


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,514
Default Why this paste result?

I have a text file containing lines
3-01
3-02
3-03
etc

On copy/pasting these into an empty column (in Excel 2002) they were
displayed as

03-Jan
03-Feb
03-Mar
etc

First, I don't really understand why. That column was not formatted
for dates. More important, I don't see why specifying General or Text
doesn't now get them displayed correctly?

Any advice would be appreciated please.


Cell format is 'General' by default and so Excel interprets input as
such. Since your text is valid 'date' format in Excel, it gets
interpreted as a date.

When Excel pastes text into a cell already formatted as text then it
displays same as in the text format. Changing cell format *after*
pasting does nothing. Setting cell format to 'Text' *before* pasting
results in what you want.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,514
Default Why this paste result?

Since your OS is XP (or earlier), the system date format (default)
is...

d-m-y

On later OSs, this has been changed to...

m-d-y

Note that year is assumed as the current calendar year.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Why this paste result?

Claus Busch wrote:

Hi Terry,

Am Thu, 09 Oct 2014 11:35:03 +0100 schrieb Terry Pinnell:

I have a text file containing lines
3-01
3-02
3-03
etc

On copy/pasting these into an empty column (in Excel 2002) they were
displayed as

03-Jan
03-Feb
03-Mar
etc


3-01 is the short style to write a date.
Format your cells as text before pasting or open Excel = Data =
External Data from Text and choose in the 3. step of the assistent for
the expected column the format "Text"


Regards
Claus B.


Thanks both, appreciate the fast replies.

--
Terry, East Grinstead, UK
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
wrong result Paste within same row while filtered condition applie Sherly New Users to Excel 1 December 12th 09 04:55 PM
Strange cut and paste result between worksheets elf27 Excel Programming 6 March 16th 09 03:56 AM
how do you match data and paste result in a perticular cell? KTN Excel Worksheet Functions 3 November 6th 08 07:33 PM
Macro to look for where vLookup has a result then paste value Aposto Excel Discussion (Misc queries) 5 April 30th 08 04:38 PM
Copy Paste of Formula Produces Incorrect Result JLa Excel Discussion (Misc queries) 1 May 17th 05 06:56 PM


All times are GMT +1. The time now is 10:00 AM.

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

About Us

"It's about Microsoft Excel"