Smart Systems for Home

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

How to Put Gridlines in Excel: Step-by-Step Guide

· 5 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 put gridlines in Excel, open your workbook and go to the View tab on the ribbon. In the Show group, check the box labeled Gridlines. This displays the faint gray lines that separate every cell on the active worksheet. If you want to print gridlines or change their color, you will need to use the Page Layout tab or Excel Options instead. The exact steps below cover Excel for Microsoft 365, Excel 2019, 2021, and 2024 on Windows; labels may differ slightly by version, device, or region.

What You'll Need

  • Microsoft Excel installed on a Windows PC or Mac (steps here are for Windows; Mac differences are noted where relevant).
  • A workbook open with at least one worksheet.
  • No additional software or add-ins required.

Step-by-Step

  1. Open your workbook in Excel and select the worksheet where you want gridlines to appear. Gridline settings apply per worksheet, not to the entire workbook.
  2. Click the View tab on the ribbon at the top of the window.
  3. Locate the Show group on the View tab. You will see checkboxes for Gridlines, Headings, and Formula Bar.
  4. Check the Gridlines box to turn gridlines on. If the box is already checked but you do not see lines, uncheck it, then check it again to refresh the display.
  5. To print gridlines, go to the Page Layout tab. In the Sheet Options group, under Gridlines, check the Print box. This makes the lines appear on printed pages and in PDF exports.
  6. To change gridline color (optional), open File > Options > Advanced. Scroll down to the Display options for this worksheet section, click the Gridline color dropdown, choose a color, and click OK. This affects only the selected worksheet.
  7. To hide gridlines on a specific worksheet, repeat step 4 and uncheck the Gridlines box. Other worksheets keep their own settings.
  8. To apply gridlines to an entire workbook, you must set them per worksheet. There is no single workbook-wide toggle. You can select multiple sheets by holding Ctrl and clicking their tabs, then check the Gridlines box on the View tab; the change applies to all selected sheets.

Common Mistakes

  • Confusing gridlines with cell borders. Gridlines are display-only lines that do not print unless you enable printing. Cell borders are formatting you apply to cells and always print. If you need lines to appear in a printed report, use borders (Home > Borders) or enable Print gridlines.
  • Expecting gridlines to appear on all sheets at once. The View tab setting applies only to the active sheet or selected sheets. New sheets you add later will have gridlines on by default, but existing sheets keep their own state.
  • Looking for gridline options in the Home tab. The main toggle is on the View tab. Color and print settings are on Page Layout or in Excel Options.
  • Assuming gridlines are lost when the file is shared. Gridline display is a local view setting; another user opening the same file may see gridlines even if you turned them off, and vice versa. To make lines consistent for everyone, apply cell borders instead.

Tips

  • Use gridlines for on-screen editing, but apply light gray borders when you want a clean printed table.
  • If gridlines look too faint, adjust your monitor contrast or change the gridline color to a slightly darker shade in File > Options > Advanced.
  • To quickly toggle gridlines on or off, you can add the Gridlines command to the Quick Access Toolbar: click the dropdown arrow at the end of the Quick Access Toolbar, choose More Commands, select All Commands, find Gridlines, and add it.
  • Gridlines do not appear in cells that have a fill color applied; the fill covers them. Remove the fill or use borders if you need visible lines.
  • When exporting to PDF, check the Print gridlines option first; otherwise the PDF will show only borders you have applied.

Troubleshooting

  • Gridlines checkbox is checked but no lines appear. The worksheet may have a white fill color applied to all cells. Select all cells (Ctrl+A), go to Home > Fill Color, and choose No Fill. Also check that the gridline color is not set to white in File > Options > Advanced.
  • Gridlines disappear after applying a table style. Excel tables often use banded rows and may hide gridlines. You can re-enable gridlines on the View tab, but the table style may still override the look. Consider removing the table style or using borders.
  • Gridlines do not print. Ensure Print gridlines is checked on the Page Layout tab. Also verify that the printer is not set to a draft mode that omits light lines.
  • Gridlines are missing only on one sheet. That sheet likely has the View > Gridlines box unchecked. Select the sheet and check the box.
  • Gridlines look different on another computer. Gridline display is a local setting; the other user may have a different Excel theme or monitor. Use borders for consistent appearance.

Frequently Asked Questions

Why can't I see gridlines in Excel even though the box is checked?

Check for a white cell fill color or a white gridline color setting. Select all cells and set Fill Color to No Fill, then verify the gridline color in File > Options > Advanced.

How do I make gridlines print in Excel?

Go to Page Layout > Sheet Options > Gridlines and check the Print box. Then print or export to PDF as usual.

Can I change the color of gridlines?

Yes. Open File > Options > Advanced, scroll to Display options for this worksheet, and choose a color from the Gridline color dropdown. This applies only to the active worksheet.

Do gridlines appear in Excel Online or Excel for Mac?

Excel for Mac has a Gridlines checkbox on the View tab, similar to Windows. Excel Online also offers a Gridlines toggle on the View tab. The exact location may vary slightly by version.

How do I turn off gridlines for the entire workbook?

There is no single workbook-wide toggle. Select all sheet tabs (hold Ctrl and click each tab, or right-click a tab and choose Select All Sheets), then uncheck Gridlines on the View tab. New sheets added later will still have gridlines on by default.

What is the difference between gridlines and borders?

Gridlines are faint lines that help you see cell boundaries on screen and can be printed if enabled. Borders are formatting you apply to specific cells and always print, giving you control over line style, color, and thickness.