Sub topic 3
Series, categories, and values
This chapter explains the three roles that every cell in a chart plays. It assumes you can select ranges, work in the ribbon, and have a worksheet laid out with headers in the first row and labels in the first column, as covered in the previous chapter. Most chart problems come from Excel assigning these roles differently from how you intended. Once you know how it decides, you can predict and fix those problems.
The three roles
Every chart is built from three kinds of information.
- Values are the numbers that get drawn: the height of a column, the length of a bar, the position of a point on a line, or the size of a pie slice.
- Categories are the labels that say what each value belongs to. They appear on the category axis (the horizontal axis in column and line charts, the vertical axis in bar charts) or as slice labels in a pie chart.
- A series is one set of values that share a meaning, such as "Sales" or "Costs". Each series has a name, shown in the legend, and a list of values. Within a chart, all series share the same categories.
Take this range:
Region Q1 Q2
North 120 135
South 95 100
East 140 150
West 80 90A clustered column chart of this range has two series, Q1 and Q2. It has four categories: North, South, East, and West. Each category shows two columns, one per series. The chart plots eight values in total.
How Excel decides what is what
When you select a range and insert a chart, Excel applies heuristics. They are usually right for well-formed data, and the behavior is predictable.
- A top-left cell that is empty, or a header row that contains text, signals that the first row and column are labels, not data.
- Text in the first column becomes category labels.
- Text in the first row becomes series names.
- Numeric columns become series.
- If the range has more rows than columns, Excel puts each column in its own series. If it has more columns than rows, it puts each row in its own series.
The fifth rule explains many surprises. Suppose you chart a range with 4 regions down the side and 12 months across the top. There are more columns than rows, so Excel creates one series per region, with months as categories. If you wanted one series per month, that is the wrong orientation, and you need to switch it.
Switching rows and columns
Series in rows and series in columns are two views of the same data. To swap them:
- Click the chart.
- On the Chart Design tab, choose Switch Row/Column.
Using the Q1/Q2 example, the original chart groups columns by region and colors them by quarter. After switching, it groups columns by quarter and colors them by region. The data is unchanged. Only the assignment of roles changes.
Which orientation is better depends on the comparison you want to make. Columns that sit next to each other are the easiest to compare. If the question is "which region is strongest in each quarter?", group by quarter. If it is "how did each region change from Q1 to Q2?", group by region.
The Select Data dialog
The Select Data Source dialog shows exactly what Excel decided. Open it by right-clicking the chart and choosing Select Data, or by using Chart Design > Select Data.
The dialog has two panes.
- Legend Entries (Series) on the left lists each series. Selecting one and choosing Edit shows its Series name and Series values.
- Horizontal (Category) Axis Labels on the right lists the categories. Choosing Edit here shows the Axis label range.
Each of these fields holds a cell reference. For the Q1 series in the example, the series name is =Sheet1!$B$1 and the series values are =Sheet1!$B$2:$B$5. The axis labels are =Sheet1!$A$2:$A$5. This is why a chart updates when you change a cell: the chart stores references, not copies of the numbers.
The dialog is where you correct a misread chart. If a series appears with the name "Series1", its name reference is missing. If years such as 2022, 2023, and 2024 are drawn as a series instead of being used as labels, the dialog will show a "2022" entry in the series list. Chapter 11 covers Select Data in more detail. For now, use it to inspect roles.
The SERIES formula
Click a single series in the chart, such as one column, and look at the formula bar. You will see something like this:
=SERIES(Sheet1!$B$1, Sheet1!$A$2:$A$5, Sheet1!$B$2:$B$5, 1)The four arguments are, in order:
| Position | Meaning | Example |
|---|---|---|
| 1 | Series name | `Sheet1!$B$1` |
| 2 | Category labels | `Sheet1!$A$2:$A$5` |
| 3 | Values | `Sheet1!$B$2:$B$5` |
| 4 | Plot order | `1` |
The plot order decides the position of the series in the legend and within a cluster. Changing it reorders the series. You can edit this formula directly, which is a quick way to repoint a series to another range.
When numbers are mistaken for categories
The most common error involves a column of years. Consider this range:
Year Revenue
2022 500
2023 560
2024 610Select all of it and insert a line chart. Because the Year column is numeric, Excel may treat it as a second series. The chart then shows two lines, one for Year, which sits near 2000, and one for Revenue, which sits near 500. The fix has three options.
- Change the header in A1 to text such as "Fiscal year", or leave A1 empty. A blank top-left cell tells Excel the first column is labels.
- Open Select Data, remove the Year series, then edit the horizontal axis labels to point at
A2:A4. - Store the years as text by formatting the cells as Text before typing the values.
Dates behave differently. Excel recognizes real date values in the category column and may switch to a date axis, which spaces points in proportion to elapsed time, not evenly. This is usually what you want for a line chart. It can mislead in a column chart if the dates are irregular, and you can change it in Format Axis > Axis Type.
Rules by chart type
The same roles apply to all four chart types, but the number of series they accept differs.
| Chart type | Series it uses | Notes |
|---|---|---|
| Column | One or more | Multiple series are clustered side by side or stacked |
| Bar | One or more | Same as column, with the axes turned sideways |
| Line | One or more | Each series is one line |
| Pie | Exactly one | Extra series are ignored, and only the first is drawn |
The pie limit matters. If you select a two-series range and insert a pie chart, only the first series appears, and the second is silently dropped. Pie slices also need positive values, since a slice cannot have negative size.
Non-contiguous selections
You do not need to chart a whole table. Hold Ctrl while selecting to pick separate blocks. To chart Region and Q2 while skipping Q1, select A1:A5, then hold Ctrl and select C1:C5. Excel reads the first selected block as categories and the second as a series. Keep both blocks the same height, and include the header cells in both, or the roles can be misassigned.
Worked example
Start with this data in A1:C5:
Region Q1 Q2
North 120 135
South 95 100
East 140 150
West 80 90- Select
A1:C5and insert a clustered column chart. Confirm the legend shows Q1 and Q2 and that the axis shows four regions. - Click the Q2 columns and read the formula bar. Confirm the third argument is
Sheet1!$C$2:$C$5. - Choose Switch Row/Column. The axis now shows Q1 and Q2, and the legend shows four regions.
- Switch back, open Select Data, select Q1, and click Remove. Only Q2 remains.
- Click Add, set the series name to
=Sheet1!$B$1and the values to=Sheet1!$B$2:$B$5. Q1 returns, now as the second series in plot order.
After this, you can read any chart by asking three questions. Which cells are the series names? Which cells are the category labels? Which ranges hold the values?
Exercise
You select a range with years 2021 to 2025 in column A (header "Year") and sales in column B (header "Sales"), then insert a line chart. The chart shows two lines. Why, and what are two ways to fix it?
Show answer
The years are numbers, so Excel treats the Year column as a second series of values, drawn as a line near 2000. Fix it by clearing or changing the A1 header so Excel reads column A as labels (for example, rename it to "Fiscal year" or leave it empty). Alternatively, open Select Data, remove the Year series, and edit the horizontal axis labels to point at A2:A6.
Exercise
A range has 3 products down the rows and 6 months across the columns. You insert a column chart and see 3 series with 6 categories each. You want 6 series (one per month) with 3 categories. What do you do, and which part of the SERIES formula changes?
Show answer
Click the chart and choose Chart Design > Switch Row/Column. In each SERIES formula, the series name and the values now point at the month columns, and the category argument points at the product names in the first column.