简体   繁体   中英

Copy EXCEL cell x number of times

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM