Lines in Excel come in three types—gridlines, borders, and page breaks—and each requires a different removal method to clean up your spreadsheet.
When you set out to eliminate lines in Excel, the first thing to know is that “lines” means three different things. The faint gray gridlines between cells, the colored borders someone drew around them, and the dashed page-break marks each need a separate fix. Removing all of them starts with telling them apart.
Removing Lines in Excel: A Method for Each Line Type
Gridlines are the default gray separators Excel draws between every cell. Borders are lines users add manually around or inside cells. Page breaks are dashed marks Excel inserts where pages split during printing. Each one has its own removal route, and using the wrong fix is the most common mistake people make.
| Method | What It Removes | Steps |
|---|---|---|
| Uncheck Gridlines (View Tab) | Gridlines on the active sheet | View tab > Show group > uncheck Gridlines |
| Excel Options (Permanent) | Gridlines at the file level | File > Options > Advanced > Display > uncheck Show gridlines |
| White Fill Color | Gridlines on selected cells only | Home tab > Fill Color dropdown > choose White |
| No Border | User-defined borders | Home tab > Borders dropdown > select No Border |
| White Border Color | Stubborn borders that won’t clear | Format Cells > Border tab > set Color to White > apply Outline and Inside |
| Remove Page Breaks | Dashed print-split lines | File > Options > Advanced > Display > uncheck Show page breaks |
| Keyboard Shortcut | Gridlines (toggle on/off) | Press Alt then W then V then G |
How to Remove Gridlines from the Entire Sheet
This is the most common request: turn off all those gray gridlines at once. Microsoft Excel puts the control in one place on the ribbon.
- Click the View tab in the ribbon at the top of Excel.
- In the Show group, find the Gridlines checkbox (it has a small grid icon next to it).
- Uncheck the box.
The gridlines vanish from the active sheet immediately. To remove them from every sheet in the workbook, hold Ctrl and click each sheet tab at the bottom before unchecking — the setting only applies to the sheets you’ve selected.
For a more permanent version of this setting, go to File > Options > Advanced. Scroll to the Display options for this worksheet section and uncheck Show gridlines. This bypasses the View tab entirely and locks the change at the file level. Microsoft’s official gridlines documentation confirms this as the primary method for all modern Excel versions.
How to Hide Gridlines in Specific Cells Only
Sometimes you want gridlines gone from just one section — a header row, a summary block, or an area next to a chart — while keeping them everywhere else. The white-fill trick handles this without affecting the rest of the sheet.
- Select the cells or range where you want the lines hidden.
- Go to the Home tab.
- In the Font group, click the Fill Color dropdown — the paint bucket icon.
- Choose White from the color palette.
The gray gridlines disappear behind the white background, and your data stays fully readable. One trade-off: this masks the gridlines rather than removing them. If you later apply a different theme or remove the fill, the lines reappear. It’s a cosmetic fix, not a structural one.
How to Remove Borders (Lines You Drew Yourself)
Borders are the lines users add manually — around a cell, along its bottom edge, or as a full grid within a range. They look similar to gridlines, but they don’t disappear when you uncheck the Gridlines box. Borders need their own command.
- Select the cells that contain the borders you want to remove.
- Go to the Home tab.
- In the Font group, click the Borders dropdown arrow.
- Select No Border from the list.
The borders disappear from the selected cells. If a border stubbornly stays visible, its color may be set to something other than automatic. Open the Format Cells dialog (right-click the cells and choose Format Cells), go to the Border tab, set the Color to White, and apply it to both Outline and Inside presets. This overrides any colored border still showing.
What Are Those Dashed Lines on My Sheet?
Dashed lines running across your spreadsheet are not gridlines or borders — they are page breaks. Excel inserts them automatically to show where pages will split when the sheet is printed. They only appear on screen and don’t affect your data, but they can make a worksheet look cluttered.
- Go to File > Options > Advanced.
- Scroll down to the Display options for this worksheet section.
- Uncheck Show page breaks.
The dashed lines disappear immediately. This is a per-sheet setting, so repeat it for each worksheet where the page breaks appear.
Which Removal Method Fits Your Situation?
The table below matches what you see on screen to the exact fix. Identify the line type first, then use the corresponding method from the steps above.
| What You See | What It Is | What To Do |
|---|---|---|
| Faint gray lines between every cell | Gridlines | View tab > uncheck Gridlines |
| Black or colored lines around or inside cells | Borders | Home tab > Borders > No Border |
| Dashed lines crossing the sheet | Page breaks | Options > uncheck Show page breaks |
| Lines that print but don’t show on screen | Print gridlines setting enabled | Page Layout tab > uncheck Print under Gridlines |
| Lines still visible after unchecking Gridlines | Borders (not gridlines) | Use the No Border method above |
| Gridlines only gone on one sheet | Partial application | Select all tabs first (Ctrl+click), then uncheck Gridlines |
| White fill didn’t hide the lines | Borders are overriding the fill | Remove borders first, then apply white fill |
The rule of thumb is straightforward: gray lines between cells are gridlines (fix them on the View tab), colored lines around or inside cells are borders (fix them on the Home tab), and dashed lines across the sheet are page breaks (fix them in Options). Match what you see to the right fix, and you can clean up any Excel sheet in seconds.
References & Sources
- Microsoft Support. “Show or hide gridlines on a worksheet.” Official documentation covering gridline removal steps for all current Excel versions.
