Solved

excel spreadsheet macro

Posted on 2014-09-10
2
140 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
Comment Utility
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
Comment Utility
sorry I took so long to answer I found the answer I was looking for.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
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;…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now