Repeat pattern every nth cell

falyas

New Member
Joined
Aug 21, 2016
Messages
1
Hi Guys,

I want create a formula that will produce the following pattern automatically:

A
1 1
2 1
3 2
4 2
5 3
6 3
7 4
8 4
9 1
10 1
11 2
12 2
13 3
14 3
15 4
16 4

Appreciate your help
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
falyas,

Welcome.

Try in A1 ..... =CHOOSE(MOD(ROW(A1),8)+1,4,1,1,2,2,3,3,4) and copy down.Hope that helps
 
Last edited:
Upvote 0

Excel 2010
A
11
21
32
42
53
63
74
84
91
101
112
122
133
143
154
164
171
181
192
202
213
Sheet13
Cell Formulas
RangeFormula
A1=MOD(INT(ROW(A2)/2)-1,4)+1


works too
 
Upvote 0

Forum statistics

Threads
1,226,730
Messages
6,192,699
Members
453,747
Latest member
tylerhyatt04

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