Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 3
Default incrementing batches of numbers

I have a sheet, where I need to batch 500 products each containing 26 rows of information (13000 rows). after each batch of 26 there must be a space, which I have set up.

I now need to add in column 1 an SKU number for each batch, starting at SKU-00001 going upto SKU-00500.

I am wondering is there a way of using the drag and fill to run these numbers consecutively in batches of 26, to save me having to edit each one?
  #2   Report Post  
Junior Member
 
Posts: 3
Default

Quote:
Originally Posted by joe74 View Post
I have a sheet, where I need to batch 500 products each containing 26 rows of information (13000 rows). after each batch of 26 there must be a space, which I have set up.

I now need to add in column 1 an SKU number for each batch, starting at SKU-00001 going upto SKU-00500.

I am wondering is there a way of using the drag and fill to run these numbers consecutively in batches of 26, to save me having to edit each one?
I maybe should have pointed out, each batch of 26 rows should have the same SKU number, a space, then the next SKU number in order.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,522
Default incrementing batches of numbers

On Monday, March 26, 2012 10:31:10 AM UTC-5, joe74 wrote:
I have a sheet, where I need to batch 500 products each containing 26
rows of information (13000 rows). after each batch of 26 there must be a
space, which I have set up.

I now need to add in column 1 an SKU number for each batch, starting at
SKU-00001 going upto SKU-00500.

I am wondering is there a way of using the drag and fill to run these
numbers consecutively in batches of 26, to save me having to edit each
one?




--
joe74


Sub numbersincolumn()
n = 1
For i = 1 To 500 Step 26
Cells(i, 3).Resize(26).Value = "00A" & n
n = n + 1
Next i
End Sub
  #4   Report Post  
Junior Member
 
Posts: 3
Default

Quote:
Originally Posted by Don Guillett[_2_] View Post
On Monday, March 26, 2012 10:31:10 AM UTC-5, joe74 wrote:
I have a sheet, where I need to batch 500 products each containing 26
rows of information (13000 rows). after each batch of 26 there must be a
space, which I have set up.

I now need to add in column 1 an SKU number for each batch, starting at
SKU-00001 going upto SKU-00500.

I am wondering is there a way of using the drag and fill to run these
numbers consecutively in batches of 26, to save me having to edit each
one?




--
joe74


Sub numbersincolumn()
n = 1
For i = 1 To 500 Step 26
Cells(i, 3).Resize(26).Value = "00A" & n
n = n + 1
Next i
End Sub
Hi Don, I may be being a nugget here, but I dont know what you mean
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Incrementing numbers in a column Rodman Excel Discussion (Misc queries) 1 December 3rd 08 11:27 PM
Incrementing numbers [email protected] Excel Programming 5 September 7th 07 09:22 AM
Incrementing Cell Numbers den1s Excel Programming 2 April 3rd 06 03:55 AM
Incrementing numbers Floyd107 Excel Worksheet Functions 2 February 28th 06 10:04 AM
Incrementing Cell Numbers Lance W. Grimes Excel Discussion (Misc queries) 1 March 8th 05 07:51 PM


All times are GMT +1. The time now is 10:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"