Scott Huish
MrExcel MVP
- Joined
- Mar 17, 2004
- Messages
- 20,596
- Office Version
- 365
- Platform
- Windows
I know I could write a VBA macro for this, but I'm wondering if there was an easy way with formulas so I don't have to get my coworkers to enable macros.
So, I want to be able to enter a number in A1, and then have it generate the sequence as below. There will always be 4 columns of results. The number of rows will be the number in A1/4. The pattern starts at 1 in the 2nd column, goes up in the 3rd column, back down the 4th column, and then up the first column.
I gave a couple of samples to show how this goes.
So, I want to be able to enter a number in A1, and then have it generate the sequence as below. There will always be 4 columns of results. The number of rows will be the number in A1/4. The pattern starts at 1 in the 2nd column, goes up in the 3rd column, back down the 4th column, and then up the first column.
I gave a couple of samples to show how this goes.
16 | 16 | 1 | 8 | 9 | |
15 | 2 | 7 | 10 | ||
14 | 3 | 6 | 11 | ||
13 | 4 | 5 | 12 | ||
20 | 20 | 1 | 10 | 11 | |
19 | 2 | 9 | 12 | ||
18 | 3 | 8 | 13 | ||
17 | 4 | 7 | 14 | ||
16 | 5 | 6 | 15 |