Gridlines are on by default, but you can turn them off or adjust them

Excel shows gridlines by default — the light gray lines that separate cells into rows and columns. You see them on screen when you work, but they do not print unless you turn on a specific setting. If your gridlines have disappeared or you want to print them, you control both the display and print settings from the Page Layout tab.

The steps differ slightly depending on whether you want to change what you see on screen or what comes out of the printer. Both take about 30 seconds. Understanding the difference between viewing gridlines and printing them will help you get the exact look you need for your spreadsheet, whether you are working on screen or sharing a printed copy.

Key Takeaways

  • Gridlines are visible by default in Excel but do not print unless you enable the print option in Page Layout.
  • To hide gridlines on screen, go to Page Layout, find the Gridlines section, and uncheck View.
  • To print gridlines, check the Print box in the same Gridlines section on the Page Layout tab.
  • You can hide gridlines for one sheet without affecting other sheets in the same workbook.
  • Gridlines are different from borders — borders print automatically and apply to specific cells you choose.

Hide gridlines on your screen

Open the spreadsheet and click the Page Layout tab at the top of the ribbon. Look for the Gridlines section — it sits in the middle-left area of the ribbon, usually near Sheet Options.

You will see two checkboxes: View and Print. Uncheck the View box. The gridlines disappear from your screen immediately. Your data is still there; only the lines between cells are hidden. This change affects only the current sheet, so other sheets in the workbook keep their gridlines.

To bring gridlines back, return to Page Layout, find Gridlines, and check View again. This is useful when you want a cleaner look while working or when you are presenting your spreadsheet to others and prefer a less cluttered appearance.

Print gridlines on your document

By default, gridlines do not appear when you print or save as PDF, even though you see them on screen. To include them in your printed output, click the Page Layout tab and locate the Gridlines section.

Check the Print box. Now when you print the spreadsheet or export it as PDF, the gridlines will appear. This setting is independent of the View setting — you can print gridlines while hiding them on screen, or show them on screen without printing them.

After you check Print, go to File > Print to preview your document and confirm the gridlines appear the way you want them. The preview pane will show you exactly how the printed page will look with gridlines included.

The difference between gridlines and borders

Gridlines and borders look similar but work differently. Gridlines are a display feature that appears on every cell in the sheet. Borders are formatting you apply to specific cells, and they always print regardless of the gridline settings.

If you want lines around only certain cells — such as a table or a section of data — use borders instead. Select the cells you want, right-click, choose Format Cells, go to the Border tab, and pick a border style. Borders print automatically and give you more control over which cells have lines.

Many people use borders when they need a professional look for reports or when they want to emphasize specific data ranges. Borders also allow you to choose line thickness and color, whereas gridlines are always the same appearance.

Gridlines disappear after printing or converting to PDF

If you printed your spreadsheet or saved it as PDF and the gridlines did not appear, the Print setting was off. Open the file in Excel, go to Page Layout > Gridlines, and check the Print box. Then print or export again.

If you saved the file as an image (PNG, JPG) instead of PDF, gridlines will not appear because image exports capture only what you see on screen at that moment. If View is unchecked, the image will not include gridlines. Check View first, take a screenshot or use File > Export, then uncheck View again if you prefer to work without them.

Gridlines in different Excel versions

The Page Layout tab and Gridlines section exist in Excel 2010 and later for Windows. On Mac, the steps are nearly identical: click Page Layout (or in older versions, the View tab), find Gridlines, and check or uncheck View and Print.

In Excel Online (the browser version), gridlines are always visible on screen and cannot be hidden. The Print setting still works — open the file, go to Page Layout > Gridlines, and check Print before you print or download as PDF. This means if you work in Excel Online, you will always see gridlines while editing, but you control whether they appear in printed output.

Frequently Asked Questions

Why did my gridlines disappear?

Someone or a macro likely unchecked the View box in Page Layout > Gridlines. Click Page Layout, find Gridlines, and check View to bring them back. If you are working in a shared workbook, another user may have changed the setting.

Can I print gridlines for only some cells?

No, the Print gridlines setting applies to the entire sheet. If you want lines around only certain cells, use borders instead. Select those cells, right-click, choose Format Cells, go to Border, and pick a style. Borders print automatically and do not depend on the gridline setting.

Do gridlines print in color?

Gridlines print in black or dark gray, depending on your printer. You cannot change the gridline color — they are always a fixed shade. If you need colored lines, apply borders to your cells instead, and you can choose any color you want.

What if gridlines print but look faint?

Adjust your printer settings. Open File > Print, click Printer Properties or Preferences, and look for options like Print Quality, Darkness, or Toner Density. Increase the setting and print again. If the problem persists, your printer may need cleaning or maintenance.

Can I hide gridlines in just one column or row?

No, the View setting hides or shows gridlines for the entire sheet at once. If you want to hide lines in specific areas, use borders on those cells and turn off the overall gridline View setting. This gives you precise control over where lines appear.