Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Get Rid of Border Lines in Excel

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To remove border lines in Excel, select the cells with the borders, go to the Home tab, click the Borders dropdown, and choose No Border. If the lines are gridlines rather than borders, turn them off in the View tab by unchecking Gridlines. If the lines persist, the cells may have a fill color or conditional formatting creating the appearance of borders, or the borders may be part of a table style. This guide covers each method step by step, plus fixes for stubborn lines.

What You'll Need

  • Microsoft Excel (desktop version for Windows or Mac; steps may vary slightly by version and region)
  • A spreadsheet with border lines you want to remove
  • Basic familiarity with the Home and View tabs

Step-by-Step

  1. Identify the type of line. Border lines are formatting applied to cell edges. Gridlines are the faint lines that appear by default across the entire sheet. Look closely: if the lines are light gray and cover the whole sheet, they are gridlines. If they are darker, thicker, or only around specific cells, they are borders.
  2. Remove borders from selected cells. Select the cells, rows, or columns with borders. On the Home tab, in the Font group, click the arrow next to the Borders button. Choose No Border. This removes all borders from the selection.
  3. Remove borders from an entire sheet. Click the Select All button (the triangle at the top-left corner of the sheet, above row 1 and left of column A). Then go to Home > Borders > No Border. This clears borders from every cell on the sheet.
  4. Turn off gridlines. If the lines are gridlines, go to the View tab. In the Show group, uncheck Gridlines. This hides them on the current sheet. To hide gridlines on all sheets, you need to repeat this for each sheet, or change the default for new workbooks via File > Options > Advanced > Display options for this worksheet (uncheck Show gridlines).
  5. Check for fill color that looks like a border. Sometimes a cell has a background fill that creates a line effect, especially if adjacent cells have different fills. Select the cells, go to Home > Fill Color (the paint bucket), and choose No Fill.
  6. Remove table formatting. If your data is in an Excel Table (created via Insert > Table), the table style may include borders. Select any cell in the table, go to the Table Design tab (called Design in some versions), and in the Table Styles group, choose a style without borders, or click the Borders dropdown and remove borders. Alternatively, convert the table to a range: right-click the table, choose Table > Convert to Range, then remove borders as above.
  7. Clear conditional formatting that adds borders. Conditional formatting rules can apply borders based on cell values. Select the cells, go to Home > Conditional Formatting > Clear Rules > Clear Rules from Selected Cells (or from Entire Sheet). This removes any formatting rules, including borders.
  8. Remove borders via Format Cells. For precise control, select the cells, press Ctrl+1 (Cmd+1 on Mac) to open Format Cells, go to the Border tab, and click the None preset, then OK. This also lets you remove individual edges.
  9. Check for shapes or lines drawn on top. If lines are not cell borders, they might be inserted shapes. Go to Home > Find & Select > Selection Pane (or press Alt+F10) to see a list of objects. Select any line shapes and delete them.
  10. Save your changes. Press Ctrl+S (Cmd+S on Mac) to save the workbook.

Common Mistakes

  • Confusing gridlines with borders. Trying to remove gridlines using the Borders button will not work; use the View tab instead.
  • Not selecting the right cells. Borders apply to specific cells; if you only click one cell, only that cell's borders are removed. Select the full range.
  • Overlooking table styles. Excel Tables automatically apply borders that are not removed by the standard Borders button. You must change the table style or convert to a range.
  • Forgetting conditional formatting. Borders from conditional formatting persist even after clearing manual borders. Clear the rules.
  • Assuming all lines are borders. Page breaks, shapes, or cell fill can mimic borders. Use the Selection Pane to check for objects.

Tips

  • To remove borders quickly from a large range, select the range and press Ctrl+Shift+_ (underscore) to apply the No Border format. On Mac, use Cmd+Shift+_.
  • If you want to keep gridlines but hide them for printing, go to Page Layout > Sheet Options and uncheck Print under Gridlines.
  • Use the Format Painter to copy border-free formatting from one cell to others: select a cell with no borders, click Format Painter, then drag over the cells to fix.
  • To remove all formatting (including borders) from cells, select them and go to Home > Clear > Clear Formats. This also removes fill, font styles, and number formats, so use with caution.
  • If borders reappear after reopening the file, check for macros or add-ins that apply formatting automatically.

Troubleshooting

  • Borders won't go away after clicking No Border. The cells may be part of a table or have conditional formatting. Convert the table to a range and clear conditional formatting rules.
  • Gridlines are still visible after unchecking Gridlines. Gridlines may be applied as borders, or the sheet may have a white fill that contrasts with gridlines. Check for borders and fill color.
  • Lines appear only when printing. Check Page Layout > Sheet Options: ensure Print under Gridlines is unchecked, and check for print titles or page borders.
  • Lines are actually shapes. Use Home > Find & Select > Selection Pane to list objects; delete any line shapes.
  • Borders return after saving and reopening. The workbook may have a macro that reapplies borders. Disable macros or check the VBA code (Alt+F11).
  • Cannot select cells to remove borders. The sheet may be protected. Go to Review > Unprotect Sheet (password may be required).

Frequently Asked Questions

How do I remove all borders from an entire Excel sheet at once?

Click the Select All button (top-left corner of the sheet), then go to Home > Borders > No Border. This removes all cell borders on the sheet.

What is the difference between gridlines and borders in Excel?

Gridlines are the default light lines that appear across the entire sheet for reference; they are not printed by default. Borders are formatting you apply to specific cell edges and are printed.

Why do borders keep coming back after I remove them?

Conditional formatting, table styles, or macros can reapply borders. Clear conditional formatting rules, convert tables to ranges, or check for macros.

Can I remove borders from only one side of a cell?

Yes. Select the cell, open Format Cells (Ctrl+1), go to the Border tab, and click the specific edge (e.g., bottom) to toggle it off, or use the Borders dropdown and choose the appropriate option like Left Border to remove it.

How do I hide gridlines in Excel for printing?

Go to Page Layout > Sheet Options and uncheck Print under Gridlines. This hides gridlines on printed pages only.

What if the lines are not borders but shapes?

Use Home > Find & Select > Selection Pane to list all objects on the sheet. Select any line shapes and press Delete.