How to Add Lines in Excel

If you just need to add lines in excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: decide which line you mean first — a row (Ctrl+Shift+= inserts one), a border (Home ▸ Borders), the faint gridlines (View ▸ Gridlines), a second line inside one cell (Alt+Enter), or a line chart (Insert ▸ Charts ▸ Line).

On this page7
Annotated stepsExcel
1

You want another record in the sheet → that is a ROW. Select the row below where it should go and press Ctrl+Shift+= (Mac: Ctrl+I), or right-click the row number ▸ Insert.

2

You want visible lines around cells that also print → that is a BORDER. Select the range and press Ctrl+Shift+7, or use Home ▸ Font ▸ Borders for a specific edge.

3

The faint lines between all cells are missing or unwanted → those are GRIDLINES. Toggle View ▸ Show ▸ Gridlines. They are per worksheet and do not print unless Page Layout ▸ Sheet Options ▸ Gridlines ▸ Print is ticked.

4

You want two lines of text inside one cell → that is a LINE BREAK. Double-click the cell, position the cursor and press Alt+Enter (Mac: Ctrl+Option+Enter). Wrap Text alone breaks at the column edge, not where you choose.

5

You want to plot values as a connected line → that is a LINE CHART. Select the data and use Insert ▸ Charts ▸ Line, or Insert ▸ Sparklines ▸ Line for a mini chart inside a single cell.

Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

Excel has no feature called a "line". The word covers five unrelated things, and picking the wrong one is why the same instructions work for one person and not the next. A row is a horizontal band of cells with a number down the left edge. A border is a drawn edge you apply to selected cells and that prints. Gridlines are the faint guides Excel shows between all cells; they are a view setting and do not print by default. A line inside a cell is a manual line break within one cell's text. A line chart plots a series as a connected line. Each has its own control, its own shortcut, and its own failure mode. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “add lines in excel”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. The point is a layout choice that keeps the sheet readable and sortable, but the practical win is that someone else can open the file and understand what happened without asking you.

A worked example

Someone asked to "add lines to the table" almost always means borders: select A1:D20 and press Ctrl+Shift+7 (Home ▸ Borders ▸ All Borders) — those lines print. If instead the sheet needs another record, that is a row: right-click row 5's number ▸ Insert, or press Ctrl+Shift+= with the row selected. If the faint lines vanished, that is the gridline toggle: View ▸ Show ▸ Gridlines. And if an address needs to sit on two lines inside cell B2, click into B2, place the cursor and press Alt+Enter (Ctrl+Option+Enter on Mac). Naming the right feature is the whole job here: once you know whether you need a row, a border, a gridline, a line break or a chart, each one is a single shortcut — and every minute lost to this question was spent applying the wrong one. When the result is not what you expected, undo straight away rather than repairing it by hand — undo restores the sheet exactly, while manual fixes tend to leave small inconsistencies behind that surface later.

In Google Sheets

This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. If you take one thing from this page on “add lines in excel”, make it the order of checks rather than the individual clicks: confirm what is selected, apply the step, and look at the result before moving on. That small routine is what keeps Excel work predictable when the same task comes back in a slightly different workbook.

Common mistakes

  • Applying borders when the intent was gridlines: borders stay after the View toggle is switched off, because they are cell formatting, not a display setting.
  • Expecting gridlines to appear on paper — printing them is a separate checkbox on the Page Layout tab, off by default.
  • Pressing Enter to get a second line inside a cell: Enter commits the cell and moves down. Alt+Enter is the one that stays inside.
  • Deleting a "line" by pressing Delete on a row: that clears the contents and leaves an empty row. Right-click ▸ Delete removes the row itself and shifts the rest up.
  • Using merged cells to fake a wider line of text — merging breaks sorting, filtering and most range formulas. Wrap Text plus Alt+Enter does the same job without the damage.

Frequently asked questions

How do I add lines in Excel?

If you mean visible lines around cells, select the range and press Ctrl+Shift+7 to apply all borders. If you mean another record, insert a row with Ctrl+Shift+= . If you mean a second line of text inside one cell, press Alt+Enter where the break should go.

How do I remove lines in Excel?

Borders: select the range and press Ctrl+Shift+_ (Home ▸ Borders ▸ No Border). Gridlines: untick View ▸ Show ▸ Gridlines. A row: right-click its number ▸ Delete. Dotted lines that appeared after printing are page breaks — View ▸ Normal, then Page Layout ▸ Breaks ▸ Reset All Page Breaks.

What is the difference between gridlines and borders?

Gridlines are a display aid for the whole sheet: uniform, not printable by default, toggled in one place. Borders are formatting applied to specific cells: any colour and weight, always printed, and they survive the gridline toggle.

Why does Enter not give me a new line in a cell?

Enter confirms the entry and moves the selection down — that is by design. Use Alt+Enter (Ctrl+Option+Enter on Mac) to break the line inside the cell; Excel switches Wrap Text on for that cell automatically.

Other ways people ask this

On the way here you may have searched this as “how do i add a line in excel”, “how to add a line in excel”, “how to add lines to excel” and “add lines in excel” — it is all the same task, and this page is the single, complete answer to it.

Why do people search for this in so many different ways?

Because the same task has many names. “how do i add a line in excel”, “how to add a line in excel”, “how to add lines to excel” all point at the one operation explained on this page, which is why they all lead here.