Function Problems

Create Sequential Number Ranges from Counts in Excel

John WilsonJohn Wilson Dec 2, 2026 869 views

Question details

Create consecutive number ranges from a starting number and a list of counts.

Create Sequential Number Ranges from Counts in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains counts, and each row needs a range that begins after the preceding range.
Observed behavior
Each range should contain the specified number of items, with no gaps between ranges.
Before you start

Place positive whole-number counts in column A beginning at A2, and leave columns B through D available for the results. Choose the starting number for the first range; this example uses 361.

Solution 1Recommended

Calculate Sequential Ranges with Helper Columns in Excel

Use start and end columns to calculate each range, then combine them for display.

1
Enter the first start

In cell B2, enter =361. Replace 361 with your desired starting number.

2
Calculate the first end

In cell C2, enter =B2+A2-1. This includes the starting number in the count.

3
Start the next range

In cell B3, enter =C2+1. This makes the next range begin immediately after the previous one.

4
Display the range

In cell D2, enter =B2&"–"&C2 to join the start and end with a dash.

5
Fill down

Select B3 and drag its fill handle down through the count rows. Then fill the formulas in C2 and D2 down alongside the counts.

Calculate Sequential Ranges with Helper Columns in Excel
Example: If A2 contains 6, the first range is 361–366. The next range starts at 367.
Calculate ranges in WPS Office

Build Sequential Number Ranges in WPS Spreadsheet

Use the same helper-column formulas in WPS Spreadsheet to turn a list of counts into consecutive ranges.

  1. 1. Open the worksheet: Open WPS Spreadsheet and enter positive whole-number counts in column A, beginning at A2.
  2. 2. Set the first range: Enter =361 in B2 and =B2+A2-1 in C2. Change 361 to your desired starting number.
  3. 3. Add the next start and display formula: Enter =C2+1 in B3 and =B2&"–"&C2 in D2.
  4. 4. Fill the formulas down: Drag the fill handle from B3 down through the count rows, then fill C2 and D2 down to display all ranges.
Calculate consecutive ranges from a starting number and countsOpen and edit Microsoft Excel XLSX filesUse familiar spreadsheet cells and fill handlesWork with a free, easy-to-use office suite
microsoft office alternative - wps office

Frequently Asked Questions

How do I change the starting number?

Change the number in B2 from 361 to your preferred starting number. The formulas in the following rows will recalculate the ranges.

Why does the end formula subtract 1?

The starting number counts as the first item. For example, =361+6-1 gives 366, making 361–366 a range of six numbers.

What happens if a count is zero?

The end formula produces a number below the start, so it does not represent a valid range. Use positive whole-number counts in column A for this method.

Can I display the range in one cell?

Yes. Enter =B2&"–"&C2 in D2 and fill the formula down. Columns B and C still calculate the start and end values.