Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copy EXCEL cell x number of times

Tags:

excel

cells

I have a column of about 1000 IP addresses that I need to print 5 times in a single column.

For example

10.10.10.1
10.10.10.2
10.10.10.3
10.10.10.4

should become

10.10.10.1
10.10.10.1
10.10.10.1
10.10.10.1
10.10.10.1
10.10.10.2
10.10.10.2
10.10.10.2
10.10.10.2
10.10.10.2

etc, etc

Can this be done in Excel? What functions should I research?

like image 470
Glowie Avatar asked Dec 16 '13 19:12

Glowie


People also ask

How do you repeat rows a specified number of times in Excel?

In the popping dialog, choose Copy and insert rows option in the Type section, then choose the range that you want to repeat to Insert Range textbox, and choose the column that decides the repeat times to the Repeat Times textbox. Click Ok. Then the rows will be repeated by the selected column.

How do I repeat something in Excel?

Right-click the row or column label you want to repeat, and click Field Settings. Click the Layout & Print tab, and check the Repeat item labels box. Make sure Show item labels in tabular form is selected.


1 Answers

If your example is in range A1:A4, you can use this in column B as from cell B1:

=INDEX(A:A,INT((ROW()-1)/5)+1)

This will repeat each one 5 times.

like image 65
Jerry Avatar answered Sep 30 '22 11:09

Jerry