D
dan graziano
Hi,
I have an excel worksheet which has the following field headings for
sales data which start on row 6 of the worksheet:
company country 1980 1983 1984 1987 1988 etc.
Pepsi USA 100 200 333 224 298
The years start at column 3. In the final data set, there actually
should be a column and year field heading for each year from 1980 to
2000. However, in many worksheets the years included are irregular with
years skipped in-between such as above.
How would be the best way to macro automate so that the computer
automatically inserts a column and field heading whenever there is a
year missing to make a full series from 1980 to 2000?
For example, the above data set would be converted to:
company country 1980 1981 1982 1983 1984 etc. to 2000
Pepsi USA 100 200 333
Thanks and best regards,
Dan
I have an excel worksheet which has the following field headings for
sales data which start on row 6 of the worksheet:
company country 1980 1983 1984 1987 1988 etc.
Pepsi USA 100 200 333 224 298
The years start at column 3. In the final data set, there actually
should be a column and year field heading for each year from 1980 to
2000. However, in many worksheets the years included are irregular with
years skipped in-between such as above.
How would be the best way to macro automate so that the computer
automatically inserts a column and field heading whenever there is a
year missing to make a full series from 1980 to 2000?
For example, the above data set would be converted to:
company country 1980 1981 1982 1983 1984 etc. to 2000
Pepsi USA 100 200 333
Thanks and best regards,
Dan