How to Get Rid of Lines in Excel

There are two ways to “get rid of lines in excel”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

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. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. Treat “get rid of lines in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected cells shows up while it is still harmless. 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. That turns a visual that makes the number obvious at a glance into a method you can reuse, explain, and defend when the workbook leaves your screen.

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. If this is something you do often, add the command to the Quick Access Toolbar (right-click it on the ribbon and choose Add to Quick Access Toolbar) or learn its shortcut, so next time it is one click instead of a hunt through the menus.

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. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. Here is the takeaway for “get rid of lines in excel”: follow the steps at the top, check the result on the sheet itself, and keep undo in mind while you experiment. Done once deliberately, it becomes something you do from memory in Excel rather than something you search for again.

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

This is also commonly searched as “how to get rid of the lines in excel”, “how to get rid of grid lines in excel”, “how to get rid of a line in excel” and “how to get rid of dashed lines in excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.

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

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