Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to truncate date

I get query data in the mm/dd/yyyy format. The YYYY starts out being every
year imaginable. I need to change long columns of cells so that the /yyyy
reads 2006. How do I do this?

Example (raw data)
01/15/2003
12/25/2005
03/19/1999

desired data
01/15/2006
12/25/2006
03/19/2006
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default How to truncate date

Hi

Assuming the dates are in column A, in another column enter
=DATE(2006,MONTH(A1),DAY(A1))
and copy down.

To "fix" the values, copy the column of data then Paste SpecialValues.
--
Regards

Roger Govier


"Got my CWC" <Got my CWC @discussions.microsoft.com wrote in message
...
I get query data in the mm/dd/yyyy format. The YYYY starts out being
every
year imaginable. I need to change long columns of cells so that the
/yyyy
reads 2006. How do I do this?

Example (raw data)
01/15/2003
12/25/2005
03/19/1999

desired data
01/15/2006
12/25/2006
03/19/2006



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
~L ~L is offline
external usenet poster
 
Posts: 177
Default How to truncate date

I used =text(A1,mm/dd) &"/2006". To convert it to a value, copy, paste
special and choose 'values'.

"Got my CWC" wrote:

I get query data in the mm/dd/yyyy format. The YYYY starts out being every
year imaginable. I need to change long columns of cells so that the /yyyy
reads 2006. How do I do this?

Example (raw data)
01/15/2003
12/25/2005
03/19/1999

desired data
01/15/2006
12/25/2006
03/19/2006

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
IF and Date Functions Christ4 Excel Worksheet Functions 3 August 11th 06 04:18 AM
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
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
Another Date issue. TimM Excel Worksheet Functions 1 November 17th 05 01:58 AM


All times are GMT +1. The time now is 09:15 PM.

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"