Blog / Guides 3 min read ·

A Sankey chart from Google Sheets: paste the table

Open the chart editor in Google Sheets and look for a Sankey: there isn't one. The usual answers are an add-on or a script against the Google Charts library. There is a shorter route that leaves your data where it is: keep the flows in Sheets as three columns, copy them, and paste them into SankeyCharts.app.

Three columns and a header

A Sankey is a list of flows: from where, to where, how much. In Sheets that is one row per flow under a header row, for example Source, Target and Amount (€):

  • Salary, Budget, 3,000
  • Side job, Budget, 400
  • Budget, Rent, 1,200
  • Budget, Food, 450
  • Budget, Savings, 600

Copy, paste, done

Select the three columns including the header row and copy them. Open the free maker and paste into the first empty row of the sheet under the diagram. The header tells the sheet which column is which: Source or From, Target or To, Amount or Value. Every name becomes one node, each row one flow, and the bands are sized by amount.

A unit in the amount's header, such as Amount (€) or Energy (GWh), becomes the chart's unit, and numbers are read the way Sheets shows them: "3,000" is three thousand. List each pair once when pasting; if your sheet repeats a pair, download it as a .csv or .xlsx file and use File, then Import from Excel or CSV instead, which adds repeated pairs together.

What a Sheets chart could not have told you

Each node's inflow is checked against its outflow, and a node that takes in more than it passes on is flagged on its row: a budget where the spending does not add up to the income shows itself before you share it. Groups give related nodes a shared colour, and stages put a title over each column.

A paste is a copy, not a live link. When the numbers change, paste the columns again. For more on the source, target, amount format and on getting a table into that shape, QueryChart has the details.

Frequently asked questions

Can Google Sheets make a Sankey chart?

Not with its built-in charts: the Sheets chart editor has no Sankey type. Keep the data in Sheets as source, target and amount columns and paste them into a Sankey maker such as SankeyCharts.app.

Do I need an add-on?

No. Copy the columns from Sheets and paste them into the maker. Nothing is installed in your Google account.

What if the same source and target appear on several rows?

When pasting, list each pair once. Importing the downloaded file instead adds repeated pairs together into one flow.

Try it on your own numbers

The editor is free and opens with a starter Sankey diagram. One row per flow, typed or pasted, and the diagram draws itself. No signup required.

Create Your Sankey Diagram Free