How do you add a number to every row in Excel?

How to increment number every x rows in Excel?Normally, we can fill sequential numbers in a column with Fill Handle, but have you ever tried to fill a column with increment number

How do you add a number to every row in Excel?

How to increment number every x rows in Excel?

doc increment x rows 1

Normally, we can fill sequential numbers in a column with Fill Handle, but have you ever tried to fill a column with increment number every x rows? For example, first five rows fill the number 1, on the 6th row the value will become 2, then on the 11th row the value will become 3 and so on as following screenshot shown, to solve this problem, this article may do you a favor.

Increment number every x rows with formula


arrow blue right bubble

Increment number every x rows with formula

The following simple formula can help you to quickly fill the column with increment numbers every x rows as you want, please do as follows:

1. Enter this formula: =INT((ROW(E1)-1)/5)+1 into a blank cell where you want to fill the sequential numbers, see screenshot:

doc increment x rows 2

Note: In the above formula, the number 5 indicates to increment the numbers every 5 rows, you can change it to your need.

2. Then drag the fill handle down to the cells which you want to fill the increment numbers, and the numbers have been inserted with increment by 1 after every 5 rows, see screenshot:

doc increment x rows 3

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, chartsand anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Read More... Free Download... Purchase...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom

Read More... Free Download... Purchase...

Oldest FirstSort comments byOldest FirstNewest FirstComments (20)No ratings yet. Be the first to rate!

George Stathopoulos

George Stathopoulosabout 5 years ago#20501This comment was minimized by the moderator on the siteI am mac user How Increment Alphanumeric String By 2 Or More For A Column With Formula?Like that TEI-0001.jpg TEI-0001.jpg TEI-0001.jpg TEI-0002.jpg TEI-0002.jpg TEI-0002.jpg I use dogs.googleReply00

Helpful User

Helpful User   George Stathopoulosabout 4 years ago#20502This comment was minimized by the moderator on the siteUnfortunately Google Dogs only supports functions sit, stay, fetch, and rollover.Reply00

tom hanks

tom hanks   Helpful Userabout 1 year ago#20503This comment was minimized by the moderator on the sitelmfao this is greatReply00

Graeme

Graeme   George Stathopoulosabout 1 year ago#20504This comment was minimized by the moderator on the siteOn a separate sheet to use for your math...Break the Alphanumeric into separate columns then, use the number columns for the incremental, then concatenate the results back, then copy the concatenated results and paste [as values] into the VBA script..
Column A text is "TEI-000"Column B text is "1"Column C text is ".jpg"
Use the formula "INT Row..." to do double number row lines for the number column.Columns "A" & "C" are unchanged so copy to last row of data.
Select all of the concatenated results, Copy, paste as values into another column to save your magic formula as a master reference sheet.
I've just done something like that for 100,000 cells with formulas.

Reply00

Matt

Mattabout 2 years ago#32532This comment was minimized by the moderator on the siteHow could you do this with columns? Dragging formula horizontally instead of vertically. Thank you.Reply00

skyyang

skyyang   Mattabout 2 years ago#32533This comment was minimized by the moderator on the siteHi, Matt,
To solve your problem, please apply the below formula:
=INT((COLUMN(A1)-1)/5)+1
Please try, hope it can help you!ReplyReport00

Suresh

Suresh   skyyangabout 6 months ago#37820This comment was minimized by the moderator on the siteI Want stating number 908Reply00

G. Esaie Kpadonou

G. Esaie Kpadonou   Sureshabout 3 months ago#38703This comment was minimized by the moderator on the siteHi, try this:
=INT((ROW()-1)/12)+908
NB:
1-remove header or rather use ROW()-2 with header
2-the number 12 in the formula stands for your increment row range: increment after 12 rowsReplyReport00

MandyZhou

MandyZhou   G. Esaie Kpadonouabout 3 months ago#38793This comment was minimized by the moderator on the siteHello friend,

Thank you for your share. If you want to insert 908 in cell H1, Increment Number Every 5 columns, try this formula:
=INT((COLUMN(A1)-1)/5)+908

This formula can make the starting number 908 no matter where you insert the formula.

But if you input =INT((COLUMN()-1)/5)+908 in H1, the starting number will be changed to 909. So it is better to include A1 in the formula. Please have a try. Thanks.

Sincerely,
MandyReplyReport00

Leslie

Leslieabout 2 years ago#33106This comment was minimized by the moderator on the siteHow could you do this with workday instead of numbers?Reply00

Srinath V

Srinath Vabout 2 years ago#33583This comment was minimized by the moderator on the siteVery helpful, thanks !Reply00

S_

S_about 1 year ago#35156This comment was minimized by the moderator on the siteThank you so much for this solution!!!!...........Your blog saves my night's sleep :)Reply00

Marjan

Marjanabout 12 months ago#36475This comment was minimized by the moderator on the siteHello, I was trying to use the same formula for every 12 rows.=INT((ROW(R5)-1)/(12))+1877. But it does not workReply00

skyyang

skyyang   Marjanabout 12 months ago#36476This comment was minimized by the moderator on the siteHello, Marjan,To increment number every 12 Rows, please use this formula:=INT((ROW(E1)-1)/12)+1
Please try it, thank you!ReplyReport00

Rahul

Rahulabout 11 months ago#36673This comment was minimized by the moderator on the siteThank you so much for this article.. It saved a lot of time for me. Appreciate your support guys..Reply00

Jay

Jayabout 3 months ago#38926This comment was minimized by the moderator on the siteHey, thank you for this article. can I increase the specified row by other value instead of 1?Reply00

skyyang

skyyang   Jayabout 3 months ago#38971This comment was minimized by the moderator on the siteHello,Jay,
Sorry, I can't get your point, could you give a detailed example? You can insert a picture here to describe your problem.
Thank you!ReplyReport00

Yazen

Yazenabout 4 days ago#40834This comment was minimized by the moderator on the siteHello,

What is the formula to add sequential numbers to every 8 rows. I don't want the rows in between to have any numbers (2-7, or 9-16, and so on).

Thank you,
YazenReply00

skyyang

skyyang   Yazenabout 2 days ago#40849This comment was minimized by the moderator on the siteHello, Yazen
Sorry, I can't get your point, could you give a detailed example?
You can insert a screenshot or an Excel file of your problem here.
Thank you!ReplyReport00

Yazen

Yazen   skyyang20 hours ago#40887This comment was minimized by the moderator on the siteI am unable to add a screenshot or attach a file. But, here is what the excel looks like:
1 Apple 1
Apple 2
Apple 3
Apple 4
Apple 5
Apple 6

2 Orange 1
Orange 2
Orange 3
Orange 4
Orange 5
Orange 6

3 Banana 1
Banana 2
Banana 3
Banana 4
Banana 5
Banana 6

4 Melon 1
Melon 2
Melon 3
Melon 4
Melon 5
Melon 6


The numbers from 1 to 4 are manually entered. I am trying to figure out a formula that lets me add these numbers automatically to the first row category only and not every cell in that category.

Any help would be greatly appreciate it.

Thank you.Reply00There are no comments posted here yetLeave your comments

Guest

Posting as GuestLogin Username PasswordLogin to my account     Name (Required) Email (Required)×Rate this post:Reset0  CharactersSuggested Locations   I agree to the terms and conditionCancel Submit Comment

Video liên quan