Change cell value Excel 2000 & 2003
You could use a formula like:
=DATE(YEAR(B2)+ROWS($B$1:$B1),MONTH(B2),DAY(B2))
in the worksheet itself.
The VBA function DateSerial works in much the same way as the worksheet
function Date, if you want a programmatical solution.
Hope this helps!
Richard
jfcby wrote:
Hello,
On worksheet2 B2 I have a date formated like 1/1/2006. I need to change
that value in yearly increments 1/1/2006, 1/1/2007, 1/1/2008 and so on.
How can the date be changed in yearly increments?
Thanks for your help in advance,
jfcby
|