Note: The other languages of the website are Google-translated. Back to English
Log in  \/ 
Register  \/ 


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, charts and 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

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
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    S_ · 2 months ago
    Thank you so much for this solution!!!!...........Your blog saves my night's sleep :)
  • To post as a guest, your comment is unpublished.
    Srinath V · 11 months ago
    Very helpful, thanks !
  • To post as a guest, your comment is unpublished.
    Leslie · 1 years ago
    How could you do this with workday instead of numbers?
  • To post as a guest, your comment is unpublished.
    Matt · 1 years ago
    How could you do this with columns? Dragging formula horizontally instead of vertically. Thank you.

    • To post as a guest, your comment is unpublished.
      skyyang · 1 years ago
      Hi, Matt,
      To solve your problem, please apply the below formula:
      Please try, hope it can help you!
  • To post as a guest, your comment is unpublished.
    George Stathopoulos · 3 years ago
    I am mac user How Increment Alphanumeric String By 2 Or More For A Column With Formula?Like that TEI-0001.jpg
    I use
    • To post as a guest, your comment is unpublished.
      Graeme · 20 days ago
      On 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.

    • To post as a guest, your comment is unpublished.
      Helpful User · 3 years ago
      Unfortunately Google Dogs only supports functions sit, stay, fetch, and rollover.