Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Changing the year only in a date

I have several dates in a worksheet (eg, "01/01/01; 01/02/03; 02/04/05"). I
want to change only the dates for 2005. Is there an automatic way to do this
without going into each cell?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default Changing the year only in a date

You could test each cell to see if it is greater than 12/31/04
Than do what ever you want to change it

Excel sees 12/31/04 as 38352
Each day is = 1

If Cells(1, 1) 38352 Then
MsgBox Range("a1").Value + 5
End If


--
steveB

Remove "AYN" from email to respond
"cs_vision" wrote in message
...
I have several dates in a worksheet (eg, "01/01/01; 01/02/03; 02/04/05").
I
want to change only the dates for 2005. Is there an automatic way to do
this
without going into each cell?



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
Determine year over year date for comparison zeroscou Excel Worksheet Functions 3 March 6th 09 10:01 PM
Display date as 06/08 (m,yy) without year changing back to 07? Pam Watts Excel Discussion (Misc queries) 3 January 16th 07 07:32 PM
changing the year of a date zapszipszops Excel Worksheet Functions 2 April 14th 06 04:57 AM
a Month to Date and Year TD page in one sheet changing each day? Mark A. Fresh Excel Discussion (Misc queries) 1 January 5th 06 10:59 AM
Year-to-date year to date formula Philm Excel Worksheet Functions 1 October 7th 05 02:50 AM


All times are GMT +1. The time now is 07:52 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"