Sub topic 2
Laying out your data so it charts cleanly
Assume you know how to select cells and enter simple formulas in Google Sheets. This chapter focuses on preparing the source table before you insert a chart.
Use one row for each record
A chart works best when your data has a predictable structure:
- The first row contains column headers.
- Each later row contains one record, such as a month, product, or region.
- Each column contains one type of value.
- The first column usually contains labels for the horizontal axis.
- Numeric columns contain the values you want to compare or plot.
For example, this table records monthly sales for two regions:
| Month | North | South |
|---|---|---|
| January | 4200 | 3800 |
| February | 4600 | 4100 |
| March | 5100 | 4500 |
Google Sheets can interpret Month as the category labels and North and South as data series. A data series is a group of related values shown together in a chart.
Keep the table rectangular. Do not put notes, subtotals, or unrelated calculations inside the range that you plan to chart.
Month,North,South
January,4200,3800
February,4600,4100
March,5100,4500Keep headers and values unambiguous
Use short, descriptive headers. A header such as Sales is clearer than Column C. Include units when they matter, such as Revenue ($) or Temperature (°C).
Store numbers as numbers, not text. A value such as 4200 can be plotted and summed. A value typed as $4,200 may be interpreted as text if the cell format or pasted content is inconsistent. Apply currency or percentage formatting to numeric cells instead of typing symbols into the value.
Dates should also be real date values. Use the same date pattern throughout a column. A chart can sort actual dates in time order, while text such as March, January, and February may be sorted alphabetically.
Avoid merged cells in the source range. Merged headings may look attractive, but they make it harder for Sheets to identify headers and series.
Choose a layout for the question
Use a wide layout when each measurement type deserves its own column:
| Month | Revenue | Costs | Profit |
|---|---|---|---|
| January | 12000 | 7000 | 5000 |
Use a long layout when many categories or groups will change over time:
| Month | Region | Sales |
|---|---|---|
| January | North | 4200 |
| January | South | 3800 |
| February | North | 4600 |
The wide layout is convenient for a simple line or column chart. The long layout is useful for filtering, summarising, or creating a pivot table before charting.
Check the range before charting
Before inserting a chart, confirm that:
- The header row is included.
- Every intended record is included.
- Blank rows and columns are excluded.
- Totals are either excluded or deliberately included.
- The category labels and numeric columns line up row by row.
A total row can distort a chart because it is another category. Put totals outside the chart range unless the total itself is part of the comparison.
Exercise
You have columns named Product, January, February, and March, followed by a Total row. What should you check before charting?
Show answer
Include the header row and product rows, exclude unrelated blank cells, and usually exclude the Total row unless comparing each product with the total is intentional.