Excel can number a list for you in seconds: type the first two values, drag the fill handle down, and Excel continues the series on its own. For longer lists, the Fill Series dialog or the SEQUENCE function is faster and more reliable than dragging, because you can set the start value, the step size and the exact stopping point without touching the mouse for every cell. The methods below work in Excel for Windows and Mac, and most also work in Excel for the web; button names can vary slightly between versions, so match the wording you see rather than the exact label.
What You'll Need
- Excel on Windows, Mac or the web, or a spreadsheet app that supports a fill handle.
- A column with an empty header cell above the rows you want to number.
- For the formula methods, an Excel version that supports dynamic arrays (SEQUENCE) — older permanent versions may not recognise it.
- A basic understanding of what number series you need: a simple count, odd/even numbers, a step of 5, or dates treated as numbers.
Step-by-Step
Method 1: Drag the fill handle (quickest for simple counting)
- Type 1 in the first cell of your column, for example A2, and press Enter.
- Type 2 in the cell below, A3. Excel needs two values to recognise a pattern; with only one number, dragging copies 1 repeatedly.
- Select both cells by clicking A2 and dragging the small square at the bottom-right corner of the selection down to A3.
- Hover the mouse over the bottom-right corner of the selection until the cursor becomes a thin black cross — the fill handle.
- Drag the fill handle down as far as you need. As you drag, a small tooltip shows the last number that will be reached.
- Release the mouse. Excel fills 3, 4, 5 and so on automatically.
To stop at a specific value, drag until the tooltip shows that number, or double-click the fill handle and let Excel fill down to the end of the adjacent column. Double-clicking is the faster route when you already have data in the next column, and it stops exactly where that data ends.
Method 2: The Fill Series dialog (exact control)
- Enter your starting number in the first cell and select it.
- On the Home tab, find the Fill button in the Editing group, then choose Series. In some versions this is under Edit > Fill > Series on the menu bar.
- Choose Columns to fill downward or Rows to fill across.
- Set Type to Linear for a simple count, or Growth for multiplication.
- Enter the start value in Step value — 1 for counting numbers, 2 for even numbers starting from 2, or 5 for increments of five.
- Enter the end point in Stop value and click OK. Excel writes exactly the range you asked for and nothing more.
Method 3: The SEQUENCE function (for large or dynamic lists)
- Click the first cell of your numbering column, say A2.
- Type
=SEQUENCE(100)and press Enter. This spills the numbers 1 to 100 down the column from that cell. - To start at 1 and step by 2, use
=SEQUENCE(50,1,1,2), which returns 50 numbers starting at 1 with a step of 2. - To tie the count to the rows of data in another column, use
=SEQUENCE(COUNTA(B2:B1000))so the numbering grows or shrinks as you add or remove rows.
Each spilled result is a single formula occupying a range. If Excel shows a #SPILL! error, the cells below are not empty — clear them and the numbers appear.
Method 4: ROW formula (numbering that survives sorting)
- In the first numbered cell, type
=ROW()-1if the cell is A2, so the result is 1. - Drag the fill handle down the column.
- Every row calculates its own position from the sheet, so the numbering stays in order even after you sort the data.
Method 5: Turning numbers into a fixed list
- Select the numbered cells.
- Copy them with Ctrl+C (Cmd+C on Mac).
- Use Paste Special > Values to replace the formulas with plain numbers, so the numbering no longer changes when the sheet is edited.
Common Mistakes
- Dragging a single number. One value copies; two values create a series. Enter 1 and 2 first.
- AutoFill Options set to Copy. After dragging, a small AutoFill Options button appears. If it is set to Copy Cells, every cell repeats the same value — choose Fill Series instead.
- Numbering a filtered or sorted list with hard-typed values. The numbers stop matching the rows. Use the ROW formula or re-number after sorting.
- Deleting a cell inside a spilled SEQUENCE block. Excel blocks partial deletion of a spill range. Delete the whole formula cell instead.
- Mixing text and numbers. A number stored as text (often left-aligned with a warning triangle) breaks the pattern. Convert it to a real number first.
- Thinking dates are different. Excel treats dates as serial numbers, so the same fill handle continues a date series correctly if the cells are formatted as dates.
Tips
- Hold Ctrl (Option on Mac) while dragging the fill handle to force a series fill even from one cell.
- Double-click the fill handle to fill down to the last row of adjacent data instantly.
- For repeating patterns like 1, 2, 3, 1, 2, 3, type the full pattern across the first cells, select them all, then drag.
- Name the numbering column in the header row and use a table (Insert > Table) so new rows get the pattern automatically with a structured reference.
- Keep a separate ID column if you need stable, never-reused numbers; a plain row number changes when rows are inserted.
Troubleshooting
- The series repeats the same number. Check the AutoFill Options button and switch to Fill Series. Also confirm the first two cells differ by the step you want.
- Numbers appear as 1, 1, 1 in a column that looks right. The cells are likely formatted as text. Select the column, use Data > Text to Columns and click Finish, or format the cells as General and retype the first two values.
- SEQUENCE returns #NAME?. Your Excel version does not support it. Use Method 1 or Method 2 instead.
- #SPILL! error. Something occupies the cells below the formula. Clear the range or move the formula.
- Dragging fills dates when you want numbers. Excel infers the pattern from what you typed. Type plain integers and make sure the cell format is General or Number.
- The fill handle is missing. Open Excel's options and look for the advanced editing settings; make sure "Enable fill handle and cell drag-and-drop" is switched on.
- Numbers skip after inserting rows. Typed values are static. Switch to the ROW formula or re-run the fill.
Frequently Asked Questions
Can Excel number rows automatically as I add data?
Yes, if you use a formula such as =ROW()-1 or a SEQUENCE formula based on COUNTA. Typed numbers do not update, which is why formulas are better for lists that grow.
How do I number only visible rows after filtering?
Use the SUBTOTAL function with its count option, for example =SUBTOTAL(3,$B$2:B2), which ignores hidden rows. A plain ROW formula counts every row, filtered or not.
Why do my numbers turn into dates when I drag?
Excel guessed a date pattern from values it recognised. Clear the cells, format them as Number, and enter two plain integers before dragging.
Can I fill numbers in Excel for the web?
The fill handle and the Fill Series option are available in Excel for the web. SEQUENCE is supported in current versions but may not appear in very old files or unsupported browsers.
How do I restart numbering at 1 for each new group?
Use a COUNTIF formula that counts how many times the group value has appeared so far, or add a helper column and subtract the row number where each group begins. Typing the numbers by hand is the only way to keep them fully static.