How to Add a Line in Excel: Every Method Explained

Adding a line in Excel sounds simple — but depending on what you mean by "line," you might be talking about three or four completely different things. A new row between existing data, a line break inside a cell, a drawn line shape, or a border line along a cell edge all require different approaches. Here's how each one works.

What Kind of Line Are You Adding?

Before diving into steps, it helps to identify what you actually need:

  • A new row — inserting a blank row between existing rows of data
  • A line break inside a cell — dropping to a new line within a single cell (like pressing Enter in a word processor)
  • A border line — adding a visible line along the edge of a cell or range
  • A drawn line — inserting a line shape onto the spreadsheet as an object

Each serves a different purpose and lives in a different part of Excel.

How to Insert a New Row (Line) in Excel

This is the most common interpretation. If your data is in rows and you want to push things down to make room, you're inserting a row.

To insert a single row:

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

To insert multiple rows at once:

  1. Click and drag across multiple row numbers to select that many rows
  2. Right-click and choose Insert
  3. Excel inserts the same number of blank rows above your selection

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

💡 If you select a cell instead of the full row before inserting, Excel will ask whether you want to shift cells down, shift right, insert a full row, or insert a full column. Choosing Entire row gives the same result.

How to Add a Line Break Inside a Cell

Sometimes you need text to wrap onto a second line inside the same cell — like a name and a title, or a multi-line address — without moving to the next row.

To add a line break within a cell:

  1. Double-click the cell to enter edit mode (or click and press F2)
  2. Position your cursor where you want the line break
  3. Press Alt + Enter (Windows) or Ctrl + Option + Return (Mac)
  4. The text drops to a new line within the same cell

For this to display correctly, the cell usually needs Wrap Text enabled. You'll find that in the Home tab under the Alignment group. Without it, the line break exists in the data but the cell may display the text as a single line until you expand the row height.

This is different from pressing Enter alone — that moves you to the next cell entirely.

How to Add a Border Line to a Cell or Range

Border lines are formatting elements that appear along the edges of cells. They're useful for visually separating sections of a spreadsheet, creating table-style layouts, or emphasizing headers.

To add a border:

  1. Select the cell or range you want to border
  2. Go to HomeFont group → click the dropdown arrow next to the Borders button (it looks like a square divided into four)
  3. Choose from options like Bottom Border, All Borders, Thick Box Border, and more

For more control:

  • Select More Borders at the bottom of the dropdown
  • The Format Cells dialog opens to the Border tab
  • Here you can choose line style (solid, dashed, double), line color, and exactly which edges to apply it to
Border OptionWhat It Does
Bottom BorderLine under selected cells only
All BordersLines around and between every cell
Outside BordersLine around the outer edge only
Thick Box BorderHeavier weight outline border
No BorderRemoves all borders from selection

Border lines are purely visual — they don't affect data or formulas.

How to Draw a Line Shape on a Spreadsheet

If you need a literal line drawn across your sheet — like a divider between sections or an annotation — Excel's shape tools handle this.

To insert a line shape:

  1. Go to the Insert tab
  2. Click Shapes in the Illustrations group
  3. Under the Lines section, choose a line style (straight line, arrow, curved, etc.)
  4. Click and drag on the spreadsheet to draw the line

Once drawn, you can format it — change color, weight, and style — using the Shape Format tab that appears when the line is selected. 🎨

These lines float above the grid and aren't tied to specific cells. They can move if you drag them and may shift unexpectedly when rows or columns are added or removed unless you anchor them.

Factors That Affect Which Method You Need

The right approach depends on a few variables:

  • What the data is doing — if you're working in a formatted table (created with Ctrl + T), inserting rows behaves slightly differently and may auto-extend formulas
  • Excel version — the ribbon layout and keyboard shortcuts are consistent across modern versions, but very old versions of Excel (pre-2007) had different menu structures
  • Mac vs. Windows — keyboard shortcuts differ, most notably Alt + Enter versus Ctrl + Option + Return for line breaks
  • Purpose of the line — purely visual separators (borders, drawn lines) vs. structural additions to the data (new rows) are fundamentally different tools with different implications for formulas, sorting, and printing

Whether you're formatting a report, building a data entry form, or organizing information for someone else to read, the type of "line" that actually fits your situation depends on how your spreadsheet is structured and what you're trying to communicate.