How to Automatically Fill Sequential Numbers in Microsoft Excel

Numbering rows manually in Microsoft Excel is tedious and prone to human error, especially when managing long datasets, customer registries, inventory lists, or financial models. Fortunately, Excel provides multiple built-in tools to generate sequential numbers automatically, ranging from quick mouse gestures to advanced dialogue boxes and dynamic formulas.

Whether you need to generate a quick list from 1 to 50 or instantly populate thousands of sequential rows without tedious scrolling, this guide covers the four most reliable ways to fill numbers sequentially in Microsoft Excel.


Method 1: Use the Fill Handle and AutoFill Options

The Fill Handle is the quickest and most common method for numbering modest lists.

Option A: Dragging from Two Seed Numbers

  1. Type 1 into cell A2 and 2 into cell A3. Establishing this pattern tells Excel the increment value is 1.
  2. Click and drag to select both cells A2 and A3.
  3. Hover your mouse over the small square in the bottom-right corner of the selection border (the fill handle) until your cursor becomes a solid black plus icon (+).
  4. Click and drag downward across your target rows. As you drag, a tooltip displays the sequence value. Release the mouse button when you reach your desired end number.

Option B: Double-Clicking Beside an Existing Column

If you already have data in an adjacent column (for example, names in column B):

  1. Type 1 in cell A2 and 2 in cell A3.
  2. Select both cells.
  3. Double-click the fill handle in the lower-right corner. Excel will automatically flash-fill the numerical sequence down to match the exact length of the neighbouring data column.

Option C: Using the AutoFill Options Menu

If you only type 1 in cell A2 and drag the handle down, Excel defaults to copying the number 1 repeatedly. To fix this instantly:

  1. Release the drag handle.
  2. Click the small AutoFill Options icon that appears at the bottom-right of the filled range.
  3. Select Fill Series from the flyout menu. Excel converts the repeated duplicates into consecutive integers.

Method 2: Use the Fill Series Dialogue Box (Fastest for Thousands of Rows)

Dragging the mouse across hundreds or thousands of rows is slow, clumsy, and difficult to control. The Fill Series dialogue box lets you generate massive numerical sequences instantly without dragging.

  1. Type the starting number (for example, 1) into cell A2.
  2. With cell A2 selected, navigate to the Home tab on the Excel ribbon.
  3. In the Editing group on the right, click Fill (represented by a downward arrow into a box).
  4. Select Series… from the drop-down menu.
  5. In the dialogue box:
    • Under Series in, choose Columns (to number downward) or Rows (to number horizontally across).
    • Under Type, ensure Linear is selected.
    • Set the Step value to 1 (or any desired increment).
    • Set the Stop value to your end target (for example, 5000).
  6. Click OK. Excel instantly generates 5,000 perfectly numbered rows in less than a second.

Keyboard Shortcut: Press Alt > H > F > I > S in sequence on Windows to open the Fill Series dialogue box instantly.


Method 3: Generate Dynamic Numbers Using the SEQUENCE Function

In modern versions of Microsoft 365 and Excel 2021, the dynamic array function SEQUENCE allows you to create auto-expanding numbered lists via a single formula.

Basic Syntax

=SEQUENCE(rows, [columns], [start], [step])

Example 1: Generate 100 Consecutive Numbers

Click cell A2 and enter:

=SEQUENCE(100)

Excel will instantly spill numbers from 1 to 100 down column A. Because this is a dynamic array, the formula resides solely in cell A2 while populating the range below automatically.

Example 2: Automatically Number Existing Data Rows

To ensure your numbering automatically expands or shrinks when items are added to your table, combine SEQUENCE with COUNTA:

=SEQUENCE(COUNTA(B2:B100))

Whenever you add a new entry in column B, column A automatically extends the sequence by one row without any manual intervention.


Method 4: Number Filtered Lists Using the SUBTOTAL Function

A common frustration with standard sequential numbers occurs when applying table filters: hidden rows disrupt the visible sequence, showing skips like 1, 4, 7, 12. To ensure numbers always display consecutively regardless of active filters, use SUBTOTAL.

  1. In cell A2, enter the following formula:
    =SUBTOTAL(3, $B$2:B2)
    (The argument 3 represents COUNTA within SUBTOTAL, which ignores rows hidden by filters.)
  2. Copy or drag this formula down your column.
  3. Apply any filter to column B or adjacent columns. The numbered column will dynamically re-evaluate so the visible rows always appear as 1, 2, 3, 4 without gaps.

Troubleshooting Sequential Numbering in Excel

Numbers are Pasted as Static Values When Dragging

If holding the fill handle does not increment numbers, hold down the Ctrl key while dragging. A tiny supplementary plus sign appears next to your cursor, forcing Excel into sequence mode rather than copy mode.

The SEQUENCE Function Returns a #SPILL! Error

A #SPILL! error occurs when one or more cells in the required output range contain existing content, whitespace, or formulas. Clear the cells directly beneath the formula cell to provide an unobstructed path for the array.

Converting Dynamic Formulas into Permanent Numbers

If you need to share a workbook where formulas might be accidentally deleted or overwritten, select the generated numbers, press Ctrl + C to copy, right-click the top cell, and choose Paste as Values (or press Ctrl + Shift + V).

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.