Decision Tree Template for Excel
There are two very different reasons people search for a decision tree in Excel: they want a picture of a decision on a sheet, or they want the logic to actually run. Excel can do both, badly. Here is how to do each properly.
→ Build the tree first, then bring it into Excel
If You Want a Diagram on the Sheet
SmartArt (fast): Insert → SmartArt → Hierarchy → Horizontal Hierarchy. Type nodes in the text pane; Tab indents a level. Good up to roughly ten nodes.
Shapes (full control):
- Draw and style one rectangle, then copy it for consistency.
- Snap to grid (Alt while dragging) and use Align → Distribute per level.
- Use elbow connectors attached to shape anchors so lines follow the boxes.
- Group each level before you re-space anything.
Generated image (best for larger trees): write the tree as text, screenshot the diagram, and paste it in. The layout stays consistent when you add a branch, which is where hand-drawn Excel trees fall apart.
If You Want the Logic to Run
The spreadsheet-native options, and their costs:
| Approach | Works when | Breaks when |
|---|---|---|
Nested IF |
2–3 levels | Anyone has to audit or edit it |
IFS |
Flat rule sets | Rules become conditional on each other |
Lookup table + XLOOKUP |
Every combination enumerable | The combinations explode |
| VBA | You control the environment | Sharing, Mac, and web Excel |
Nested IF formulas are the usual culprit behind a rule nobody dares change. A decision tree keeps the same logic in a form you can read out loud, walk path by path, and hand to someone who does not open Excel.
Write It Once, as Text
mode: decision
Q1: Is the expense above the policy limit?
- Yes -> Q2
- No -> AUTO_APPROVE
Q2: Was it pre-approved in the budget?
- Yes -> MANAGER
- No -> FINANCE_REVIEW
AUTO_APPROVE: Approve automatically in the expense tool.
MANAGER: Line manager approves.
FINANCE_REVIEW: Send to finance for review before payment.
That gives you a diagram to paste into the sheet, a path view listing every route so you can prove the logic is complete, and a wizard for the people submitting claims. Full syntax reference →
Export a Decision Matrix to CSV
For comparison-style decisions — choosing a vendor, a database, a plan — build the tree in elimination mode, where each answer rules options out rather than routing to a single branch. The path view then shows an option matrix, and you can export it to CSV and open it directly in Excel: one row per option, one column per question.
That is the clean handoff between the two tools: the tree owns the logic, Excel owns the numbers.
Excel vs a Decision Tree Tool
| Excel | DrawDecisionTree | |
|---|---|---|
| Diagram effort | Manual shapes | Generated |
| Auditing the logic | Read nested formulas | Walk every path visually |
| Non-Excel users | Need the file | Open a link |
| Embedding in a wiki | Screenshot | Live embed, always current |
| Version history | File copies | Plain-text diffs |
Keep Excel for calculation. Move the branching decision to a tree, and export the matrix back when you need to model numbers on top.
Related
- Decision tree template for Word
- Decision tree template for PowerPoint
- Decision tree templates
- How to build a decision tree