Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Auto Populate Numbers in Excel

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Excel can fill a run of numbers for you in seconds, and the quickest method is the fill handle: type the first two numbers (for example 1 and 2, or 100 and 105), select both cells, then drag the small square at the bottom-right corner of the selection down or across. Excel recognises the pattern and continues it. If you only need consecutive numbers, type 1, hold Ctrl while dragging the fill handle, and Excel adds 1 each time. For long lists or numbers that must stay in step even when you insert rows, use a formula instead, such as =ROW()-1 or =SEQUENCE(20). Menu labels can differ slightly by version, platform and region, but the fill handle and the Fill commands have worked in the same way for years.

What You'll Need

  • Excel on Windows, Mac, the web, or the Excel app on a phone or tablet. The fill handle is available everywhere; some menu names differ on Mac and mobile.
  • A blank column or row with enough empty cells below or beside your starting numbers.
  • Optionally, a table or a range you want the numbers tied to, if you plan to use formulas.
  • If you want SEQUENCE, you need a Microsoft 365 or Excel 2021 build that includes dynamic arrays. Older versions do not have it.

Step-by-Step

  1. Pick your starting cell. Click an empty cell an appropriate distance from other data, so the series has room to grow. For example, click A2 if A1 holds a header.
  2. Enter the first number. Type 1 and press Enter, or type your real starting value such as 1001 for an order number series.
  3. Enter a second number to establish a pattern. In the cell directly below, type the next value. Use 2 for counting, 3 if you want odd numbers from 1, or 1005 to step by five. Default: two values tell Excel the increment.
  4. Select both cells. Click the first cell and drag to the second, or click the first and hold Shift while clicking the second.
  5. Grab the fill handle. Hover over the tiny square at the bottom-right of the selection until the pointer becomes a thin black cross.
  6. Drag to fill. Press and hold the mouse button and drag down (or right) as far as you need. A small tooltip shows the value you will land on. Release to fill.
  7. Use the double-click shortcut for adjacent data. If the column next to your numbers already contains values down to the last row, double-click the fill handle instead of dragging. Excel fills to the bottom of that neighbouring column automatically.
  8. For a simple series with one starting value, drag with Ctrl held (Windows) or Option held (Mac). Select the single cell, then hold the modifier and drag the fill handle. Excel increments by one rather than copying the value.
  9. Use the Fill menu when you know the end point. Enter the first value, then on the Home tab look in the Editing group for Fill. Choose Series, set the series in Columns or Rows, choose Linear, enter the Step value and the Stop value, and click OK. A hundred numbers appear instantly with no dragging.
  10. Or skip manual filling with a formula. In the first cell type =ROW()-1 (assuming row 1 is a header) and press Enter, then drag or double-click the fill handle to copy it down. The number recalculates if rows are inserted above.
  11. Try SEQUENCE for a spill. Click one empty cell and type =SEQUENCE(50) for 1 to 50. For 5 to 500 in steps of 5, use =SEQUENCE(100,1,5,5). Press Enter and the numbers fill downward from that single cell. Do not type anything in the cells the result occupies, or you will get a spill error.
  12. Convert to fixed values if needed. Select the filled cells, copy them with Ctrl+C (Cmd+C on Mac), then use Paste Special > Values from the Paste dropdown so the numbers stay put if the source changes.
  13. Format the result. Select the range, right-click, choose Format Cells, and set Number format, decimals, or leading zeros using a custom format such as 0000 if you need codes like 0001.

Common Mistakes

  • Dragging one cell and getting a copy. Excel copies a lone text or number when you drag. Supply a second value, or hold Ctrl/Option while dragging.
  • Storing numbers as text. If your entries are left-aligned or show a green triangle, the fill may not increment. Convert them with Text to Columns or multiply by 1 in an empty cell and paste back as values.
  • Breaking a formula series with a manual edit. Typing over a formula row removes the rule, so the next fill continues the wrong value.
  • Forgetting the header. =ROW() returns the row number, so a series in row 2 starts at 2 unless you subtract 1.
  • Typing inside a spilled SEQUENCE range. This returns #SPILL! Clear the blocking cells, not the formula.
  • Dragging past your data. Numbers that overrun a table look tidy on screen but break sorting, filters and pivot ranges later.

Tips

  • Set the two starting values before selecting; the second value defines the step and also handles dates, weekdays and month names.
  • To repeat a number pattern (1, 2, 3, 1, 2, 3), enter the full cycle once, select all of it, then drag.
  • Double-clicking the fill handle is the fastest route in a large sheet, but it needs a filled neighbouring column to know where to stop.
  • Create an Excel Table with Ctrl+T. Formulas typed once in a column automatically copy down when rows are added.
  • Use =SUBTOTAL only for sums; for numbering visible rows in a filtered list, =SUBTOTAL(103,$A$2:A2) counts only visible entries.
  • Keep a backup copy before bulk-filling, so a mis-drag is easy to undo with Ctrl+Z (Cmd+Z on Mac).

Troubleshooting

  • Numbers repeat instead of incrementing: select two cells with a clear step, or hold Ctrl/Option during the drag. Check that AutoFill Options (the small icon at the end of the fill) is set to Fill Series, not Copy Cells.
  • The fill handle is missing: go to File > Options > Advanced, and under Editing Options tick Enable fill handle and cell drag-and-drop. On Mac, use Excel > Preferences > Edit.
  • The tooltip is not showing values: the drag works anyway; release and check the result.
  • SEQUENCE returns #NAME?: your Excel version does not support dynamic arrays. Use the Fill > Series method or =ROW()-1 instead.
  • #SPILL! error: clear the cells directly below or right of the formula. The result needs that space.
  • Leading zeros disappear: format the column as Text before typing, or apply a custom format such as 0000.
  • Numbering restarts oddly after sorting: you used manual values. Replace them with a formula series so Excel recalculates after the sort.
  • If none of the fills behave, close and reopen Excel, check for updates, and reopen the file; add-ins occasionally block drag-and-drop.

Frequently Asked Questions

How do I fill 1 to 1000 quickly?

Type 1 in the first cell, then use Home > Fill > Series with Linear, Step 1 and Stop value 1000. Dragging that far also works but is far slower.

Can I number rows automatically when new rows are added?

Yes. Put =ROW()-1 in the first data row and copy it down, or convert the range to a Table and add a formula column. Inserted rows inherit the formula.

Why does dragging add 1 instead of my chosen step?

Excel took a single value and guessed. Enter two starting values, or use Fill > Series with an explicit step.

Does the fill handle work on the Excel phone app?

The mobile app has different editing tools; select a cell and use the fill handle shown in the selection menu where available, or use the app's copy-and-paste for short ranges. Long series are easier on desktop or in the browser.

How do I keep numbers fixed after filling formulas?

Copy the filled cells and use Paste Special > Values so the numbers no longer depend on the formula or row positions.

Can I number only the filtered rows?

Yes, with a SUBTOTAL formula such as =SUBTOTAL(103,$A$2:A2), which counts only visible cells as the filter changes.