A
Arvi Laanemets
Hi
Enter into some sheet the values for starting and last years
Define those cells as named ranges (Insert.Name.Define) p.e. FirstYear and
LastYear
Into cell where you want your column names (as year numbers) to start, p.e.
C1, enter the formula
=IF(FirstYear+COLUMN(C1)-COLUMN($C$1)>LastYear,"",FirstYear+COLUMN(C1)-COLUM
N($C$1))
(adjust the cell reference according your design) and copy it to right as
much as you think you need.
Enter into some sheet the values for starting and last years
Define those cells as named ranges (Insert.Name.Define) p.e. FirstYear and
LastYear
Into cell where you want your column names (as year numbers) to start, p.e.
C1, enter the formula
=IF(FirstYear+COLUMN(C1)-COLUMN($C$1)>LastYear,"",FirstYear+COLUMN(C1)-COLUM
N($C$1))
(adjust the cell reference according your design) and copy it to right as
much as you think you need.