I'd put a 1 in cell A2, then put the following in A3 and copy down:
=IF(A2+1>10,1,A2+1)
At that point if you want it to repeat numbers 1-15, change the 10. If you want it to start at 5, change the ,1, to ,5,
Hope that helps,
I'd put a 1 in cell A2, then put the following in A3 and copy down:
=IF(A2+1>10,1,A2+1)
At that point if you want it to repeat numbers 1-15, change the 10. If you want it to start at 5, change the ,1, to ,5,
Hope that helps,
Ken Puls, FCPA, FCMA, MS MVP
Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!
Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter
If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.
Select the 10 cells then either:
1. Hold Ctrl, then click and drag the fill handle down as far as required; or
2. Right-click and drag the fill handle and choose 'Copy cells' after releasing.
Bookmarks