Blog · Google Sheets

Google Sheets chart data range: why your chart grabs the whole table

You click one cell, insert a chart – and Google Sheets builds a chart from the entire table next to it. It is not a bug. Sheets is guessing your data range, and here is how to take control of it in 30 seconds.

You selected one cell …
DivisionSalesTarget%Gauge
Game227.721215.000105,9 %105,9 %
Productivity169.655177.25095,7 %95,7 %
Utility145.397175.55082,8 %82,8 %
… Sheets charts the whole shaded block.

The Google Sheets chart data range is the set of cells a chart reads its numbers from. When you insert a chart, Sheets fills that range in for you. If your selection touches other data – no empty row or column in between – Sheets assumes you meant the whole block and “combines” the cells into one chart. This came up in one of our Google Sheets trainings this week, so here is the explanation and the fix.

Why Google Sheets extends your selection

Sheets tries to save you clicks. When you select a single cell, or only part of a table, and choose Insert › Chart, it looks at the cells around your selection. Everything that is connected – every neighbouring cell with content, up to the first completely empty row and column – is treated as one table. That block becomes the data range.

In practice, that means: a highlighted result cell sitting right next to your summary table is part of the table, as far as Sheets is concerned. You wanted one gauge, Sheets gives you labels, totals, targets and percentages in one chart.

The rule to remember: Sheets does not chart what you selected. It charts what you selected plus everything touching it – unless you tell it otherwise.

Fix the Google Sheets chart data range in the chart editor

You do not need to rebuild the chart. Correct the range in the chart you already have:

  1. Double-click the chart. The Chart editor opens on the right.
  2. Go to Setup › Data range.
  3. Replace the suggested range with exactly the cells you want, e.g. R6 for one value or Q6:Q8 for three.
  4. Check Chart type – Sheets sometimes switches it when the range changes.
  5. Remove any series or labels you do not need under Series and X-axis.

Tip: click the small grid icon in the data range field and select the cells with the mouse. Need a label column as well? Click Add another range in the same dialog.

Three ways to prevent it next time

1

Select the exact range before you insert the chart

Drag over the cells you want – at least two cells – then insert the chart. With a real multi-cell selection, Sheets uses what you marked instead of guessing.

2

Leave an empty column or row between tables

An empty column between your summary table and your result cells tells Sheets where one table ends. Dashboards get easier to read for people, too.

3

Use a small helper table for each chart

Build a mini table with just the label and the value the chart needs, e.g. =Q6. The chart points to the helper table, the helper table points to your data. Clean, and easy to check.

Gauge charts: one value per gauge

Gauge charts make the problem very visible. A gauge chart shows one dial per value in the data range. Point it at a whole table and you get a row of dials for numbers that were never meant to be gauges – or a chart that seems to “combine” cells.

You wantData rangeResult
One gauge for the totalThe one cell with the result, e.g. H11One dial
One gauge per divisionLabels plus values, e.g. N6:N8 and Q6:Q8Three labelled dials
Anything elseA whole tableToo many dials, confusing labels

Set minimum and maximum under Customise › Gauge, for example 0 to 1,2 for percent of target, so the needle tells the story at a glance.

Two traps that stop your chart from updating

A

Typed or pasted values instead of formulas

If a result cell contains a pasted number like 105,92 %, the chart shows that number forever. Change the sales data and nothing moves. Use a formula such as =Q6, or chart the formula cells directly.

B

SUMIF ranges that move when you drag the formula down

Write =SUMIF(A5:A44,N6,C5:C44) and drag it down, and the next row reads A6:A45, then A7:A46. Sometimes the results are still right – until the data changes. Lock the ranges with dollar signs:

=SUMIF($A$5:$A$44,N6,$C$5:$C$44)

Press F4 while the cursor is in a reference to add the dollar signs. In German-language Sheets, use semicolons instead of commas between the arguments.

Checklist: every chart, every time

  • Range checked under Setup › Data range.
  • Only the cells the chart needs.
  • Empty column between tables.
  • Chart cells contain formulas, not pasted values.
  • Ranges in formulas locked with $.
  • Chart type checked after every range change.

Print it, pin it next to your screen – or share it with your team before the next reporting round.

Further resources

Google Sheets training for teams

Live training with your team’s own data – from clean tables to dashboards.

Advanced Google Sheets training

Data integrity, logic, visualisation and automation for teams who report in Sheets every week.

Advanced Excel training

The same skills for teams working in Excel – charts, formulas and clean models.

FAQ on the Google Sheets chart data range

Why does my Google Sheets chart use the whole table?
Because your selection touches other data. When you select one cell or part of a block and insert a chart, Google Sheets extends the selection to all connected cells up to the first empty row and column, and uses that block as the data range.
How do I change the data range of a chart in Google Sheets?
Double-click the chart, open Setup in the chart editor and edit the Data range field. Type the range, for example Q6:Q8, or click the grid icon and select the cells with the mouse.
Can a chart use two ranges that are not next to each other?
Yes. Click the grid icon in the data range field and choose Add another range. This is useful for a label column plus a value column.
Why does my chart not update when the data changes?
Usually because the chart points to cells with pasted values instead of formulas, or because the data range ends before your new rows. Chart formula cells, and extend the range to cover new data.
How many values does a gauge chart need?
One value per gauge. A range with one cell shows one dial; a range with three values shows three dials. Add a label column if you want each dial named.
What do the dollar signs in a SUMIF formula do?
They lock the reference. With $A$5:$A$44 the range stays the same when you copy or drag the formula, so every row sums the same data. Press F4 to add them.
Jörn Steinz, Google Sheets trainer at SkillDay

About the author

Jörn Steinz is the founder of SkillDay and trains teams in Google Sheets, Excel and data storytelling. He has run more than 1.000 workshops and trainings since 2014. Before that he worked as a consultant at Accenture and in corporate development at XING and freenet.

Want your team to build dashboards like this with confidence?

In our Google Sheets training your team works on its own reports – clean data, solid formulas, charts that update by themselves.

Prefer a talk for your team meeting? Book Jörn as a speaker.