
How to Create a Sankey Diagram in Excel: Step-by-Step Guide (2026)
Learn how to make Sankey diagrams in Excel using add-ins, manual workarounds, and dedicated tools. Complete step-by-step guide with templates, examples, and best alternatives.
Making Sankey Diagrams in Excel: A Practical Walkthrough
Few chart types communicate proportional flows as clearly as Sankey diagrams. The variable-width bands connecting nodes give viewers an immediate, intuitive sense of scale: wide bands carry more volume, narrow bands carry less. That clarity makes Sankey diagrams the go-to format for energy audits, budget breakdowns, user journey mapping, and supply chain analysis.
The difficulty is that Excel never shipped with a native Sankey chart type. Workarounds exist, though, and this guide covers all of them in depth: purpose-built add-ins, a manual stacked-chart construction technique, the Power BI path, and dedicated Sankey tools that take your spreadsheet data and produce a polished diagram in seconds.

Sankey Diagram Generator
Create professional Sankey diagrams instantly with AI. Just describe your data flows and get a publication-ready diagram in seconds, no Excel formulas needed.
Try Sankey diagram maker free →Why Excel Lacks a Built-In Sankey Chart Type
Excel offers a broad library of chart types: bar, line, scatter, pie, waterfall, treemap, sunburst, and others. A Sankey diagram sits outside that library because its rendering requirements differ from every standard chart type Excel supports. Specifically, a Sankey chart requires:
- Bands with variable widths that curve smoothly between source and target nodes
- Branching logic so one source can split its flow across multiple destinations
- Width-to-value proportionality so every band's thickness accurately encodes its data value
- Automatic node placement that reduces visual crossing and overlap
Excel's underlying chart engine was not architected to handle these requirements. Power BI, a separate product in the Microsoft ecosystem, does support a Sankey visual through its marketplace, but the desktop Excel application has not followed suit.
Given that gap, you have three realistic paths:
- Add-in method: Install a third-party add-in that extends Excel with Sankey charting
- Manual method: Construct an approximation from stacked area and column charts
- External tool method: Keep data in Excel, visualize with a dedicated Sankey application
Each approach has its place, and the sections below break each one down completely.
Method 1: Creating Sankey Diagrams in Excel with Add-Ins
Installing an add-in is the path of least resistance for users who want a Sankey chart embedded in their workbook. Several third-party developers offer add-ins that plug a Sankey chart type directly into Excel's Insert menu.
Excel Add-Ins Worth Evaluating
| Add-In | Compatible Platforms | Pricing Model | Notable Capability |
|---|---|---|---|
| ChartExpo | Excel, Google Sheets | Free tier with paid upgrades | Single-click chart creation |
| Power-user | Excel, PowerPoint | Subscription | Advanced styling controls |
| ChartEngine | Excel | Free core, premium tier | Support for multi-stage flows |
Detailed Walkthrough: Add-In Method
The steps below apply to most Excel Sankey add-ins with minor variations in button labels.
Step 1: Arrange your data in a three-column table
The universal Sankey data format places source names in column A, target names in column B, and numeric flow values in column C:
| Source | Target | Value |
|---|---|---|
| Solar | Residential | 120 |
| Solar | Commercial | 80 |
| Wind | Residential | 90 |
| Wind | Industrial | 150 |
| Natural Gas | Residential | 200 |
| Natural Gas | Commercial | 180 |
| Natural Gas | Industrial | 300 |
| Coal | Industrial | 250 |
Every row defines one directional flow. The value column sets the band width in the finished diagram.
Step 2: Install the add-in from the Office store
- Open Excel and select the Insert tab
- Click Get Add-ins (some versions show this as Store under My Add-ins)
- Search by name for your chosen add-in
- Click Add to install, then restart Excel if prompted
Step 3: Select your data range
Click and drag to highlight all three columns including header row. Confirm there are no empty rows within the selected range, as gaps will break most add-ins.
Step 4: Generate the Sankey chart
- Open the add-in from the Insert tab or sidebar
- Locate the Sankey or flow chart option in its chart gallery
- Click to insert the chart into your worksheet
Step 5: Refine the visual output
Add-in control panels typically let you:
- Reassign colors to individual source or target categories
- Reposition node labels
- Show or hide numeric value annotations
- Change the chart title
- Resize the chart object on the sheet
Downsides of the Add-In Approach
Add-ins are convenient, but they introduce friction in certain situations:
- Organizational IT policies often block unapproved third-party add-ins on corporate machines
- Portability problems arise when sharing workbooks with colleagues who lack the same add-in installed
- Styling ceilings mean that a dedicated Sankey tool will almost always produce a more polished diagram
- Sluggish performance on diagrams with many nodes or hundreds of data rows
- Subscription paywalls behind the more useful customization features
Method 2: Building a Sankey Diagram Manually Using Stacked Charts
Users without add-in access can produce a reasonable Sankey approximation entirely from native Excel chart types. The technique relies on layering stacked area charts (for the curved flow bands) on top of stacked column charts (for the node pillars). It is technically valid but demands significant setup time.
The Logic Behind This Technique
The fundamental idea breaks into four parts:
- Build stacked area charts in which transparent spacer series position each flow band at the correct vertical location
- Build stacked column charts to represent the left-side source nodes and right-side target nodes
- Set all spacer series to invisible fill, leaving only the colored data series visible
- Stack all individual charts on one canvas with precise positional alignment
Step-by-Step Manual Construction
Step 1: Enter source data
Begin with the standard three-column layout:
| Source | Target | Value |
|---|---|---|
| Dept A | Project X | 40 |
| Dept A | Project Y | 30 |
| Dept A | Project Z | 10 |
| Dept B | Project X | 25 |
| Dept B | Project Y | 35 |
| Dept C | Project Y | 20 |
| Dept C | Project Z | 45 |
Step 2: Build helper calculation tables
This is the most demanding part of the process. For each flow band you need to calculate several values:
- Source totals: Sum of all flows originating from each source node (use
SUMIF) - Target totals: Sum of all flows arriving at each target node (use
SUMIF) - Cumulative offset above: Total of all bands positioned above the current band at its source level
- Cumulative offset below: Remaining space below the current band at its source level
- Actual flow value: The raw number from your data table
Formulas like SUMIF, XLOOKUP, ISNUMBER, and nested IF statements power these calculations. A complete helper table for a diagram with seven flows can run to fifty or more formula cells.
Step 3: Insert individual area charts per source node
For each source category, insert a 100% stacked area chart containing three series:
- Top spacer (set to no fill, no border)
- Flow band (set to a solid or semi-transparent color)
- Bottom spacer (set to no fill, no border)
Step 4: Strip each chart of all decorative elements
- Delete axis lines, tick marks, and axis labels
- Remove gridlines and the legend
- Delete the chart title
- Set the chart plot area to a transparent background
- Reverse the Y axis so the top of the chart represents the top of the diagram
Step 5: Create the node pillar charts
Insert 100% stacked column charts for the left column (sources) and right column (targets). Each segment in the column corresponds to one node category, colored to match its associated flow band.
Step 6: Assemble on a single canvas
- Hold Ctrl and select all the individual area charts plus both pillar charts
- Use Shape Format alignment tools to center all objects horizontally and vertically
- Place the source pillar at the far left and the target pillar at the far right
- Fine-tune positions until bands connect visually to the correct segments on each pillar
Is the Manual Method Worth Your Time?
For most practitioners the answer is no. Consider the effort involved:
| Factor | Honest Assessment |
|---|---|
| Initial build time | Two to four hours for a straightforward diagram |
| Formula complexity | Fifty or more interdependent cells |
| Data update effort | Adding one flow category can require rebuilding the helper tables entirely |
| Risk of errors | A single misplaced formula corrupts the entire visual |
| Output quality | Noticeably rougher than diagrams from dedicated tools |
The manual method has real educational value as a one-time exercise. It teaches you precisely how Sankey layouts are constructed. For recurring work, though, the fragility and time cost make it impractical.

A polished Sankey diagram of material flows through a production system, illustrating the level of clarity that purpose-built tools deliver
Method 3: Connect Your Excel Data to Power BI
Power BI is Microsoft's dedicated business intelligence platform, and it supports Sankey diagrams through its visual marketplace. Because Power BI can ingest Excel workbooks as live data sources, it is a natural bridge for users already invested in the Microsoft ecosystem.
Getting from Excel to a Power BI Sankey Chart
- Download and open Power BI Desktop (available free from Microsoft)
- Select Get Data and choose Excel Workbook
- Browse to your file and load the three-column table
- In the Visualizations pane, click Get more visuals and search for Sankey
- Install a Sankey visual from AppSource (Microsoft publishes one; other vendors offer alternatives)
- Map your fields: Source column to the Source well, Target column to the Destination well, Value column to the Weight well
- Adjust colors, node widths, and label settings in the Format panel
Power BI: Benefits and Drawbacks
What works well:
- Charts are interactive: viewers can hover for tooltips or click nodes to filter the data
- The Excel workbook remains the single source of truth; refresh Power BI to pick up data changes
- Power BI Desktop is free to download and use locally
Where it falls short:
- Sharing interactive reports requires a Power BI Pro or Premium license
- Learning the Power BI interface adds time if you just need a static export
- The Sankey visual is a marketplace add-on, not a first-party built-in feature
- Teams without Power BI experience face a steeper ramp-up than with a web-based Sankey tool
Method 4: Use a Dedicated Sankey Diagram Tool
For the majority of users, the most efficient workflow is to manage data inside Excel and send it to a specialized Sankey application for visualization. These tools exist for exactly this purpose and eliminate all the workarounds that Excel methods require.
Dedicated Sankey Tools at a Glance
| Tool | Primary Strength | How to Import Excel Data | Cost |
|---|---|---|---|
| Figviz | AI-assisted generation | Paste data directly | Free tier available |
| SankeyMATIC | Fast setup for simple flows | Text input format | Free |
| Flourish | Embeddable interactive charts | CSV file upload | Free and paid tiers |
| RAWGraphs | Open-source, no account needed | Paste from clipboard | Free |
| Google Charts | Programmatic embedding | API input | Free |
Standard Workflow: Excel to External Tool
The transfer from spreadsheet to diagram takes fewer than five minutes:
- Format your data in Excel using Source, Target, Value columns
- Select and copy the data range (Ctrl+C)
- Open your chosen Sankey tool in a browser tab
- Paste or upload the data into the tool's input field
- Adjust node colors, label fonts, band transparency, and chart dimensions
- Export the finished diagram as PNG, SVG, or PDF
This approach keeps your spreadsheet as the authoritative data record while delegating visual rendering to a tool built specifically for it.

AI Chart Generator
Generate any chart type from your data with AI, including Sankey diagrams, flow charts, and more.
Real-World Use Cases for Sankey Diagrams
Knowing where Sankey diagrams shine helps you decide whether the Excel challenge is worth tackling or whether a faster external tool makes more sense.
1. Energy Flow Analysis
Captain Matthew Sankey invented this chart type in 1898 to illustrate the thermal efficiency of steam engines. That original application has expanded considerably. Modern energy Sankey diagrams map generation sources to distribution grids to end consumers across entire national energy systems.
Sample data:
| Source | Target | Value (TWh) |
|---|---|---|
| Coal | Electricity | 350 |
| Natural Gas | Electricity | 280 |
| Natural Gas | Heating | 150 |
| Nuclear | Electricity | 200 |
| Renewables | Electricity | 180 |
| Electricity | Residential | 310 |
| Electricity | Commercial | 250 |
| Electricity | Industrial | 450 |
| Heating | Residential | 100 |
| Heating | Commercial | 50 |
2. Website Traffic and Conversion Paths
Digital analysts use Sankey diagrams to trace how visitors arrive at a site, which pages they navigate through, and where they drop off before completing a conversion goal.
3. Budget and Revenue Allocation
Finance teams build Sankey diagrams to show how total revenue distributes across departments, cost centers, and individual expenditure categories within a reporting period.
4. Supply Chain and Material Flow
Manufacturers diagram the movement of raw materials from suppliers through production stages to finished goods leaving the warehouse, making inefficiencies and bottlenecks immediately visible.
5. Survey and Cohort Analysis
Academic researchers and UX teams use Sankey diagrams (sometimes called alluvial diagrams in scholarly literature) to track how survey respondents shift across categorical response groups between multiple survey waves.

A Sankey diagram mapping research grant funding from sources through institutional departments to project categories
Design Principles for Effective Sankey Diagrams
Sound design choices improve clarity regardless of which tool or method you use to build the diagram.
Data Preparation Guidelines
- Limit nodes to five through eight per level to keep the chart readable rather than crowded
- Standardize category names precisely as minor spelling differences create duplicate nodes in the visualization
- Confirm that totals balance between source and target levels so the diagram does not have unexplained gaps
- Sort categories by size placing the largest flows at the top of each column
Visual Design Choices
- Assign distinct colors to source categories so viewers can follow individual flows across multiple levels
- Set band transparency between 40 and 60 percent to let crossing bands remain individually readable
- Label selectively showing values only for the largest flows to avoid a cluttered annotation layer
- Orient flows left to right as Western readers parse information in that direction naturally
Mistakes to Avoid
| Common Error | Resulting Problem | How to Fix It |
|---|---|---|
| Too many nodes at one level | Diagram becomes an illegible tangle | Group the smallest categories under a single "Other" node |
| Inconsistent category spelling | Apparent duplicates break the flow logic | Normalize all names before charting |
| Missing flow rows | Totals do not reconcile, creating orphaned nodes | Audit every source-target pair against raw totals |
| Low-contrast color choices | Individual bands merge visually | Apply a high-contrast palette with sufficient separation |
| No title or node labels | Readers cannot interpret what the diagram shows | Include a descriptive title and label every node |
Formatting Excel Data for Sankey Diagram Tools
Any dedicated Sankey tool will accept data structured in a consistent way. Preparing your Excel file correctly upfront prevents import errors.
Basic Three-Column Structure
| Column A: Source | Column B: Target | Column C: Value |
|---|---|---|
| Category 1 | Subcategory A | 100 |
| Category 1 | Subcategory B | 75 |
| Category 2 | Subcategory A | 50 |
| Category 2 | Subcategory C | 120 |
Extended Multi-Level Structure
Diagrams with three or more stages use the same format: each row still defines a single directional flow. Multiple stages emerge automatically when target nodes in one set of rows appear as source nodes in the next:
| Source | Target | Value |
|---|---|---|
| Revenue | Product Sales | 500 |
| Revenue | Services | 300 |
| Product Sales | North America | 200 |
| Product Sales | Europe | 180 |
| Product Sales | Asia | 120 |
| Services | Consulting | 200 |
| Services | Support | 100 |
This table produces a two-stage diagram: Revenue splits into Product Sales and Services at level one, then those categories split further at level two.
Data Cleanup Steps Before Import
- Delete blank rows because most Sankey tools abort on empty records in the middle of a table
- Keep columns typed correctly with text in source and target columns, numbers in the value column
- Remove circular references as flows looping back from a downstream node to an upstream one break most rendering engines
- Delete zero-value rows since they add nodes without adding visual information
Finding and Using Sankey Diagram Templates for Excel
Excel does not bundle Sankey templates in its default gallery, but the community has produced workable options through several channels.
What a Useful Template Includes
- Preconfigured helper tables with formulas for spacer calculations
- Stacked area chart series set up for flow band rendering
- Stacked column chart series for source and target pillars
- A sample dataset you can replace with your own data
- Documented instructions for adapting the template to a different number of categories
Sources for Finding Templates
- Microsoft Tech Community forums have user-contributed workbooks for specialized chart types
- GitHub repositories: search "excel sankey template" to locate open-source spreadsheet solutions
- Add-in vendors like ChartExpo bundle starter templates with their products
- Tutorial publishers covering Excel advanced charting often offer downloadable companion workbooks
One Caveat About Templates
Templates shorten the initial setup phase but impose structural constraints. If your data has a different category count than the template assumed, adjusting the formulas and adding or removing chart series frequently takes as long as starting from scratch. Templates work best when your data structure is a close match to what the template was built for.
Choosing the Right Approach: A Comparison
Use this table to match your situation to the appropriate method:
| Evaluation Factor | Add-In | Manual Stacked Charts | Power BI | Dedicated Tool |
|---|---|---|---|---|
| Time to first chart | 5 to 10 minutes | 2 to 4 hours | 15 to 30 minutes | 2 to 5 minutes |
| Skill requirement | Low | High | Moderate | Very low |
| Output quality | Good | Moderate | Good | Excellent |
| Customization depth | Limited | Moderate | Good | High |
| Multi-level support | Varies by add-in | Very difficult | Yes | Yes |
| Ease of updating data | Easy | Difficult | Easy | Easy |
| Portability when shared | Requires matching add-in | Fully self-contained | Requires Power BI license | Export as image or PDF |
| Approximate cost range | Free to $20/month | Free | Free to $10/month | Free to $15/month |
Situational Recommendations
- One-time or occasional need: A dedicated Sankey diagram tool delivers the fastest path from data to finished chart
- Recurring interactive dashboards: Power BI connected to Excel provides live updates and interactivity without rebuilding manually
- Locked-down corporate environment: An approved add-in is the only in-Excel option; if none are permitted, export data to an external tool
- Learning how Sankey diagrams work: The manual stacked-chart method is instructive as a single exercise, after which switching to a dedicated tool makes sense
Frequently Asked Questions
Can you make a Sankey diagram in Excel without add-ins?
Yes, though the process is lengthy and demanding. You must construct multiple stacked area charts using invisible spacer series to position each flow band, build helper tables containing dozens of interdependent formulas, and manually align all chart objects on the same canvas. A simple two-level diagram can take two to four hours to complete, and updating the data later often requires rebuilding the helper calculations from scratch. For routine work, an add-in or a dedicated Sankey tool is far more practical.
What is the best free tool to create Sankey diagrams from Excel data?
SankeyMATIC is a popular free choice for straightforward diagrams: paste your data in its text format and the chart renders immediately. For AI-assisted generation with more styling control, Figviz provides a free tier that produces professional-grade Sankey diagrams from your spreadsheet data. RAWGraphs is another strong free and open-source option that accepts CSV data copied directly from Excel.
Does Microsoft Excel support Sankey diagrams natively?
As of 2026, Excel does not include a built-in Sankey chart type in its standard chart gallery. Power BI, a separate Microsoft product, does support Sankey diagrams through a custom visual available in the AppSource marketplace. Power BI can use an Excel workbook as a live data source, making it a viable path for users in the Microsoft ecosystem who need Sankey capabilities.
How should I format my Excel data for a Sankey diagram?
Structure your data as a three-column table: Source (text labels), Target (text labels), and Value (numeric flow quantities). Each row defines a single directional flow. For example, a row reading 'Solar, Residential, 120' means 120 units travel from Solar to Residential. Multi-level diagrams use the same format with additional rows covering each stage of the flow. Eliminate blank rows and make sure category names are spelled identically wherever they repeat.
What is the difference between a Sankey diagram and a flow chart?
Sankey diagrams represent quantitative flows using bands whose widths encode the data values: a wider band means a larger flow. Flow charts represent process sequences and decision logic using standardized shapes connected by uniform-width arrows. Sankey diagrams are data visualization tools for showing proportional distributions; flow charts are process documentation tools for mapping workflows and decision trees.
Can I create a multi-level Sankey diagram in Excel?
Add-ins such as ChartExpo handle multi-level Sankey diagrams by reading additional source-target pairs from your data table, which means adding a level is as simple as appending more rows. The manual stacked-chart method becomes exponentially more complex with each added level and is not realistic beyond two stages. Dedicated Sankey tools manage multi-level diagrams natively and require no extra setup compared to a single-level chart.
How do I export a Sankey diagram from Excel?
For an add-in chart embedded in Excel, right-click the chart object and select Save as Picture to export as PNG or JPEG. Copying the chart into PowerPoint first allows you to export at higher resolution, up to 300 DPI. When using a dedicated Sankey tool, direct SVG and high-resolution PNG export is typically available from the download menu, usually at print-ready quality without any extra steps.
What data types work best with Sankey diagrams?
Sankey diagrams suit any situation where items move from one named category to another and the movement has a measurable quantity: energy distribution networks, corporate budget allocations, website visitor journey maps, manufacturing material flows, and multi-wave survey response tracking. They are a poor fit for time-series data or continuously varying measurements, where line charts or area charts communicate the pattern more clearly.
Summary
Excel offers no native path to a Sankey diagram, but several workable routes exist. Add-ins provide the most direct in-Excel experience for users whose environments allow third-party extensions. The manual stacked-chart method is a valid educational exercise but too fragile and time-consuming for production use. Power BI bridges Excel data to a proper Sankey visual for teams already using the Microsoft analytics stack.
For the widest range of users, the most practical combination is straightforward: manage and update your data in Excel where spreadsheet tools are strongest, then send that data to a purpose-built tool for the visual output.
Ready to turn your Excel data into a finished Sankey diagram? Open the Figviz Sankey Diagram Generator, paste your source-target-value table, and download a publication-ready chart in seconds, with no formulas, no add-ins, and no manual chart assembly required.
Interested in more visualization techniques? The research data visualization best practices guide covers a broad range of chart types and design principles, and our walkthrough on creating circuit diagrams online is useful for technical documentation projects.
Author

Categories
More Posts

15 Illustration Styles Explained: A Complete Visual Reference Guide (2026)
Discover 15 illustration styles with real examples: flat design, isometric, 3D, vector art, cartoon, line art, watercolor, minimalist and more. Learn 2026 trends and find the right style for your next project.


How to Design Scientific Infographics: 8-Step Guide for Researchers (2026)
Build credible, publication-ready infographics that earn scientists' trust. Covers data accuracy, visual hierarchy, and proper citation practices, with free templates.


How to Make a Coordinate Plane (Free, Printable)
Learn how to make a coordinate plane for graphing, math class, or printing. Create a free blank coordinate grid in seconds with Figviz, or draw one yourself.
