Solved

excel spreadsheet macro

Posted on 2014-09-10
2
146 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
2 Comments
 
LVL 35

Accepted Solution

by:
[ fanpages ] earned 500 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
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.

825 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