Incrementing by 3

costi_tcc

New Member
Joined
Aug 28, 2020
Messages
5
Office Version
  1. 2013
Platform
  1. Windows
  2. MacOS
I'm not sure if I can explain properly what i need lol, but I want to create an incrementing sequence number, and after is reaching 3 to start again, and each number to be repeated one time. Please see below and thank you
1
1
2
2
3
3
1
1
2
2
3
3
1
1
.
.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Welcome to the Board!

Where does your list start (that is, what is the address of the first cell the first "1" is going into)?
 
Upvote 0
Hi & welcome to MrExcel.
How about
+Fluff New.xlsm
A
11
21
32
42
53
63
71
81
92
102
113
123
131
141
152
162
173
183
Master
Cell Formulas
RangeFormula
A1:A18A1=MOD(INT((ROW()-1)/2),3)+1
 
Upvote 0

Attachments

  • Capture.JPG
    Capture.JPG
    100.5 KB · Views: 6
Upvote 0
That example looks a bit different than what you posted in your original sample.

In the original sample, you have:
- Each number repeating 2 times
- The numbers resetting to 1 after hitting 3

In this new screen print, you have:
- Each number repeating 5 times
- The number resetting to 1 after hitting 4

So there some discrepancies there.
Which one is the one you really want?
 
Upvote 0
Sorry for the confusion, the second one, i posted the first one because it is shorter and i thought i could figure myself how to change it to adapt to my case, which is the second one with the capture screen.
 
Upvote 0
Should it always reset after 4, or one less than the value in E1?
 
Upvote 0
Should it always reset after 4, or one less than the value in E1?
I have in total 2000 pieces (cells) column A, each ones have an unique number 1 to 2000.
I want to to group them by bundle, and trays.
Each bundle contains 20 A cells i did that in column B, please see below the formula i use.
Now each bundle has 4 trays, and in each tray i'm trying to fit 5 records (Cells from A column).
Ignore Tray A and B (C, D) are just attempts of mine.
Down the road the numbers of bundles and trays could change, that's why i created variable cells B1 and E1, where i could change the values based on the requirements and the all columns could change automatically.

Thank you
 

Attachments

  • Capture2.JPG
    Capture2.JPG
    75.2 KB · Views: 2
Upvote 0
How about
=MOD(INT((ROWS(E$4:E4)-1)/$E$1),$E$1-1)+1
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,839
Members
449,193
Latest member
MikeVol

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