How to Add Lines in Excel: Rows, Columns, Borders, and More
Adding lines in Excel sounds simple — but the word "lines" can mean several different things depending on what you're trying to do. You might want to insert a new row or column, draw a visible border between cells, add a line within a cell, or insert a shape that looks like a line. Each of these works differently, and picking the wrong method leads to frustration fast.
Here's a clear breakdown of every scenario.
Inserting New Rows or Columns (The Most Common Meaning)
When most people say "add a line" in Excel, they mean inserting a new row into an existing spreadsheet.
To insert a single row:
- Click the row number on the left side of the spreadsheet to select the entire row.
- Right-click and choose Insert.
- Excel pushes everything below down by one row and inserts a blank row above your selection.
To insert multiple rows at once:
- Click and drag across several row numbers to select that many rows.
- Right-click and choose Insert.
- Excel inserts the same number of blank rows as you selected.
The same logic applies to columns — click the column letter at the top, right-click, and choose Insert.
💡 Keyboard shortcut: Select the row, then press Ctrl + Shift + "+" (Windows) or Cmd + Shift + "+" (Mac) to insert instantly.
Adding a Line Break Inside a Cell
Sometimes you need to wrap text onto a second line within a single cell — not create a new row. This is called a line break or in-cell line break.
How to do it:
- While typing or editing a cell, press Alt + Enter (Windows) or Ctrl + Option + Enter (Mac) where you want the line to break.
This keeps all the content in one cell but displays it on multiple lines. You'll often need to enable Wrap Text (found in the Home tab under Alignment) for this to display correctly.
This technique is common in address fields, notes columns, or any cell where you're combining multiple pieces of information.
Drawing a Border Line Between Cells
Borders are visual lines that appear around or between cells. They're separate from gridlines — the faint default lines you see on every spreadsheet — and they print and display much more prominently.
To add borders:
- Select the cell or range of cells you want to apply a border to.
- Go to Home → Font group and click the dropdown arrow next to the border icon (it looks like a square divided into four).
- Choose from options like Bottom Border, All Borders, Thick Box Border, and more.
For more control, choose More Borders at the bottom of the dropdown. This opens the Format Cells dialog where you can:
- Set border style (solid, dashed, dotted, double)
- Set border color
- Apply borders to specific sides only (top, bottom, left, right, diagonal)
Gridlines vs. Borders:
| Feature | Gridlines | Borders |
|---|---|---|
| Default visibility | Visible on screen | Not applied by default |
| Prints by default | No | Yes |
| Customizable style | No | Yes |
| Applied per cell | No | Yes |
If your goal is to make a spreadsheet look like a formatted table or form, borders are the right tool.
Inserting a Line Shape Across the Spreadsheet
If you want a horizontal or vertical line that spans across cells — not tied to any specific cell border — you can insert a line as a drawing object.
Steps:
- Go to Insert → Illustrations → Shapes.
- Under the Lines category, choose a line style (straight, with arrows, curved, etc.).
- Click and drag across the spreadsheet to draw the line.
- Hold Shift while dragging to keep the line perfectly horizontal or vertical.
You can format the line using the Shape Format tab — adjust color, weight (thickness), and style. These lines float above the cells and don't interact with cell data.
This approach is useful for dividing sections of a dashboard or creating a visual separator that doesn't depend on cell alignment.
Using Excel Tables to Add Structured Lines Automatically 🗂️
If you're adding rows to a formatted Excel Table (not just a plain range), the process is slightly different — and often smarter.
When you're inside a Table (created via Insert → Table or Ctrl + T):
- Pressing Tab at the last cell of the last row automatically adds a new row.
- Any formulas, formatting, and calculated columns extend automatically to the new row.
This is one of the most underrated features for anyone managing ongoing data like inventory lists, logs, or project trackers.
Factors That Affect Which Method You Should Use
The "right" way to add a line in Excel depends on several variables that differ from user to user:
- Your Excel version — Some formatting options and keyboard shortcuts differ between Excel 2016, 2019, Microsoft 365, and Excel for Mac or web.
- Whether you're using a Table or a plain range — Tables behave differently when you insert or extend rows.
- What the line is for — Data entry, visual formatting, and printed reports all call for different techniques.
- Your skill level with formulas — Inserting rows in the middle of a range can break relative cell references if formulas aren't set up carefully.
- Shared or protected workbooks — If the file is shared or has sheet protection enabled, inserting rows may be restricted.
Someone building a printable invoice has different needs than someone managing a live data feed in a shared workbook — and both would use different line-adding methods, even in the same version of Excel.