How to Add Lines in Excel: Rows, Columns, and Cell Borders Explained

Adding lines in Excel sounds simple, but the term means different things depending on what you're actually trying to do. You might want to insert a new row or column into your spreadsheet, draw visible border lines around cells, or add a line break inside a cell. Each of these is a distinct operation — and knowing which one you need changes everything about how you approach it.

The Three Types of "Lines" in Excel

Before diving into steps, it helps to clarify what kind of line you're working with:

TypeWhat It DoesCommon Use Case
Row/Column insertionAdds new blank rows or columns to the gridExpanding a dataset, adding space
Cell bordersDraws visible lines around or inside cellsFormatting tables, print layouts
Line break in a cellStarts a new line of text within one cellMulti-line labels, addresses

Each works differently, and each has its own shortcut.

How to Insert a New Row or Column 📋

This is the most common interpretation. If you want to add a blank row between existing data, here's how:

To insert a single row:

  1. Click the row number on the left side to select the entire row.
  2. Right-click and choose Insert.
  3. Excel pushes the selected row down and inserts a blank row above it.

To insert multiple rows at once:

  • Select the same number of rows as you want to insert (e.g., highlight rows 3, 4, and 5 to insert three rows).
  • Right-click and choose Insert.

To insert a column:

  • Click the column letter at the top to select the full column.
  • Right-click and choose Insert.
  • The new column appears to the left of the selected one.

Keyboard shortcut: After selecting a row or column, press Ctrl + Shift + "+" (Windows) or Cmd + Shift + "+" (Mac) to insert instantly.

Inserting Rows Inside a Table

If your data is formatted as an Excel Table (via Insert > Table), behavior changes slightly. Excel automatically expands the table when you insert rows inside it, and formulas in structured references update accordingly. Adding a row at the bottom of a table is even simpler — just press Tab in the last cell to generate a new row automatically.

How to Add Border Lines to Cells

Border lines are visual formatting — they don't affect your data, only how it looks on screen or when printed.

Quick method:

  1. Select the cells you want to format.
  2. Go to the Home tab.
  3. Click the dropdown arrow next to the Borders button (it looks like a square divided into four).
  4. Choose from options like All Borders, Outside Borders, Bottom Border, and more.

For precise control:

  1. Right-click selected cells and choose Format Cells.
  2. Go to the Border tab.
  3. Choose your line style, color, and where the border appears (inside, outside, diagonal, etc.).

This method is particularly useful when building tables for print, creating invoice templates, or designing reports where visual structure matters.

The Difference Between Gridlines and Borders

A common point of confusion: the faint gray lines you see in Excel by default are gridlines — they're a viewing aid and don't print by default. Borders are formatting you apply manually, and they do print. If your printed spreadsheet looks borderless, that's why. You can toggle gridlines under View > Show > Gridlines, or enable them for printing under Page Layout > Sheet Options.

How to Add a Line Break Inside a Cell 📝

Sometimes you want multiple lines of text within a single cell — like a name and address, or a multi-part label.

To insert a line break:

  • On Windows: Press Alt + Enter while typing inside a cell.
  • On Mac: Press Control + Option + Return.

This creates a manual line break without moving to the next cell. For the text to display correctly, the cell usually needs Wrap Text enabled — find it under Home > Alignment > Wrap Text, or press Alt + H + W on Windows.

Without Wrap Text on, the line break is stored in the cell but won't be visible until you enable wrapping or expand the row height manually.

Variables That Affect Which Method You Need

The right approach depends on a few factors that vary by user:

  • Your Excel version: Some formatting menus are laid out differently in Excel 2016, 2019, Microsoft 365, or the web version. Keyboard shortcuts are mostly consistent, but ribbon locations shift.
  • Whether your data is in a Table or a plain range: Tables behave differently when inserting rows, and that affects formulas and formatting.
  • Your goal — display vs. structure: Adding a row changes the structure of your data. Adding a border only changes its appearance. Confusing the two leads to formatting that looks right on screen but breaks calculations.
  • Platform — Windows vs. Mac vs. browser: The web version of Excel (Excel Online) has a more limited feature set. Some border customization options and keyboard shortcuts differ or are absent entirely.
  • Print vs. screen use: If you're preparing a spreadsheet for print, borders matter significantly more than if the file stays digital.

When the Same Spreadsheet Is Used by Multiple People

Shared workbooks — especially those used across a team or in collaborative environments like Microsoft 365 — can behave unpredictably when rows are inserted. If formulas reference specific row numbers, inserting rows can shift references in ways that break calculations for other users. Named ranges and Excel Tables handle this more gracefully than manual cell references, which is worth knowing before you start inserting rows into a shared file.

The line you need to add — whether it's structural, visual, or textual — depends entirely on what the spreadsheet is doing and who's using it.