Creating an entity relationship diagram (ERD) in Excel helps visualize database structures using familiar spreadsheet tools, making it accessible for non-database professionals. While Excel isn’t a dedicated ERD tool, it can effectively model tables, attributes, and relationships with shapes and connectors when used carefully. This method is ideal for small to medium projects, documentation, or early-stage design before moving to specialized software like Lucidchart or MySQL Workbench. No special plugins are required—just Excel and basic shape-drawing skills.

What You'll Need

  • Microsoft Excel 2016 or later (Windows or Mac)
  • A clear understanding of your database entities (tables) and their relationships (one-to-one, one-to-many, many-to-many)
  • Optional: printed sketch or notes of your data model to reference

Step-by-Step

  1. Open a new blank Excel workbook. Rename Sheet1 to "ERD" by double-clicking the sheet tab and typing the new name. This keeps your diagram separate from other data.
  2. Go to the Insert tab, then click "Shapes" in the Illustrations group. Select the rectangle shape. Draw a rectangle on the worksheet to represent your first entity (e.g., "Customer"). Position it toward the left side of the sheet for clarity.
  3. With the rectangle selected, click the Format tab under Drawing Tools. Use the Shape Fill option to set a light blue fill and Shape Outline to a solid black line. This visual distinction helps identify entities. Right-click the shape, choose "Edit Text," and type "Customer" inside.
  4. Below the entity name, press Enter and type attribute names one per line: "CustomerID", "FirstName", "LastName", "Email", "Phone". Use a smaller font size (e.g., 9 pt) for attributes to differentiate them from the entity name.
  5. Repeat steps 2–4 to create additional entities (e.g., "Order", "Product", "OrderItem"), spacing them evenly across the worksheet. Avoid overlapping shapes. Use the arrow keys for precise movement after selecting a shape.
  6. Now draw relationships. From the Shapes menu, select the line connector (the one with arrows at both ends). Click on the edge of the first entity (e.g., Customer), then drag to the edge of the related entity (e.g., Order). Excel will auto-align the line to the shape’s connection points.
  7. After drawing the line, right-click it and choose "Edit Text." Type the relationship cardinality: "1:Many" for one customer to many orders. Use standard notation: "1:1", "1:Many", or "Many:Many". Keep text small and centered on the connector.
  8. For many-to-many relationships, create a junction table (e.g., "OrderItem") and draw two lines: one from Order to OrderItem (1:Many), and another from Product to OrderItem (1:Many). Label both lines clearly.
  9. Use the Selection Pane (under Home > Select > Selection Pane) to rename each shape (e.g., rename "Rectangle 1" to "CustomerEntity"). This helps manage overlapping shapes and makes editing easier later.
  10. Group related elements: hold Ctrl and click each shape and connector in a single entity group. Right-click and choose "Group" > "Group." This keeps the entity and its attributes together when moving.
  11. Adjust the worksheet’s gridlines: go to View > Show > Gridlines to turn them off. This removes visual clutter. Use Align tools (under Format > Align) to evenly space entities horizontally or vertically.
  12. Save your file as an Excel Workbook (.xlsx). For sharing, export as PDF via File > Export > Create PDF/XPS Document. This preserves formatting when opened on other devices.

Common Mistakes

  • Using text boxes instead of shape edit text—this breaks alignment and makes grouping difficult.
  • Connecting shapes with freehand lines (not connectors), which don’t stay attached when shapes are moved.
  • Overloading a single entity with too many attributes; break large tables into sub-entities if needed.
  • Forgetting to label relationships, leaving viewers unsure of cardinality.
  • Not grouping entity and attributes together, causing misalignment when editing.
  • Leaving gridlines visible, making the diagram look messy instead of professional.

Tips

  • Use consistent colors: blue for entities, gray for attributes, black for connectors.
  • Start with pencil-and-paper sketches before opening Excel to avoid layout frustrations.
  • Use Excel’s ruler (View > Ruler) to align shapes precisely; snap to grid helps but can be disabled under View > Snap to Grid if too restrictive.
  • For complex diagrams, use multiple sheets: one for ERD, another for attribute definitions or notes.
  • Keep entity names singular (e.g., "Customer" not "Customers") to match database naming conventions.
  • Copy and paste shapes to duplicate structure—then edit the text instead of redrawing.

Troubleshooting

  • If connectors don’t snap to shapes, check that you’re using the "Line Connector" (not the straight line) and that you clicked the shape’s edge, not the center.
  • If text disappears inside shapes, ensure you’re editing the shape’s text by right-clicking and choosing Edit Text—not typing over the shape.
  • If shapes move unpredictably when grouped, ungroup them, move each individually, then regroup.
  • If the diagram looks cluttered, zoom out (View > Zoom > 75% or 50%) to see the full layout, then reposition elements.
  • If Excel freezes when editing many shapes, save immediately, then close and reopen. Large diagrams with many connectors can strain Excel’s rendering engine.
  • If exporting to PDF distorts lines, try printing to PDF instead (File > Print > Choose Microsoft Print to PDF).

Frequently Asked Questions

Can I create a true ERD with primary and foreign keys in Excel?

Yes. List primary keys in bold or with a "PK" prefix (e.g., "PK CustomerID"), and foreign keys with "FK" (e.g., "FK CustomerID" in Order). This is standard notation in ERDs and works clearly in Excel.

Is Excel suitable for large databases with 50+ tables?

Not recommended. Excel becomes slow and hard to navigate beyond 15–20 entities. Use tools like draw.io, Lucidchart, or database design software for larger models.

Can I link Excel ERD to a real database?

No. Excel ERDs are static diagrams. They document structure but don’t sync with live databases. Export them as PDFs for reference when building the actual schema.

What if my relationships cross over each other and get messy?

Rearrange entity positions to minimize crossings. Use curved connectors if needed (select connector > Format > Shape Outline > Dash Style > choose a curve). Avoid overlapping connections for clarity.

Can I use Excel on a Mac for this?

Yes. All shape and connector tools are available in Excel for Mac. Menu paths may say "Insert" instead of "Insert tab," but functionality is identical.

Should I use tables or shapes for entities?

Always use shapes. Excel tables are for data entry, not diagrams. Shapes allow free positioning, grouping, and connector attachment—essential for ERDs.