How to Display Gridlines in Excel: Step-by-Step Guide
In this article
To display gridlines in Excel, go to the View tab on the ribbon and tick the Gridlines checkbox in the Show group. That single toggle turns the faint cell borders back on for the active worksheet. If the lines still do not appear, the usual culprits are a white fill colour applied to cells, a border colour set to white, or a workbook that has the gridline colour set too light to see. The steps below cover the ribbon toggle, the Excel Options route, and the fixes for each of those causes.
What You'll Need
- A desktop copy of Excel for Windows or Mac, or Excel for the web. The exact labels can differ slightly by version, device and region, but the View tab is present in all current desktop releases.
- The workbook open on the sheet where the gridlines are missing.
- No add-ins or macros are required.
Step-by-Step
- Select the worksheet. Click the tab of the sheet where you want gridlines. The View tab toggle applies only to the active sheet, so if you have several sheets, repeat the step on each one or select all sheet tabs first by right-clicking a tab and choosing Select All Sheets.
- Open the View tab. On the ribbon, click View. On Windows this sits between Insert and Review in the default layout; on Mac it is in the same position.
- Tick the Gridlines checkbox. In the Show group, click the Gridlines checkbox so it shows a tick. The lines appear immediately. If the box is already ticked but you see no lines, move on to the troubleshooting section below.
- Check the gridline colour if the lines are faint. Open File > Options > Advanced (on Mac, Excel > Preferences > View). Scroll to the Display options for this worksheet section, confirm the worksheet name in the dropdown is the one you are editing, and look at the Gridline color setting. A very light grey or white here makes the lines effectively invisible. Choose a darker grey or Automatic, then click OK.
- Print gridlines separately if needed. Displaying gridlines on screen does not print them. To print them, go to Page Layout > Sheet Options and tick Print under Gridlines. You can also reach this from the Page Setup dialog on the Sheet tab.
- Save the workbook. Press Ctrl+S on Windows or Cmd+S on Mac so the setting is stored with the file.
Common Mistakes
- Assuming the View toggle fixes white cells. If someone has applied a white fill colour to a range, the gridlines are still there underneath; the fill simply covers them. Select the range, go to Home > Fill Color and choose No Fill.
- Confusing borders with gridlines. Gridlines are a display setting and are not cell formatting. If a cell has a white border applied, it will hide the gridline at that edge even when the View checkbox is ticked. Clear the border with Home > Borders > No Border, then reapply only the borders you want.
- Changing the setting on the wrong sheet. The View tab checkbox is per-sheet. Ticking it on Sheet1 does nothing for Sheet2. Use Select All Sheets first if you want it everywhere.
- Expecting the setting to print. Screen gridlines and printed gridlines are separate options. The View tab controls the screen; Page Layout > Sheet Options > Print controls the printer.
- Overlooking Excel for the web. The web version has a simpler View tab. If the Gridlines checkbox is missing there, open the workbook in the desktop app to change the setting; the change then carries over when you reopen it in the browser.
Tips
- To hide gridlines for a cleaner look on a dashboard or report sheet, untick the same View > Gridlines box. The data stays editable; only the lines disappear.
- If you want visible lines only around a table, turn gridlines off and apply borders to the table range instead. This gives a tidier printout than relying on gridlines.
- Use a light grey gridline colour rather than black for on-screen work. Black gridlines compete with the data and make dense sheets harder to read.
- When sharing a workbook, remember that gridline display is a local view setting saved in the file, so a colleague opening it will see whatever state you saved.
- If you work with many sheets, set up the gridline colour once in Excel Options with the active sheet selected, then apply the View toggle per sheet as needed.
Troubleshooting
The Gridlines checkbox is ticked but no lines appear. Check for a white fill colour first: select the whole sheet with Ctrl+A (Cmd+A on Mac), then Home > Fill Color > No Fill. Next check borders: Home > Borders > No Border. If the sheet still looks blank, open File > Options > Advanced and confirm the gridline colour is not white.
The checkbox is greyed out. This usually means the workbook is in a view mode that does not support gridlines, such as Page Layout view or Page Break Preview. Switch to Normal view on the View tab, then tick Gridlines.
Gridlines disappeared after a paste or a macro ran. Pasting formatted cells can bring white fills and borders with it. Use Paste Special > Values to avoid carrying formatting, or reapply No Fill to the affected range.
Lines show on screen but not in print preview. That is expected. Tick Page Layout > Sheet Options > Print under Gridlines, then check Print Preview again.
Nothing changes after any of the above. Close and reopen Excel, then reopen the file. If the problem persists, check whether the workbook is protected: a protected sheet can block some view changes. On the Review tab, look for Unprotect Sheet and unprotect it if you have the password. Unprotecting does not delete data, but it does remove the protection until you reapply it.
Frequently Asked Questions
Why can I not see gridlines in Excel even though the box is ticked?
Almost always a white cell fill or a white border is covering them. Select the range, set Fill Color to No Fill and Borders to No Border, then check the gridline colour in Excel Options.
Do gridlines print by default?
No. Screen gridlines and printed gridlines are separate settings. Turn on Print under Page Layout > Sheet Options > Gridlines to include them on paper.
Can I change the gridline colour?
Yes. Go to File > Options > Advanced (Excel > Preferences > View on Mac), find Display options for this worksheet, and pick a colour under Gridline color. The change applies to the selected worksheet.
Why is the Gridlines checkbox greyed out?
You are probably in Page Layout or Page Break Preview view. Switch to Normal view on the View tab and the checkbox becomes active again.
Do gridline settings apply to every sheet in the workbook?
The View tab toggle applies to the active sheet only. To apply it to several sheets at once, right-click a sheet tab, choose Select All Sheets, then tick Gridlines.
Are gridlines the same as cell borders?
No. Gridlines are a display aid and are not formatting. Borders are applied to cells and will print if you set them to. Use borders when you need permanent lines around a table.