You can build a functional organizational chart in Excel by following just three quick steps—no design skills required. This method lets you map roles, departments, and reporting lines with formulas, shapes, and conditional formatting to make it clear at a glance. You’ll need at least Microsoft 365 or Excel 2019 (later versions handle shapes better), and a spreadsheet with hierarchical data (e.g., department names and reporting managers). Here’s what actually works and how to avoid common pitfalls.
What You'll Need
- A PC running Windows or macOS with Excel (365/2019 or later)
- A basic table of roles, departments, and reporting relationships (e.g., "Sales Manager" reports to "CEO")
- Optional: A printer or PDF export for sharing (if you want hard copies)
Step-by-Step
- Prepare Your Data
- Create a table in Excel with at least two columns:
- Role Name (e.g., "Product Manager")
- Reports To (e.g., "Director of Engineering") or "
" for top-level roles.
- Add a hierarchy column by dragging this formula down your table:
=IF($A2="(Drag the fill handle to the right to auto-adjust for all rows.)", "Top", IF(B2="", "N/A", "→"))
Why this works: The formula creates a visual "→" arrow for each subordinate, except top-level roles (where "Reports To" is empty). This is the foundation for drawing connections later.
- Create a table in Excel with at least two columns:
- Insert Connectors (Shapes)
- Press
Alt + F11to open the VBA editor (if shapes aren’t visible). - Go to
Insert>Shapesand pickConnector Line(the arrow icon). - Use the
Insert Shapebutton (with a plus sign) to addRectangleboxes (for roles) andOvalfor top-level roles (e.g., CEO). - Resize shapes to fit your data and label them by clicking the text box inside each shape.
Note: Labels must be in
Table 1(Column A) to sync with the data. If shapes don’t update, right-click the shape >Format Shape>Linked Celland select your data range (e.g.,A1:A10). - Press
- Map Hierarchy with VBA (Automation)
- Go to
Developer>Visual Basic(Alt+F11) >Insert>Module. - Paste this code (adjust ranges as needed):
Sub DrawOrgChart() Dim ws As Worksheet: Set ws = ActiveSheet Dim dataRow As Long: dataRow = 2 ' Skip header Dim lastRow As Long: lastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row Dim shape As Shape ' Draw top-level roles (no "Reports To") For i = dataRow To lastRow If ws.Cells(i, 2).Value = "" Then Set shape = ws.Shapes.AddOval(Left:=ws.Range("A" & i).Top, Width:=ws.Range("A" & i).Width * 1.5, Height:=ws.Range("A" & i).Height * 1.5) shape.TextFrame2.TextRange.Text = ws.Cells(i, 1).Value shape.Fill.ForeColor.RGB = RGB(200, 230, 255) ' Light blue End If Next i ' Draw connectors for subordinates For i = dataRow To lastRow If ws.Cells(i, 2).Value <> "" Then Dim manager As Variant: manager = ws.Cells(i, 2).Value Dim searchRow As Long searchRow = Application.Match(manager, ws.Range("A:A"), 0) If Not IsError(searchRow) Then Set shape = ws.Shapes.AddConnectorLine(Left:=ws.Range("A" & i).Left, Top:=ws.Range("A" & i).Top, Width:=0, Height:=0) shape.Fill.ForeColor.RGB = RGB(150, 150, 150) ' Gray shape.TextFrame2.TextRange.Text = ws.Cells(i, 1).Value shape.LockAspectRatio = msoTrue End If End If Next i End Sub - Run the macro by pressing
F5or right-click the module >Run Sub/UserForm. The chart will auto-generate.
- Go to
Common Mistakes
- Empty shapes or broken arrows: Check if your data range starts at
A2(skip headers) and that "Reports To" column has no blanks. Run the macro again to refresh. - Labels not updating: In the macro, ensure the shape’s
Fill.ForeColoris set to a distinct color (e.g., RGB(200,230,255)) to avoid overlap. - VBA errors: If you get a run-time error, verify:
- Your Excel version supports VBA (2019+).
- No cells are merged (unmerge them).
- The reference to the shape range is correct (adjust
A:Aif your data is elsewhere).
Tips
- Use conditional formatting to highlight top-level roles (e.g., green background) or departments (e.g., color-code by department name).
- Export for printing by going to
File > Export > Create PDF/XPS(landscape orientation). - Customize colors: Change the RGB values in the macro or use
ShapeFillproperties in the Format Shape pane. - Add icons by embedding icons from
Insert > Icons(Excel 365) into each shape’s text frame. - Avoid Excel’s built-in org chart tool: It’s clunky and doesn’t handle dynamic updates well. The VBA method scales with your data.
Troubleshooting
- Macro won’t run:
- Go to
File > Account > Manage Compatibilityand enable macros. - If still blocked, try running Excel in "Compatibility Mode" (Windows).
- Go to
- Shapes overlap or look distorted:
- Resize shapes individually (hold
Shiftwhile dragging corners). - Adjust their positions manually if needed (right-click shape >
Arrange > Send to Back/Bring to Front).
- Resize shapes individually (hold
- Data doesn’t update:
- Right-click the shape >
Format Shape>Linked Celland re-select your data range. - Run the macro again to force refresh.
- Right-click the shape >
- Macro slows Excel:
- Run the macro only once, then save as a template (.xltx).
- Disable macros in future files to speed up opening.
Frequently Asked Questions
Can I use this for a large org chart (50+ people)?
Yes, but the VBA method works best for up to 100 rows. For larger charts, manually adjust shapes or use a third-party tool like Canva or Microsoft PowerPoint, which have better scaling.
Do I need VBA to create an org chart in Excel?
No! You can manually draw shapes and connect them using Insert > Shapes > Connector Line, but VBA automates the process and handles dynamic updates. The manual method is slower for >10 roles.
How do I change the color of a specific role in the org chart?
Edit the macro’s Fill.ForeColor.RGB value for shapes. For dynamic coloring by role, use IF(ws.Cells(i, 1).Value = "Sales", RGB(255,100,100), ...) inside the macro.
Can I share this org chart with others?
Yes, export as a PDF or save as a template (.xltx). Share the file, but avoid emailing macros—enable them only in recipient files.
What if I don’t have Excel 365?
Use Excel 2019 or later, which supports shapes and VBA. Older versions (pre-2013) lack the Developer tab, so you’ll need to enable it manually: File > Options > Customize Ribbon > Check "Developer".
How do I make the chart responsive if I add/remove roles?
Run the macro again after changes. For manual updates, drag shapes to reposition and adjust connectors.
Pro tip: Save your org chart as a template (File > Save As > Other Formats > Excel Macro-Enabled Workbook (.xlsm)). This ensures macros work in future files.