Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 164
  • Last Modified:

excel spreadsheet macro

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
techdrive
Asked:
techdrive
1 Solution
 
[ fanpages ]IT Services ConsultantCommented:
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
 
techdriveAuthor Commented:
sorry I took so long to answer I found the answer I was looking for.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now