This is a tutorial note on how to efficiently create and maintain a numbered list in Excel, highlighting reasons you should use the SEQUENCE function instead of dragging cells, along with a tip for custom formatting.
=SEQUENCE(n)
(replace 'n' with desired number of rows) to auto-generate a numbered list.=SEQUENCE(COUNTA(range) - 1)
COUNTA
counts non-empty rows in the specified range.To prefix numbers (e.g., "No. 1"), use custom formatting rather than altering the formula:
Ctrl + 1
to open Format Cells."No. "0
This displays numbers as "No. 1", "No. 2", etc., without modifying the underlying value or formula.
| Method | Pros | Cons | | ---------------- | ------------------------------------- | ------------------------------------- | | Dragging | Simple, visual | Not dynamic, manual fix for changes | | SEQUENCE Formula | Automatic, dynamic, error-resistant | Needs formula/familiarity |
=SEQUENCE(COUNTA(A2:A100)-1)
(Adjust A2:A100 range as per your data; subtract 1 for the header row.)
Use custom number formatting for text prefixes (e.g., "No. ") without altering formulas.
Shortcut: Ctrl + 1
→ Custom format → "No. "0