How to Remove Borders in Excel

To remove borders in Excel, select the cells, go to the Home tab, click the arrow next to the Borders button, and choose No Border. This works in Excel for Windows, Mac and the web. It removes only the borders someone added, not the faint gray gridlines that every sheet shows by default.

Remove borders from selected cells

  1. Select the cells that have borders. To clear the whole sheet, click the select-all triangle at the top-left corner of the grid, or press Ctrl+A (Command+A on a Mac).
  2. Go to the Home tab.
  3. In the Font group, click the small arrow next to the Borders button. The button usually looks like a square divided into four panes.
  4. Choose No Border. Every border inside and around your selection disappears.

If some lines are still showing, they are probably gridlines or a table style rather than cell borders. The section on why lines are still there, below, shows how to tell them apart.

Remove borders with a keyboard shortcut

Select the cells and press Ctrl+Shift+_ (underscore) on Windows. On a Mac, Microsoft lists Command+Option+Hyphen. Both shortcuts remove the outline borders from the selected cells.

If you want to add a simple outline back later, the Windows shortcut is Ctrl+Shift+&.

Remove only some border lines

Sometimes you want to keep the outside frame and remove just the inside lines, or delete a single edge.

Advertisements

Use Erase Border (Windows)

  1. Go to Home and click the arrow next to Borders.
  2. Choose Erase Border. Your pointer changes to an eraser.
  3. Click each border line you want to remove, or drag across a group of cells to erase several at once.
  4. Press Esc when you’re done to put the eraser away.

Use the Format Cells dialog (Windows and Mac)

  1. Select the cells.
  2. Click the arrow next to Borders and choose More Borders. You can also press Ctrl+1 and open the Border tab.
  3. In the preview diagram, click any line you want to remove. It disappears from the preview.
  4. To clear everything, click None under Presets.
  5. Click OK.

Microsoft’s page on applying or removing cell borders shows the same options for Windows, and there’s a separate version for Excel for Mac.

Why lines are still there after No Border

Excel shows several kinds of lines that look alike. Here’s how to tell which one you’re dealing with.

What you see What it is How to remove it
Faint gray lines across the whole sheet Gridlines Go to View and clear the Gridlines check box
Lines that came with colored banded rows An Excel table style Change or clear the table style (see below)
Borders that appear only when a value meets a rule Conditional formatting Home > Conditional Formatting > Clear Rules
Dashed lines between pages Page break markers File > Options > Advanced, then clear Show page breaks (Windows)

Gridlines are the most common mix-up. They’re on by default, they don’t print unless you ask them to, and No Border doesn’t touch them. Our guide to removing gridlines in Excel covers hiding them on one sheet or several.

If your data is formatted as an Excel table, the lines belong to the table style. Clearing cell borders won’t stick. Instead, follow the steps to remove table formatting in Excel, which also explains how to keep the table’s sorting and filtering.

Clear all formatting at once

If you want the cells back to a completely plain state, select them and go to Home > Clear (the eraser icon in the Editing group) > Clear Formats.

Be aware that this removes much more than borders. Fill colors, fonts, bold text and number formats such as currency and dates are reset too. Your values and formulas stay in place. Use No Border instead if you only want the lines gone.

Questions about removing borders in Excel

Does removing borders delete my data?

No. Borders are only formatting. Your text, numbers and formulas are not affected.

Can I undo it?

Yes. Press Ctrl+Z (Command+Z on a Mac) right away to bring the borders back.

How do I remove a diagonal line from a cell?

Diagonal lines are borders too. Open More Borders, click the diagonal line in the preview (or the diagonal button beside it) to switch it off, and click OK. If you added it to split a cell in half, the cell’s text stays where you placed it.

Advertisements