deLockloire
Board Regular
- Joined
- Apr 4, 2008
- Messages
- 116
- Office Version
- 365
- Platform
- Windows
Hi all,
I'd like to have a formula that takes a range of cells, let say (A1:A3):
and repeats them in a way that each item in that range gets repeated X times one after the other and the whole result gets repeated N times. For instance, if X=2 and N=3, this is how the result would look like (B1:B18):
I kept tinkering with TOCOL, IF and SEQUENCE, but could not make it work in the way I wanted. Any ideas how I could do this?
Regards,
deL
I'd like to have a formula that takes a range of cells, let say (A1:A3):
A | |
1 | Value1 |
2 | Value2 |
3 | Value3 |
and repeats them in a way that each item in that range gets repeated X times one after the other and the whole result gets repeated N times. For instance, if X=2 and N=3, this is how the result would look like (B1:B18):
B | |
1 | Value1 |
2 | Value1 |
3 | Value2 |
4 | Value2 |
5 | Value3 |
6 | Value3 |
7 | Value1 |
8 | Value1 |
9 | Value2 |
10 | Value2 |
11 | Value3 |
12 | Value3 |
13 | Value1 |
14 | Value1 |
15 | Value2 |
16 | Value2 |
17 | Value3 |
18 | Value3 |
I kept tinkering with TOCOL, IF and SEQUENCE, but could not make it work in the way I wanted. Any ideas how I could do this?
Regards,
deL