Sub topic 2
Laying out your data for a chart
This chapter assumes you can move around a workbook, select ranges, and use the ribbon. It covers how to arrange cells so Excel reads them as categories and series without manual fixes. The next chapter names those parts formally.
Why layout matters
Excel does not ask what your data means. It looks at the shape of the selected range and guesses which cells are labels and which are values. A clean layout makes the guess correct. A messy layout produces charts with missing labels, numbers treated as categories, or one series where you expected several.
The basic layout
Use a rectangular block with these properties:
- One header row at the top, with a short name for each column.
- One category column on the left, holding labels such as regions, months, or products.
- One or more value columns to the right, holding numbers only.
- No blank rows or blank columns inside the block.
Here is a range that follows these rules:
Region Sales
North 120
South 95
East 140
West 80Region is the category column. Sales is the value column. Excel plots one value per category, so this range yields four columns, four bars, or four pie slices, depending on the chart type you pick later.
Adding more series
To compare several measures, add more value columns. Each new column becomes its own set of bars or its own line.
Region 2024 2025
North 110 120
South 90 95
East 130 140
West 75 80Every value column needs a header. Excel uses that header as the name in the legend.
Common layout errors
| Problem | What you see | Fix |
|---|---|---|
| Top-left cell is filled in a year-only layout | Years are plotted as a data series | Leave the top-left cell empty, or write the years as text |
| Numbers stored as text | A column is missing or plotted as zeros | Convert the cells to numbers |
| Blank row inside the range | Chart stops early, or splits into two parts | Delete the blank row |
| Totals row included in the selection | A huge "Total" column dwarfs the others | Select only the data rows |
| Merged cells in headers | Labels shift or disappear | Unmerge and give each column its own header |
The year problem is the most common. If your header cells contain numbers like 2024 and 2025, Excel may treat that row as data, not labels. Typing the headers as text, for example '2024, avoids this.
Orientation
Excel can read series down columns or across rows. By default it picks whichever gives fewer series, which usually matches the layout above. If the chart groups things the wrong way, you can switch it later with Switch Row/Column on the Chart Design tab. Starting with categories down the left side makes this rarely necessary.
Exercise
A range has the headers Month, Revenue, Cost in A1:C1, twelve monthly rows below, and a Total row in row 14 with a blank row 13 between. You select A1:C14 and the chart looks wrong. What are the two problems, and what should you select?
Show answer
The blank row 13 breaks the block, and the Total row is plotted as another category with values much larger than the months. Select only A1:C13 after deleting the blank row, or select A1:C12 if the blank row stays and the Total row is excluded. In both cases the Total row is left out.