Help a newbie: Change year in dates?

L

listener

I created a spreadseet last year that I want to reuse each year.
Column A, cells 1 through 365 contain dates thus:

01/01/03
01/02/03
01/03/03
etc.
..
..
all the way to

12/31/03


I've made a copy of the spreadsheet and cleared out the data. I now
want to use it for this year. How do I change the xx/xx /03's to
xx/xx/04's globally.


Thanks.
 
A

Arvi Laanemets

Hi

Create a named range p.e. SpreadsheetYear, like
SpreadsheetYear=2004
or
SpreadsheetYear=SetUp!$B$1
where the year is entered into cell B1 on sheet SetUp

In your table, enter into cell A1 the formula
=IF(YEAR(DATE(SpreadsheetYear,1,ROW(A1)))=SpreadsheetYear,DATE(SpreadsheetYe
ar,1,ROW(A1)),"")
and copy it down until A366 (last included to cover leap years)

Now, whenever you want to change the year the spreadsheet is bound, change
the year stored in SetUp sheet or in named range.
 
P

Peo Sjoblom

put 365 in an empty cell, copy, select A1:A365, do edit>paste special and
select add
note that 2004 is a leap year so A365 will be 12/30/04 so you need to add
one more date
also note when you paste the addition the dates will turn to date serial
numbers so you need to select the range
and format as dates again.

Having said that it is very easy to make a date column that will adapt
easier
in A1 put the first date, in A2 put

=A1+1


then copy down, next time you only have to change the first date and if you
want you can in cell A366 put this formula

=IF(DAY(DATE(YEAR(A1),3,0))=29, A366+1,"")

that way your dates will adapt to leap years
 
D

David McRitchie

If by spam trap you mean automatic reporting of
spammers (blackhole) then it has no business being your
reply email address. If it is a valid email address but
not yours it also has no business being there.
 
A

Arvi Laanemets

Hi

It's simply a specially created real e-mail address with rules, that all
incoming mails are immediately deleted


Arvi Laanemets
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top