Automatically duplicate variables

D

Dina

I have a large number of variables (header columns) in excel that I need
duplicated with additional versions (ex: 4) - is there a way to do so
automatically in Excel?

Example:
Header Columns: Name | Age | Address | Account Number | etc etc

Need:
Header Columns: Name_1|Name_2|Name_3|Name_4|Age_1|Age_2|Age_3|Age_4| etc
etc....

Can this be done automatically?

Many thanks for your help
 
B

Ben McBen

In many ways!
1. Excel is pretty smart - If you enter "Name_1" and then drag the cell
handle over (fill) then it will realise thet 1 needs incrementing and do it
for you.

2. You could use functions:

= "Name_" & column()-2

Assumin your are in column C, when dragged accross it will increment

3. Macros - limitless posibilities
 

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