?
Solved

excel spreadsheet macro

Posted on 2014-09-10
2
Medium Priority
?
157 Views
Last Modified: 2014-09-25
I need help with trying to automate columns of a spreadsheet. For example I am needing to name each row that has existing data. On some excel documents I need to number automatically to 30 and on others I only need to name 10 and on others maybe 20, Here is an example


job1
job2
job3
job4
job5
job6
job1
job2
job3
job4
job5
job6
 
I would like to be able to select each row and have this automated

job1
job2
job3
job4
job1
job2
job3
job4
job1
job2
job3
job4

Over and over again until the last row with data. I appreciate any type of help thanks
0
Comment
Question by:techdrive
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
[ fanpages ] earned 2000 total points
ID: 40316277
Sorry, I need some clarification.

I see that your first example has two sets of six repeated "names" ("job1" to "job6"; twice).  Presumably 12 rows of data.
I can also see that your second example has three sets of four repeated "names" ("job1" to "job4"; three times).

How are the number of repetitions to be specified?  That is, how are you going to indicate which worksheets ("excel documents" using your terminology above) automatically number to 10, to 20, or to 30?

In the first example, did you select rows 1 to 6, & in the second; 1 to 4?

Also, is the column where the repeated automated "names" generation going to be column [ A ]?
Where does the other data exist in the same worksheet to indicate the extent of the automatic generation of "names"?  Is this column [ B ], or to the "last used" row (regardless of column)?

Finally, if the selection (of six, or of four, in your two examples) does not divide equally into the number of available rows (10, 20, or 30), should the last 'set' simply stop mid-flow of automated "names"?

Thank you for your further expansion on your requirements.
0
 

Author Comment

by:techdrive
ID: 40344941
sorry I took so long to answer I found the answer I was looking for.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question