Smart Systems for Home

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

How to Write a Sequence in Excel: Step-by-Step Guide

· 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

You can create a sequence in Excel in seconds: type the first value in a cell, drag the fill handle down, and Excel continues the pattern. For a custom step (like 5, 10, 15), type the first two values, select both, then drag. For a formula-driven sequence, use =SEQUENCE(rows, columns, start, step) in Excel for Microsoft 365 and Excel 2021 and later. This guide covers all three methods, plus what to do when the fill handle refuses to cooperate.

What You'll Need

  • Excel on Windows, Mac, or the web (some features like the fill handle work slightly differently in the web version).
  • A blank or existing worksheet.
  • For the SEQUENCE function: Excel for Microsoft 365, Excel 2021, or later. Older versions will show #NAME?.

Step-by-Step

Method 1: Drag the Fill Handle (numbers, dates, weekdays)

  1. Click an empty cell and type your starting value, for example 1. Press Enter.
  2. Click the cell again so it is selected. A small square appears in the bottom-right corner of the selection — that is the fill handle.
  3. Hover over the fill handle until the cursor becomes a thin black cross.
  4. Hold the left mouse button and drag down (or right) as far as you want the sequence to go.
  5. Release the mouse. Excel fills 1, 2, 3, 4… automatically. For dates, typing a date and dragging continues day by day; for weekdays, type "Monday" and drag to continue Monday, Tuesday, Wednesday…

Method 2: Two Values for a Custom Step

  1. Type the first value in a cell, for example 5, and press Enter.
  2. Type the second value in the cell directly below, for example 10, and press Enter.
  3. Select both cells by clicking the first and dragging down one cell, or by holding Shift and clicking the second cell.
  4. Grab the fill handle in the bottom-right corner of the selection and drag down. Excel continues 15, 20, 25… because it detects the step of 5.

This works for any arithmetic step, including decimals (1.5, 3.0, 4.5…) and negative steps (100, 90, 80…).

Method 3: The SEQUENCE Function (dynamic arrays)

  1. Click the cell where you want the sequence to start.
  2. Type =SEQUENCE(10) and press Enter. This spills the numbers 1 through 10 into the cells below.
  3. For more control, use the full syntax: =SEQUENCE(rows, [columns], [start], [step]). For example, =SEQUENCE(5, 1, 100, 10) produces 100, 110, 120, 130, 140 in a single column.
  4. To fill across instead of down, set the columns argument: =SEQUENCE(1, 6) produces 1 through 6 across a row.
  5. To create a grid, set both: =SEQUENCE(3, 4) produces a 3-row by 4-column block of numbers.

Because SEQUENCE is a dynamic array formula, the results spill automatically. If you see #SPILL!, something is blocking the spill range — clear the cells below or to the right and the formula will fill them again.

Method 4: Fill Series Dialog (precise control)

  1. Type your starting value and press Enter.
  2. Select the cell, then go to the Home tab and click Fill (in the Editing group) > Series. Menu labels can differ slightly by Excel version and platform.
  3. Choose Series in Columns or Series in Rows.
  4. Set the Type (Linear, Growth, Date, AutoFill), the Step value, and the Stop value.
  5. Click OK. Excel writes the sequence without dragging.

Common Mistakes

  • Dragging with only one value when you need a step. A single 1 dragged down gives 1, 2, 3 — not 1, 3, 5. Always enter two values first for a custom step.
  • Not holding the fill handle correctly. If the cursor shows a four-headed arrow, you are moving the cell, not filling it. Aim for the thin black cross.
  • Typing the whole sequence by hand. This is slow and error-prone; the fill handle or SEQUENCE is faster and updates cleanly.
  • Using SEQUENCE in an old Excel version. It returns #NAME? because the function does not exist there. Use the fill handle instead.
  • Forgetting that spilled formulas overwrite what is below. If you paste a SEQUENCE formula over existing data, the existing data is replaced. Check the target area first.

Tips

  • Double-click the fill handle to fill down to the end of adjacent data — much faster than dragging in long sheets.
  • Hold Ctrl (Windows) or Option (Mac) while dragging to force a copy instead of a sequence, or to toggle AutoFill options.
  • After dragging, a small AutoFill Options button appears. Use it to switch between "Fill Series," "Copy Cells," and "Fill Formatting Only."
  • For dates, use the Fill Series dialog to step by weekdays, months, or years rather than days.
  • Name your sequence range if you plan to reference it in other formulas — it makes formulas easier to read.

Troubleshooting

  • The fill handle is missing. Go to File > Options > Advanced and make sure "Enable fill handle and cell drag-and-drop" is ticked. On Mac, look under Excel > Preferences > Edit.
  • Dragging copies the same number instead of incrementing. Hold Ctrl (Windows) or Option (Mac) while dragging, or enter two values first so Excel detects the step.
  • Dates fill as the same date repeatedly. Enter two dates with the intended gap first, or use the Fill Series dialog and choose Date with the correct step unit.
  • SEQUENCE returns #NAME?. Your Excel version does not support it. Use the fill handle or Fill Series instead.
  • #SPILL! error. Clear the cells in the spill range. The formula needs empty space to expand.
  • The sequence stops early. You may have dragged over a cell that already contains data, or the Stop value in Fill Series is too low. Delete the blocking content and refill.

Frequently Asked Questions

Can I create a sequence with a step of 0.5?

Yes. Enter 0.5 and 1.0 in two cells, select both, and drag the fill handle. Excel continues 1.5, 2.0, 2.5…

Does SEQUENCE work in Excel 2019?

No. SEQUENCE is available in Excel for Microsoft 365 and Excel 2021 and later. In Excel 2019 and earlier, use the fill handle or the Fill Series dialog.

How do I make a sequence skip weekends?

Use the Fill Series dialog with Type set to Date and Step set to Weekday. Dragging a single date fills every day, including weekends, so the dialog is the reliable method.

Can I number rows automatically when I add new data?

Yes. Put =SEQUENCE(COUNTA(A:A)-1) in the first row of your numbering column, assuming column A holds your data and row 1 is a header. The count adjusts as you add rows. Alternatively, use =ROW()-1 filled down.

Why does dragging give me 1, 1, 1 instead of 1, 2, 3?

Excel is copying rather than filling. Hold Ctrl (Windows) or Option (Mac) while dragging, or check the AutoFill Options button after the drag and choose Fill Series.

Can I reverse a sequence (10, 9, 8…)?

Yes. Enter 10 and 9 in two cells, select both, and drag. Excel detects the negative step and continues downward.