Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.worksheet.functions
DC Gringo
 
Posts: n/a
Default date conversion after pasting

I am pasting two columns into Excel...the first is supposed to be a date and
is in format YYYYMMDD, the second a simple integer...here's an example:

Date, Value

--------------------

20050120, 5
20051105, 6
20060213, 4


Each time I copy it into Excel and try to format it as a date, it gives me
only "############"

How can I convert this to show and act like a date so I can chart with it?

_____
DC G


  #2   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default date conversion after pasting

I assume that the data is in two columns and that the comma in your
example is there just to separate the two items. If this is the case
then insert a new column B and in B1 enter the formula;

=VALUE(RIGHT(A1,2)&"/"&MID(A1,5,2)&"/"&LEFT(A1,4))

Format the cell as Date (dd/mm/yyyy) then copy down for as many values
as you have in column A. Then highlight the formulae in column B,
<copy, Edit | Paste Special | Values (check) and OK, followed by
<enter. Then you can delete column A.

Hope this helps.

Pete

  #3   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default date conversion after pasting

Hi

One way
Mark the column of date cells.
DataText to ColumnsNextNext click Date radio buttonSelect YMD as
formatFinish
Widen the column so that you can see the date.
Works fine with UK Regional settings.

--
Regards

Roger Govier


"DC Gringo" wrote in message
...
I am pasting two columns into Excel...the first is supposed to be a
date and is in format YYYYMMDD, the second a simple integer...here's an
example:

Date, Value

--------------------

20050120, 5
20051105, 6
20060213, 4


Each time I copy it into Excel and try to format it as a date, it
gives me only "############"

How can I convert this to show and act like a date so I can chart with
it?

_____
DC G



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
pasting data from a website changes text to date stebro Excel Discussion (Misc queries) 8 August 12th 06 08:39 PM
Insert Automatic, Non-Updating Date Stamp Ken Zenachon Excel Discussion (Misc queries) 8 January 18th 06 06:52 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Date conversion Kristiaaan Excel Discussion (Misc queries) 5 July 30th 05 05:49 AM
Disable automatic date conversion feature iceseal Excel Worksheet Functions 2 November 12th 04 03:04 AM


All times are GMT +1. The time now is 08:40 PM.

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"