# formula to repeat series of numbers

#### jek40

##### Active Member
I need some help with a formula to repeat a series of numbers

for example

if cell a1 = 1, then a2 = 2 a3 =3 up to 8 then cell a9 would= 1 a10 =2 etc

I want the values to change based on the value entered in A1 with 8 being the maximum value. (then start the series again with 1)

I hope that I have explained clearly enough

Thanks
John

### Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

#### just_jon

##### Legend
=IF(A1=8,1,A1+1)

In A2 copied down.

#### Andrew Poulsom

##### MrExcel MVP
In A2 enter:

=IF(A1=8,A\$1,A1+1)

and copy down.

Thanks

Works great

John

Replies
2
Views
551
Replies
3
Views
106
Replies
7
Views
240
Replies
6
Views
351
Replies
0
Views
197

1,195,952
Messages
6,012,506
Members
441,703
Latest member
clivelincoln

### 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.

### Which adblocker are you using?

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

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