Excel Series Function Explained How to Use It
In this article
The Excel SERIES function creates a sequence of numeric values that can serve as X‑axis labels for charts or as inputs for other calculations; it is especially useful when you need a predictable series of numbers without manually typing each one.
What You'll Need
- A workbook opened in Excel, any version from Excel 2007 onward.
- At least one empty column or row where the series will be placed.
- Basic familiarity with the formula bar and cell references.
Step-by-Step
- Determine the purpose of the series. For a basic line chart you need sequential X values such as 1,2,3,4,5. For a more complex scatter plot you might need numbers that correspond to dates or time intervals.
- Select the starting cell where the series will begin. Click the cell or use the arrow keys to place the cursor.
- Enter the first value of the series, typically 1 or 0 depending on how you want the axis to start. If the series should begin at a different number, type that number directly.
- Open the formula bar and type the SERIES function with the required arguments. The syntax is =SERIES(start_num, end_num, step_num, [series_type]), where start_num is the first number, end_num is the last number you want, step_num is the increment between numbers, and series_type is optional and usually left blank for default behavior.
- Press Enter. Excel will fill the selected cell with the first number and automatically spill the remaining numbers into adjacent cells based on the step you provided.
- Example: =SERIES(1,10,1) produces the list 1,2,3,4,5,6,7,8,9,10 across ten cells.
- Example with a step of 2: =SERIES(5,15,2) generates 5,7,9,11,13,15.
- If you want the series to reference cells that may change, use cell references instead of literal numbers. For instance, if cell A1 contains 1, cell B1 contains 10, and cell C1 contains 1, the formula =SERIES(A1,B1,C1) will automatically adjust when any of those cells are edited.
- Copy the formula to additional rows or columns by dragging the fill handle. The series will continue from where the previous entry left off, preserving the same step size.
- When the series is used as X values for a chart, select the data range that includes both the Y values and the newly created series, then insert the desired chart type. The chart will automatically use the generated numbers as the horizontal axis.
Common Mistakes
One frequent error is providing non‑numeric arguments; Excel will return a #VALUE! error if any argument is text or an empty cell. Another mistake is forgetting to separate arguments with commas, which also triggers a syntax error. Additionally, using a step value of zero causes a #DIV/0! error because division by zero is undefined. Finally, if the start number is greater than the end number while using a positive step, Excel will return an empty result; to create a descending series you must use a negative step.
Tips
Combine SERIES with the OFFSET function to create dynamic ranges that expand automatically as new data is added. For example, =OFFSET(A1,0,0,COUNTA(A:A),1) can be used together with SERIES to generate a series that matches the exact count of existing entries.
When building a chart, you can link the series directly to a named range. Define a name such as MyXValues that refers to =SERIES(1,100,1), then use that name in the chart data source. This makes the chart update automatically if the named range parameters are changed.
If you need a series that represents dates, you can combine SERIES with the SEQUENCE function (available in newer Excel versions) to generate a list of actual date values rather than simple integers.
Remember that the series fills outward from the starting cell. If you select a range of multiple cells before entering the formula, Excel will distribute the numbers across that entire range, which can be useful for creating matrices of sequential values.
Additional Section: Using Series with Multiple Variables
Excel does not have a built‑in multi‑dimensional SERIES function, but you can simulate a two‑dimensional series by nesting SERIES calls or by using array formulas. For example, to create a grid where rows represent one series and columns represent another, place =SERIES(1,5,1) in the first row and =SERIES(10,14,1) in the second row, then copy the pattern across the desired width. This technique is handy when preparing data for surface charts or heat maps where both axes require sequential numbering.
Additional Section: Verifying the Output
After the series is generated, it is good practice to double‑check a few cells manually. Click on a cell that should contain a specific number and verify that the value matches expectations. If the series does not appear as anticipated, review the formula for typographical errors, ensure that all arguments are numeric, and confirm that the step value is appropriate for the direction you need. Using the Evaluate Formula tool under the Formulas tab can step through each argument to pinpoint problems.
Troubleshooting
If the series remains empty, first confirm that the target cells are not protected; protected sheets prevent formulas from overwriting existing content. Next, check the formula bar for correct syntax: =SERIES(start_num,end_num,step_num). A missing comma or an extra argument will cause Excel to treat the entire expression as text. Also verify that the start, end, and step values are not the result of a formula that returns an error; a #REF! or #VALUE! in any of those cells will propagate to the series.
When the series produces unexpected numbers, examine the step value. A negative step will generate a descending series, while a fractional step (such as 0.5) is not allowed and will cause a #VALUE! error. Use whole numbers for step unless you specifically need a different increment that can be expressed as a whole number.
Finally, if the series spills into cells you did not intend, adjust the selection before entering the formula or use a single cell reference and let the spill behavior handle the expansion. In older Excel versions that do not support dynamic arrays, you may need to copy the resulting values manually to the desired range.