To add numbering in Excel, the fastest reliable method is to type 1 in the first cell, type 2 directly below it, select both cells, and drag the fill handle (the small square at the bottom-right corner of the selection) down as far as you need—Excel recognises the pattern and continues 3, 4, 5. For long lists, typing the start value and using Home > Fill > Series is quicker and less error-prone. Fill handle and Series both produce static numbers that stay put when you sort or delete rows, which is usually what you want; if you need numbers that renumber themselves automatically, use a formula such as =ROW()-1 or a table with a numbered column instead. Note that menu labels and ribbon groupings can differ slightly between Excel versions, platforms and regions.
What You'll Need
- Microsoft Excel on Windows, Mac, the web, or the mobile app (steps below are written for desktop Excel, with mobile differences noted).
- A worksheet with at least one empty column or a clear place to start the list.
- Optional: a table (select your data and press Ctrl+T on Windows or Cmd+T on Mac) if you want numbering that extends automatically as you add rows.
Step-by-Step
- Choose where the numbers go. Click the first cell of your numbering column—for example A2 if row 1 holds headings. Leave a blank column between your numbers and your data if you plan to sort, so the numbers do not get mixed into the data range.
- Enter the pattern starters. Type
1in that cell and press Enter. Type2in the cell directly below it. - Select both cells. Click the first cell, hold Shift, and click the second. Excel now knows the step size is 1.
- Drag the fill handle. Hover over the small square at the bottom-right of the selection until the cursor becomes a thin black cross, then drag down to the last row you need. Release and Excel fills 3, 4, 5 and so on.
- Or use the Series command for long lists. Type
1in the first cell and select that cell. On the Home tab, open Fill (in the Editing group) and choose Series. Set Series in to Columns, Type to Linear, Step value to 1, and enter a Stop value equal to the last number you want. Click OK. This avoids dragging through hundreds of rows. - Check the last row. Scroll to the bottom of the filled range and confirm the final number matches your row count. A quick way to verify is to compare the last number with the row number it sits in.
- For renumbering that survives sorting, switch to a formula. Delete the static numbers and enter
=ROW()-1in the first row of your list (the -1 offsets the header row; use -2 if your data starts in row 3, and so on). Fill it down. Each number now follows its row position. - Or number a table instead. Convert your data to a table, type the formula in the first cell of the number column, and press Enter—tables fill the formula down automatically. Add a new row at the bottom and the number appears without any dragging.
- Add leading zeros if needed. If you want 001, 002, 003, either select the column and apply Format Cells > Custom with the code
000, or use=TEXT(ROW()-1,"000"). Formatting keeps the value numeric; the TEXT version turns it into text, which matters if you later sort or calculate with it. - Save your file. Press Ctrl+S (Cmd+S on Mac). If prompted about the file format, keep the standard .xlsx format so formulas and formatting are preserved.
Common Mistakes
- Typing every number by hand. This is slow and breaks the moment you insert or delete a row. Use the fill handle or Series instead.
- Dragging only one cell. If you select a single cell containing 1 and drag, Excel copies 1 into every cell rather than counting upward. Always give it two starters or use the Series command.
- Expecting static numbers to renumber. Fill-handle numbers are values. Sort the rows and the numbers stay with their original rows, so the sequence can appear scrambled. Use ROW-based formulas when order matters.
- Numbering inside a merged or filtered range. Numbers hidden by filters still occupy their places, so a filtered list can show gaps. Use SUBTOTAL-based formulas if you need visible-only counts, or clear the filter before checking.
- Using the wrong offset. A formula like =ROW()-1 shows 2 in row 2 if the -1 should not be there. Check the first result before filling down.
- Leaving the number column adjacent to data you later sort. Excel may include the numbers in the sort range depending on your selection. Keep a blank separator column or select only the data columns before sorting.
Tips
- Double-click the fill handle to fill down to the bottom of the adjacent data automatically—much faster than dragging on long sheets.
- For repeating patterns such as 1, 2, 1, 2, enter the short pattern and drag; Excel repeats it. For dates or days, type the first two and drag to continue the sequence.
- On Excel for the web, the fill handle and Fill > Series behave the same way. On the mobile app, the fill handle is small and easier to use with a stylus; for very long lists, entering the formula and copying cells is more practical.
- Restart numbering per group (for example per category) with
=COUNTIF($B$2:B2,B2), where column B holds the category. This counts how many times the current category has appeared so far. - To skip blank rows, use
=IF(A2="","",ROW()-1)so the number only appears when there is data beside it.
Troubleshooting
- All cells show the same number. You selected only one starter cell. Undo with Ctrl+Z, add a second value, and drag again, or use Fill > Series with a step of 1.
- The fill handle is missing. It may be turned off. Go to File > Options > Advanced and look under the editing options for the setting that enables fill handle and cell drag-and-drop, then tick it. On Mac, look under Excel > Preferences.
- Numbers appear as text with a warning triangle. They were probably entered with an apostrophe or formatted as text. Select the cells, open Format Cells, choose Number, and confirm. If the triangle remains, use the convert-to-number option from the warning menu.
- The numbering jumps or repeats unpredictably. Hidden or filtered rows are usually the cause. Clear filters, then remove hidden rows or switch to a SUBTOTAL formula that ignores them.
- Formulas show as text instead of results. The cell is probably formatted as Text. Change the format to General, then re-enter the formula by pressing F2 and Enter.
- Numbers changed after pasting. Use Paste Special > Values if you want the results without formulas, or Paste Special > Keep Source Formatting if formatting was lost. Pasting over a formula range can also break references—check a few cells afterward.
Frequently Asked Questions
How do I number rows automatically in Excel?
Enter =ROW()-1 in the first data row and fill it down. The number always matches the row position, so it updates if you insert or delete rows above.
Can I number only the visible rows of a filtered list?
Yes, with a formula such as =SUBTOTAL(103,$A$1:A1), which counts only visible cells above the current one. Static numbers from the fill handle will show gaps when rows are hidden.
Why does dragging give me 1, 1, 1 instead of 1, 2, 3?
Excel needs two sample values to detect the step. Select cells containing 1 and 2 together before dragging, or use Home > Fill > Series.
How do I number a list that starts in a column other than A?
The ROW function is independent of the column, so =ROW()-1 works anywhere. Only the row number matters, not whether the column is A, B or Z.
Does numbering work the same in Google Sheets?
The fill handle and ROW-based formulas work similarly, but the Series dialog and some ribbon positions differ. Use the fill handle or =ROW()-1 for the closest equivalent.