Trying to create a repeating list of numbers

Jinjunwei

New Member
Joined
Jun 12, 2005
Messages
49
Hello Everyone.

Im trying to create a list of repeating numbers excel. For example, I'd like to have a column (say column A) count up: 1,2,3,4,5....1000. Then in cell A1001, I'd like the count to revert back to 1. I did a lot of searching and found the following formula:

A1: =(IF(MOD((ROW()-ROW(List_start)+1)/$D$1, 1)=0, 1, MOD((ROW()-ROW(List_start)+1)/$D$1, 1)))*$D$1

where D1 is the number i'd like to repeat, in my case, 1000. I can't get the formula to work. Any advice?

Thank you in advance.

Brian
 
In A1:A1000, enter 1000

In A1001 and copy down, =A1+1000
 
Last edited:
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hmm. I tired both of the above.. and just got a count down: a1: 1000, a2: 999, a3: 998. Maybe I made a mistake?
My mistake... I just skimmed your question and made a (bad) assumption as to what you wanted. Sorry. Try putting this formula in A1 and copying it down...

=INT((999+ROW())/1000)*1000
 
Upvote 0
It is simple. The first formula refers to a cell 1000 rows above, and the first 1000 cells are constants.
 
Upvote 0

Forum statistics

Threads
1,224,567
Messages
6,179,568
Members
452,926
Latest member
rows and columns

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