How to repeat a range of cells in a column?

Rnkhch

Well-known Member
Joined
Apr 28, 2018
Messages
528
Office Version
  1. 365
Platform
  1. Windows
Hello,

In the table below, I have a series of increasing numbers (e.g. 1-3) in column A, and my goal is to repeat this range vertically in column B up to say B500. However, if I add an extra number (in this example #4) to column A, I want column B to readjust the repeating range of cells (which I'm showing below in columns C and D). And the same if more numbers are added (or removed) in column A.

1111
2222
3333
144
21
32
13
24
31
12

Is there a way to do this without VBA?

Thanks for any input.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
In B1:
Excel Formula:
=MOD(ROW(A1)-1,MAX($A$1:$A$100))+1

In D1
Excel Formula:
=MOD(ROW(A1)-1,MAX($C$1:$C$100))+1
 
Upvote 0
How about
+Fluff 1.xlsm
ABC
1
21101
322
433
51
62
73
81
92
103
111
122
133
141
152
163
171
182
193
201
212
223
231
242
253
261
272
283
291
302
313
Data
Cell Formulas
RangeFormula
C2:C31C2=LET(f,FILTER(A2:A100,A2:A100<>""),r,ROWS(f),INDEX(f,MOD(SEQUENCE(r*B2,,0),r)+1))
Dynamic array formulas.

Change B2 to reflect how many repeates you want.
 
Upvote 0
Solution
Try

Book5
ABCDEF
1DataRequirementFormulaDataRequirementFormula
2111111
3222222
4333333
511444
62211
73322
81133
92244
103311
111122
12
13
Sheet1
Cell Formulas
RangeFormula
C2:C11C2=MOD(ROWS(C$2:C2)-1,3)+1
F2:F11F2=MOD(ROWS(F$2:F2)-1,4)+1
 
Upvote 0
If your data starts in Cell A1 to A3, then I would highlight the 3 Cells, Select COPY, GO to where you want to paste it (MOST IMPORTANT-must multiples of 3, so 90, or 93 etc) and highlight that Range (you will see the number of cells as you select them, again make sure it's a multiple of 3) then release and your 3 cells will be copied down
 
Upvote 1
Thanks all!! Excellent answers! I think I'll mark the answer by Fluff as the solution as you only need to put this formula in one cell, and an entire column is automatically generated, and I can also control how deep it goes by adjusting the number in cell B2. Very cool!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,034
Messages
6,122,782
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top