Smart Systems for Home

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

How to Put Serial 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

To put serial numbers in Excel, type 1 in the first cell, type 2 in the cell below, select both cells, then drag the fill handle down. Excel recognises the pattern and continues the sequence. For a fixed range, type the first number, hold Ctrl (Cmd on Mac) and drag to fill with a series. You can also use the Fill Series command or the SEQUENCE function for automatic numbering. No add-ins are required; any modern Excel version works.

What You'll Need

  • Microsoft Excel (desktop or web) or a compatible spreadsheet app such as Google Sheets or LibreOffice Calc.
  • A worksheet with an empty column where the numbers will go.
  • Basic familiarity with selecting cells and using the fill handle (the small square at the bottom-right corner of a selection).

Step-by-Step

  1. Open your worksheet and click the first cell in the column where you want the serial numbers to appear (for example A2 if row 1 holds headers).
  2. Type the first number (e.g., 1) and press Enter. Type the second number (e.g., 2) in the cell directly below and press Enter again. Having two values tells Excel the step size.
  3. Select both cells. Click the first cell, hold Shift, and click the second cell. A small square appears at the bottom-right corner of the selection.
  4. Drag the fill handle down as far as you need. Excel continues the sequence (3, 4, 5…) and shows a preview tooltip as you drag. Release the mouse to fill.
  5. For a fixed range without dragging: type the starting number in the first cell, select the entire range you want to fill (e.g., A2:A100), then go to the Home tab > Editing group > Fill > Series. Choose Columns, type the Step value (1 for consecutive numbers), and click OK.
  6. For an automatic, formula-based sequence: in the first cell, enter =SEQUENCE(100,1,1,1) to generate 100 serial numbers starting at 1. This works in Excel for Microsoft 365 and Excel 2021 and later; older versions do not have SEQUENCE. Adjust the arguments as needed: rows, columns, start, step.
  7. To number only visible rows (when some rows are hidden by a filter), use =SUBTOTAL(103,$A$2:A2) in the first data row and fill down. This counts visible cells only, so hidden rows are skipped.
  8. Convert formulas to values if you need static numbers: select the filled cells, copy (Ctrl+C), then right-click and choose Paste Special > Values. This removes the formula dependency.

Menu labels can differ slightly by Excel version, platform (Windows, Mac, web) and region. The steps above apply to the desktop app; the web version has the same Fill > Series command under the Home tab, but the fill handle works the same way.

Common Mistakes

  • Dragging only one cell: Excel copies the same number instead of incrementing. Always start with two cells (1 and 2) or use Fill > Series.
  • Not holding Ctrl/Cmd when needed: In some cases, dragging a single cell with Ctrl held forces a series, but the two-cell method is more reliable.
  • Filling over existing data: The fill handle overwrites cells below without warning. Check that the column is empty before dragging.
  • Using SEQUENCE in an older Excel version: The function returns a #NAME? error. Use the fill handle or Fill Series instead.
  • Forgetting to convert formulas to values before sorting or sharing the file, which can cause numbers to recalculate or break if rows are moved.

Tips

  • To number rows that may be sorted later, use a formula like =ROW()-1 in the first data row and fill down. The numbers update automatically if rows are inserted or deleted.
  • For a quick series without dragging, select the range, type the start number, and press Ctrl+Enter (Cmd+Enter on Mac) to fill the whole selection with that number; then use Fill > Series to increment.
  • Use a custom number format (e.g., "SN-000") to display serial numbers with leading zeros or a prefix without changing the underlying value.
  • If you need to restart numbering for each group, use a formula that checks the group column, such as =IF(B2=B1,A1+1,1).
  • Keep a backup copy before filling large ranges, since undo may not cover every action in all versions.

Troubleshooting

  • Numbers repeat instead of incrementing: You likely dragged from a single cell. Delete the filled cells, enter 1 and 2 in two cells, select both, and drag again. Alternatively, use Fill > Series and set the step to 1.
  • Fill handle is missing: Go to File > Options > Advanced > Editing options and ensure "Enable fill handle and cell drag-and-drop" is checked. On Mac, look under Excel > Preferences > Edit.
  • SEQUENCE returns #NAME?: Your Excel version does not support it. Use the fill handle or Fill Series. Check your version under File > Account > About Excel.
  • Numbers appear as text (left-aligned): The cells may be formatted as Text. Select them, go to Home > Number Format, and choose General or Number. Then re-enter the starting values.
  • Filtered rows are numbered incorrectly: Use the SUBTOTAL method described in step 7, or manually renumber after filtering.
  • Fill handle drags but shows no preview: This can happen if the workbook is in a protected view or the sheet is protected. Enable editing or unprotect the sheet via Review > Unprotect Sheet.

Frequently Asked Questions

How do I add serial numbers to an existing list without overwriting data?

Insert a new column next to your data, then use the fill handle or Fill Series in that empty column. If you need the numbers to stay with rows when sorted, use a formula like =ROW()-1 in the new column and fill down.

Can I create serial numbers that automatically update when I add rows?

Yes. Use =ROW()-1 in the first data row and fill down. When you insert a row within the range, the formula adjusts. For a fixed range that shouldn't change, convert the formulas to values with Paste Special > Values.

Why does dragging the fill handle copy the same number instead of counting up?

Excel needs at least two cells to detect a pattern. Enter 1 in the first cell and 2 in the second, select both, then drag. If it still copies, check that the cells are formatted as numbers, not text.

How do I number only the visible rows after filtering?

Use =SUBTOTAL(103,$A$2:A2) in the first data row and fill down. The 103 argument counts only visible cells, so hidden rows are skipped and the visible sequence stays continuous.

Is there a way to generate serial numbers without dragging?

Yes. Select the range, go to Home > Fill > Series, choose Columns, set the step to 1, and click OK. In Excel for Microsoft 365 and Excel 2021+, you can also use =SEQUENCE(rows,1,start,step).

What if I need serial numbers with leading zeros, like 001, 002?

Apply a custom number format: select the cells, press Ctrl+1 (Cmd+1 on Mac), go to Number > Custom, and enter a format such as 000. The underlying value stays 1, 2, 3, but displays as 001, 002, 003.