Consecutive numbers in column - 1 2 3, 1 2 3

prochasska

New Member
Joined
Jan 16, 2018
Messages
9
Hello,

I have a spreadsheet where I want to enter consecutive numbers every three rows (the number of rows can vary, it can be two, three, four, five, etc.).
See example below.

London 1
Brighton 2
LA 3
Italy 1
Spain 2
Austria 3

Please can you advise on a formula?

BR,
Monika
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi Monika

Put a 1 in the start cell (I've assumed H3 for no particular reason), then put this in H4 and copy down: =MOD(H3,3)+1

You could replace the 3 with any different value, or refer to a cell with the number in it.
 
Last edited:
Upvote 0
YOu can use

=MOD(ROWS($A$1:A1)-1,3)+1

and change the 3 in the formula or point it to a cell reference if you want.
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,739
Members
449,050
Latest member
excelknuckles

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