If you want to clear grid lines in Excel, you usually need to hide them rather than delete them. Gridlines are the faint lines that separate cells on a worksheet, and they are different from borders you add yourself. You can turn gridlines off for a worksheet, hide them in a selected area by applying a fill color, or control whether they appear on printed pages. The right method depends on whether you want a cleaner view on screen, a polished printout, or a worksheet with no visible cell divisions.
This guide explains how to remove or hide grid lines in Excel for Windows, Mac, and the web, how to handle gridlines when printing, and what to check if lines remain after you turn them off.
What Are Gridlines in Excel?
Gridlines are the light gray lines Excel displays between rows and columns. They help you see where one cell ends and another begins, especially when a worksheet contains a lot of data. By default, gridlines are visible on screen, but they are not the same as cell borders.
Cell borders are formatting that you or another user apply to cells. They can be colored, thick, or styled in different ways, and they remain visible even when worksheet gridlines are hidden. This distinction matters: turning off gridlines will not remove borders. If the lines you see are dark, colored, or unusually thick, they are likely borders or another worksheet feature rather than standard gridlines.
How to Hide Gridlines in Excel for Windows
The quickest way to clear grid lines from the worksheet view in Excel for Windows is to use the View tab. The setting applies to the active worksheet, not automatically to every sheet in the workbook.
- Open the worksheet where you want to hide the gridlines.
- Select the View tab on the ribbon.
- In the Show group, clear the Gridlines checkbox.
The lines should disappear from the worksheet immediately. Your data, formulas, and cell layout are not changed. To show the gridlines again, return to the View tab and select the Gridlines checkbox.
If you do not see the Show group, your Excel window may be narrow or the ribbon may be simplified. Maximize the window, expand the ribbon, or look for the gridline control within the View tab. The exact layout can vary slightly by Excel version.
How to Hide Gridlines in Excel for Mac
Excel for Mac also lets you hide worksheet gridlines from the View tab. Open the sheet you want to change, choose View, and clear the Gridlines option. Select the option again whenever you want the lines back.
Depending on your version of Excel for Mac, you may also find a gridline setting in the worksheet’s layout or display options. If the ribbon arrangement looks different from the steps above, check the View tab first and then look for Gridlines in the available display controls.
How to Hide Gridlines in Excel for the Web
In Excel for the web, open the workbook and select the worksheet you want to edit. Choose the View tab, then turn off Gridlines if that option is available in your current layout. The worksheet view updates without removing data or changing formulas.
Excel for the web’s controls can change as Microsoft updates the interface. If you cannot find the setting, check the View tab for sheet display options. You can also open the workbook in the desktop version of Excel if you need more control over print settings or worksheet formatting.
How to Hide Gridlines on One Worksheet or Multiple Worksheets
Gridline visibility is a worksheet-level setting. That means hiding lines on one sheet does not necessarily hide them on other sheets in the same workbook. If you want a consistent appearance throughout the file, visit each worksheet and turn off its gridlines.
For a workbook with many sheets, you may be able to group worksheets and apply a view change to the selected sheets together. To do this, select the sheet tabs you want to group, using Ctrl-click on Windows or Command-click on Mac for separate tabs, or Shift-click to select a range. Then change the gridline setting. Be careful when sheets are grouped: edits and formatting changes can affect every grouped sheet. Right-click a selected tab and choose Ungroup Sheets when you are finished.
Because grouping behavior can vary with the action and Excel version, check each sheet before sharing the workbook. If the change did not apply as expected, ungroup the sheets and turn off gridlines individually.
How to Hide Gridlines When Printing
Hiding gridlines on screen does not always control whether they appear on a printed worksheet. Excel provides separate settings for displaying gridlines and printing them. To check the print setting in Excel for Windows, use the Page Layout tab and locate the Sheet Options group. Under Gridlines, clear the Print checkbox.
In some Excel versions, you can also open the Page Setup dialog and look for the Sheet tab. There, check that the Gridlines option is not selected under Print. On a Mac, look under Page Layout or the print and page setup options available in your version.
Before printing, use File > Print to preview the worksheet. The preview shows how the pages are likely to look and can help you catch unwanted lines, cut-off columns, or awkward page breaks. If you want gridlines in the printout but not on screen, leave the Print option selected while turning off the View option. These controls are independent.
How to Hide Gridlines in Only Part of a Worksheet
Excel’s standard Gridlines checkbox affects the whole worksheet. It does not let you switch off gridlines for just one cell or a small range while keeping them visible everywhere else. However, you can create a similar appearance by applying a fill color to the cells where you want the lines hidden.
- Select the cells or range you want to change.
- Open the Home tab.
- Choose the Fill Color menu in the Font group.
- Select a fill color, such as white, or choose a color that matches the worksheet background.
Gridlines generally do not show through cells that have a fill color, even if the fill looks white. This can help create a clean title area, form, or report section while leaving gridlines visible elsewhere. Keep in mind that this is a visual formatting workaround, not a separate gridline setting for the range. It may also affect how the cells look when printed or when the worksheet background is changed.
How to Remove Borders That Look Like Gridlines
If turning off Gridlines does not remove the lines you see, check whether they are cell borders. Select the affected cells and choose Home > Borders. You can use No Border to remove the borders from the selected cells. If you only want to remove one edge, use the border menu to adjust that specific side instead.
Be cautious with No Border: it removes border formatting from every selected cell, including any intentional outlines or separators. If the worksheet has important formatting, consider using Undo immediately if the result is not what you expected, or save a copy before making broad changes.
Other features can also resemble gridlines. Page breaks may appear as dashed or solid lines, especially after using print preview. Freeze Pane boundaries can mark where frozen rows or columns meet the rest of the sheet. These are not gridlines, so turning off the Gridlines checkbox will not remove them.
How to Tell Gridlines, Borders, and Page Breaks Apart
- Gridlines are usually thin, light gray, and visible across the worksheet. The View tab controls whether they appear on screen.
- Cell borders may be darker, colored, or thicker. They are applied as formatting and can be removed through the Borders menu.
- Page breaks indicate where printed pages divide. They may appear as dashed or solid lines and are controlled through page layout or view options.
- Freeze Pane boundaries show the division between frozen rows or columns and the scrolling portion of the worksheet.
Identifying the type of line first helps you avoid changing the wrong setting. If a line appears only after printing or previewing, investigate the page setup. If it remains after gridlines are hidden, inspect the cell borders or worksheet view settings.
Why Gridlines May Still Appear After You Turn Them Off
There are several common reasons grid lines seem to remain. First, you may have changed the setting on a different worksheet. Select the sheet tab you are viewing and check its Gridlines option again. Second, the lines may be cell borders rather than gridlines. Test this by turning gridlines off; borders will remain visible.
Third, a fill color may make some cells look different from the rest of the sheet. Check the selected cells’ fill and border formatting if the appearance is inconsistent. Finally, if the lines appear in a printed document, verify the separate Print setting under Page Layout or Page Setup. Screen display and print output use different controls.
How to Restore Gridlines
To bring gridlines back, select the worksheet and turn on View > Gridlines. If they are still missing, check whether the cells have a fill color. Gridlines may not be visible through filled cells, so use the Fill Color menu and choose No Fill if you want the standard worksheet background back. This may affect other formatting, so review the selected range before applying it.
If you also want lines in a printout, turn on the separate Print option under Page Layout or Page Setup. Remember that restoring gridlines does not restore borders that were previously deleted.
Tips for a Cleaner Excel Worksheet
Hiding gridlines can make a finished report, dashboard, or presentation sheet look more polished. It can also make a worksheet easier to read when you have added your own borders, shading, and layout. For a working data-entry sheet, however, gridlines can help users follow rows and columns. Choose the display that best supports the worksheet’s purpose.
If you hide gridlines, consider using deliberate formatting to preserve clarity. Add borders where users need to distinguish sections, use consistent heading styles, and apply fill colors sparingly. When preparing a printout, preview the pages and check both gridline printing and any added borders so the result is readable on paper.
Conclusion
To clear grid lines in Excel, open the worksheet’s View tab and turn off Gridlines. This hides them on screen without changing your data. For printed pages, adjust the separate Gridlines setting under Page Layout or Page Setup. If lines remain, check for cell borders, fills, page breaks, or Freeze Pane boundaries. Once you know which type of line you are dealing with, you can choose the right setting and give your worksheet the appearance you want.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.