Lesson 42 of 92 · Free Excel Course
Excel
How to Make a Flowchart in Excel (Plus Fishbone, Decision Tree, WBS and Roadmap)
Make a flowchart in Excel with SmartArt or shapes and connectors, then a fishbone, a decision tree with expected values, a WBS and a roadmap.
Excel isn't a drawing program, but it has everything you need for the diagrams most people are asked to make at work: a flowchart of a process, a fishbone of what's causing a problem, a decision tree that does the maths, a work breakdown structure (WBS) for a project, and a simple roadmap. This lesson shows the two drawing tools (SmartArt, and shapes with connectors), then builds each diagram, putting the numbers in cells where formulas can check them. The free workbook has every formula and an answer key.
SmartArt or shapes: which to use
Excel gives you two ways to draw a diagram, and the right one depends on the shape of your process.
| SmartArt | Shapes and connectors | |
|---|---|---|
| Where | Insert > SmartArt | Insert > Shapes |
| Best for | Straight-line steps, lists, simple hierarchies | Flowcharts with yes/no branches, fishbones, decision trees |
| Effort | Fast: type the text, Excel draws the boxes | Slower: you place every shape |
| Layout | Automatic, re-flows as you add steps | You control it: align, distribute, snap |
| Excel for the web | Not available | Basic shapes only; aligning is limited |
On a Mac, both tools are on the Insert tab too. In Excel for the web, Microsoft says inserting a flow chart isn't currently possible and its shape-alignment tools are limited, so open the file in the desktop app (use the Editing menu at the top of the ribbon).
Make a flowchart with SmartArt
SmartArt is the quickest route when every step follows the last one.
- Click an empty cell, then go to Insert > SmartArt (in the Illustrations group; on a small screen, click Illustrations first).
- In the dialog, click Process on the left, pick a layout, for example a basic row of boxes with arrows, and click OK.
- Click the small arrow on the left edge of the graphic to open the Text pane. Type one step per line: Order received, Check stock, Pack order, Ship.
- Press Enter at the end of a line to add another box. Or select a box and use SmartArt Design > Add Shape > Add Shape After.
- On SmartArt Design, use Change Colors and the SmartArt Styles gallery to change the look.
On a Mac, click Insert > SmartArt, point to Process and pick a layout from the menu. For an org chart or a tree, the Hierarchy category works the same way. The catch: SmartArt can't do a decision diamond with a "No" loop back, so use shapes for those.
Make a flowchart with shapes and connectors
Most flowcharts use three symbols: an oval for start and end, a rectangle for a step, and a diamond for a yes/no question.
- Go to Insert > Shapes, and under Flowchart click the oval (Terminator). Drag on the sheet to draw it, then type "Start". Any shape takes text as soon as it's selected.
- Add rectangles (Process) for each step and a diamond (Decision) for "In stock?". To copy a shape, hold Ctrl and drag it.
- Now join them. Go to Insert > Shapes, and under Lines click the elbow connector.
- Rest the pointer on the first shape until its connection dots appear. Click a dot, drag to a dot on the next shape, and let go.
- Drag a shape. The connector bends and follows it. That's the difference from a plain line, which stays put.
- From the diamond, draw a "Yes" connector down to Pack order and a "No" connector from its side to an "Order more stock" box. Add a text box (Insert > Text Box) beside each to label it.
Need several connectors in a row? In the Shapes gallery, right-click the elbow connector and choose Lock Drawing Mode, draw them all, then press Esc.
Line it up. Select a shape, then go to Shape Format > Align and turn on Snap to Grid (shapes jump to cell gridlines) or Snap to Shape (they line up with other shapes). To line up shapes you've already placed, click the first, hold Ctrl (Shift on a Mac) and click the others, then choose Shape Format > Align > Align Center. Distribute Vertically spaces three or more shapes evenly.
Group it. When it's finished, select every shape and connector and choose Shape Format > Group > Group. The flowchart now moves, copies and resizes as one picture. Use Group > Ungroup to edit a piece.
Draw a fishbone (cause-and-effect) diagram
A fishbone diagram helps a team find the root causes of one problem instead of fixing symptoms. Excel has no fishbone chart type or SmartArt layout, but it's quick to draw with the same shapes:
- Type the problem in a rectangle on the right, for example "Late deliveries". That's the fish's head.
- Draw a long horizontal arrow (Insert > Shapes > Lines > Arrow) pointing at the head. Hold Shift while dragging to keep it straight. That's the spine.
- Draw four angled lines meeting the spine, two above and two below. These are the ribs. Label each with a category. People, Methods, Machines and Materials are common starting points, and you can add Measurement or Environment.
- Brainstorm causes and put each in a text box on its rib: "New driver" on People, "Van breakdowns" on Machines. A cause can sit on more than one rib.
- For each cause, keep asking "why?" and add the answers as smaller branches. Teams often call this the Five Whys.
- Select everything and group it.
Prefer cells to shapes? Type the categories across a row and list the causes in the cells under each. It's easier to edit and sort, and you can draw the picture later.
Build a decision tree with expected values
A decision tree compares choices that have uncertain results. A square is a decision you make, a circle is a chance event, and each branch ends with a payoff. You can draw the tree with shapes, or with SmartArt's Hierarchy layouts, but the useful part is the maths, and that belongs in cells.
The rule: an option's expected value = the sum of probability × payoff over all of its outcomes. Pick the option with the highest expected value. Here's a bakery deciding whether to open a second shop, start deliveries or do nothing:
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Option | Outcome | Probability | Payoff | Probability × payoff |
| 2 | Expand | Strong demand | 60% | $60,000 | $36,000 |
| 3 | Expand | Weak demand | 40% | -$20,000 | -$8,000 |
| 4 | Delivery | Strong demand | 50% | $30,000 | $15,000 |
| 5 | Delivery | Weak demand | 50% | $10,000 | $5,000 |
| 6 | Do nothing | Same as now | 100% | $5,000 | $5,000 |
| 7 | |||||
| 8 | Option | Expected value | Probabilities add to | ||
| 9 | Expand | $28,000 | 100% | ||
| 10 | Delivery | $20,000 | 100% | ||
| 11 | Do nothing | $5,000 | 100% | ||
| 12 | |||||
| 13 | Best option | Expand | |||
| 14 | Best expected value | $28,000 |
- In E2 type
=C2*D2and fill down to E6. The weak-demand branch of Expand is 40% × -$20,000 = -$8,000. - In B9 type
=SUMIF($A$2:$A$6,A9,$E$2:$E$6)and fill down to B11. Expand = $36,000 − $8,000 = $28,000. - In C9 type
=SUMIF($A$2:$A$6,A9,$C$2:$C$6)and fill down. Every option must show 100%; if not, a probability is wrong. - In B13 type
=INDEX(A9:A11,MATCH(MAX(B9:B11),B9:B11,0))to return the name of the best option, and in B14 type=MAX(B9:B11).
Expand wins on average, even though it can lose money. Now change Expand's probabilities to 30% and 70%. Its expected value drops to $4,000 and Delivery becomes the best. Seeing which numbers flip the answer is the real value of the tree. If you'd rather use one formula with no helper column, =SUMPRODUCT(($A$2:$A$6=A9)*$C$2:$C$6*$D$2:$D$6) gives the same results. More in COUNTIF, SUMIF and AVERAGEIF and XLOOKUP and INDEX/MATCH.
Make a WBS outline with roll-ups
A work breakdown structure splits a project into deliverables, then into work packages, the smallest pieces you estimate. Each level is numbered so you can see where an item belongs: 2 is Design, 2.2 is part of Design, 2.2.1 is part of 2.2. Together, the pieces should cover all the work and nothing extra.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | WBS code | Level | Task | Hours | Cost | Total hours | Total cost |
| 2 | 1 | 1 | Plan | 6 | $380 | ||
| 3 | 1.1 | 2 | Set goals and budget | 4 | $200 | 4 | $200 |
| 4 | 1.2 | 2 | Pick domain and hosting | 2 | $180 | 2 | $180 |
| 5 | 2 | 1 | Design | 24 | $1,200 | ||
| 6 | 2.1 | 2 | Wireframes | 8 | $400 | 8 | $400 |
| 7 | 2.2 | 2 | Visual design | 16 | $800 | ||
| 8 | 2.2.1 | 3 | Logo and colors | 6 | $300 | 6 | $300 |
| 9 | 2.2.2 | 3 | Page mockups | 10 | $500 | 10 | $500 |
| 10 | 3 | 1 | Build | 32 | $1,600 | ||
| 11 | 3.1 | 2 | Write content | 12 | $600 | 12 | $600 |
| 12 | 3.2 | 2 | Build pages | 16 | $800 | 16 | $800 |
| 13 | 3.3 | 2 | Test on phones | 4 | $200 | 4 | $200 |
| 14 | 4 | 1 | Launch | 5 | $350 | ||
| 15 | 4.1 | 2 | Go live | 2 | $100 | 2 | $100 |
| 16 | 4.2 | 2 | Announce | 3 | $250 | 3 | $250 |
| 17 | Project total | 67 | $3,530 | 67 | $3,530 |
- Type the codes as text. Format column A as Text first (Home > Number Format > Text), or Excel turns 1.10 into 1.1 and 2.2.1 might stay text while 2.2 becomes a number.
- Level: in B2 type
=LEN(A2)-LEN(SUBSTITUTE(A2,".",""))+1. It counts the dots and adds one, so 2.2.1 is level 3. - Indent: select the level-2 task names and click Home > Increase Indent; click it twice for level 3.
- Roll-up: in F2 type
=IF(D2<>"",D2,SUMIF($A$2:$A$16,A2&".*",$D$2:$D$16))and fill down. A work package keeps its own hours. A summary row adds every code that starts with its code and a dot (*is the wildcard), so Design adds 8 + 6 + 10 = 24. In G2 use the same formula with E instead of D. - Check:
=SUM(D2:D16)and=SUMIF($B$2:$B$16,1,F2:F16)must both show 67. If they differ, a code is mistyped. - Collapse it: select rows 3:4 (the children of 1), click Data > Group, and repeat for each block of children. The numbered buttons at the top left show one level or all of them. Because WBS totals sit above their detail, open the Outline settings (the small arrow in the corner of the Outline group) and clear Summary rows below detail.
The work packages become the task list for a schedule, which is exactly what Project: Gantt chart and project tracking builds next.
Make a simple roadmap
A roadmap is the big-picture view: workstreams down the side, months or quarters across the top, and coloured cells for when each one happens. Cells beat shapes here because bars stay lined up with the months.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | 2027 roadmap | Jan | Feb | Mar | Apr | May | Jun |
| 2 | Website | ||||||
| 3 | Email newsletter | ||||||
| 4 | Online store | ||||||
| 5 | Hire seasonal staff | ||||||
| 6 | Milestones | ◆ Site live | ◆ Store open | ||||
| 7 | |||||||
| 8 | Key | Done | In progress | Planned |
- Type the months across row 1 and the workstreams down column A. Make the month columns the same width.
- Select the cells for each workstream's months and pick a colour from Home > Fill Color.
- Add a milestone row with a symbol (Insert > Symbol) and a short label.
- Add a colour key so readers know what each colour means.
To have the bars draw themselves from start and end dates, use a conditional formatting rule, as shown in the Gantt project lesson.
Try it yourself
Download the practice workbook. The Your task sheet has eight steps:
- Probability × payoff in E2:E6 of the Practice sheet (E3 = -$8,000).
- Expected values with SUMIF (Expand $28,000) and the 100% check.
- The best option with INDEX/MATCH, then change Expand's odds and watch Delivery win.
- Levels and roll-ups on WBS practice (project total 67 hours, $3,530).
- Indent and group the WBS.
- Colour the Roadmap sheet.
- A SmartArt flowchart and the same flowchart with shapes, a diamond and elbow connectors.
- A fishbone for "Late deliveries".
The Answers and WBS answers sheets have the working formulas, and the Answer key describes what your drawings should contain.
Common mistakes
- Plain arrows instead of connectors. They don't follow the shapes, so the chart falls apart when you move anything. Use a connector and end it on a connection dot.
- Dragging a connector's end. That detaches it. Reattach it to a dot on the shape.
- Not grouping. Inserting a row or moving one shape scatters an ungrouped diagram.
- Using SmartArt for branching flows. It can't loop a "No" back. Switch to shapes.
- Probabilities that don't add up to 100%. The expected value is then meaningless. Keep the check column.
- WBS codes as numbers. 1.10 becomes 1.1 and the roll-up misses tasks. Format the column as Text.
- Hours on summary rows. Type estimates only on work packages, or the totals count them twice.
You can now draw a process, analyse a problem and break down a project in one workbook. Before this, you built a set of financial statements. Next, turn a sheet into a searchable list in Build a database tracker in Excel.
Frequently asked questions
Does Excel have a flowchart tool or template?
Excel has no dedicated flowchart tool (that's Microsoft Visio), but it has two built-in ways to draw one, and you can search File > New for "flowchart" to see whether a ready-made template is offered. Insert > SmartArt > Process gives you ready-made step-by-step layouts in a few clicks, and Insert > Shapes has a full set of flowchart symbols plus connectors for charts with yes/no branches. This lesson shows both.
Can I make a flowchart in Excel for the web?
Not with SmartArt: Microsoft says inserting a flow chart isn't currently possible in Excel for the web, and its tools for aligning shapes are limited. Open the file in the Excel desktop app (Windows or Mac) to draw it. The diagram stays in the file, so you can still view it online afterwards.
How do I keep arrows attached to shapes in Excel?
Use a connector from the Lines group of Insert > Shapes (elbow connectors work best), not a plain arrow. Rest the pointer on a shape until its connection dots appear, click one, and drag to a dot on the next shape. The connector then follows both shapes when you move them. If you drag a connector's end away, it detaches, so reattach it to a dot.
How do you calculate expected value in a decision tree in Excel?
For each outcome, multiply its probability by its payoff (`=C2*D2`), then add those up for each option, for example `=SUMIF($A$2:$A$6,A9,$E$2:$E$6)`. The option with the highest expected value is the best on average. Check that each option's probabilities add up to 100%.
Does Excel have a fishbone diagram template?
There's no fishbone chart type or SmartArt layout in Excel; you can search File > New for a template, or draw your own with shapes: a long arrow for the spine pointing at the problem, angled lines for the categories (such as People, Methods, Machines and Materials) and text boxes for the causes. Then group it so it moves as one picture.
How do I make a work breakdown structure in Excel?
List the work as a numbered outline (1, 1.1, 1.1.1) with the codes typed as text, indent each level with Home > Increase Indent, put hours or costs on the lowest-level tasks only, and roll them up with SUMIF and a wildcard, such as `=IF(D2<>"",D2,SUMIF($A$2:$A$16,A2&".*",$D$2:$D$16))`. Data > Group lets you collapse the levels.