How to Print Lines in Excel: Gridlines, Borders & More

How-to basics · Updated November 23, 2026

To print lines in Excel, enable the Print option for gridlines: go to Page Layout > Sheet Options > Gridlines > Print and check the box. This prints the light gray gridlines that normally appear on screen. If you need darker or custom lines, use cell borders instead (Home > Borders).

Why Gridlines Don’t Print by Default

Excel’s on-screen gridlines are a visual aid, not a part of the printed page. By default, Excel suppresses them in print to keep output clean and to reduce ink usage. This is a deliberate design choice that dates back to early spreadsheet software, where printed output was expected to look like a typed table without faint lines. Many users are surprised when their data prints without any row or column separators, leading to the common question: “Why did my lines disappear?”

The distinction matters: gridlines are a global sheet setting, while borders are formatting applied to specific cells. Gridlines print in the lightest gray and cannot be colored or thickened. Borders can be any color, weight, or style (dashed, dotted, double). If you need lines that stand out, borders are the right tool.

How to Turn On Gridline Printing (Step by Step)

For Microsoft Excel 365 on Windows, the steps are:

  1. Open the worksheet you want to print.
  2. Go to the Page Layout tab on the ribbon.
  3. In the Sheet Options group (right side), find Gridlines.
  4. Check the Print checkbox under Gridlines.

On a Mac, the path is identical: Page Layout > Sheet Options > Gridlines > Print. In Excel for the web, go to Page Layout > Sheet Options and select the Print checkbox under Gridlines. Note that Excel for the web does not support all print options, but this one is available.

After checking the box, press Ctrl+P (Windows) or Cmd+P (Mac) to preview. You should see light gray lines around each cell. If you don’t see them, ensure the printer driver isn’t stripping them—try exporting to PDF first to verify.

Using Borders for Custom or Darker Lines

Gridlines print only in a faint gray. If you want black, colored, thicker, or selective lines, apply borders. Borders are cell formatting, so they print exactly as shown.

To add borders:

  1. Select the range of cells you want lines around.
  2. Go to Home > Font > Borders (the icon looks like a window with four quadrants).
  3. Choose a preset like All Borders or Outside Borders, or click More Borders to customize line style and color.

For example, to create a table with thick outer edges and thin inner lines, select the data range, then use More Borders to set the inside lines to thin and the outside to thick. This is a common technique for professional-looking reports.

Borders are also useful when you only want lines around specific cells, like a header row or a totals column. Gridlines apply to the entire sheet, so you can’t selectively turn them on for just a few cells.

How to Choose Between Gridlines and Borders

Here’s a practical decision guide:

  • Use gridlines when you need a quick, light separator for a large data set and don’t mind the faint gray appearance.
  • Use borders when you need dark lines, colored lines, or want to highlight only certain areas (like a summary block).
  • Use both when you want gridlines for the whole sheet but also want a heavy border around a specific table.

If you want to remove gridlines from the screen (but keep them printing), go to View > Show > Gridlines and uncheck it. That affects only the display, not the print setting.

Common Problems and Fixes

Several issues can prevent lines from printing:

  • Lines still not printing after checking the box: Check if the sheet has a print area set. Go to Page Layout > Print Area > Clear Print Area if needed. A print area can exclude parts of the sheet.
  • Gridlines print but are too light: That’s normal—gridlines are always light gray. Use borders for darker lines.
  • Borders don’t print: Ensure the border color isn’t white. Select the cells, go to Home > Borders > Line Color, and pick a dark color.
  • Lines appear on screen but not in PDF: Some PDF printers have a “print as image” option that may help. Also, check the printer’s color settings—if it’s set to grayscale, light gray may vanish.
  • Gridlines print only on some pages: This can happen if the print area or page breaks cut cells. Adjust the print area or set Page Layout > Scale to Fit to fit all columns on one page.

Printing Lines in Google Sheets (for Comparison)

If you’re using Google Sheets, the process is different. In Google Sheets, gridlines are not a print option; instead, you must use borders. To print lines in Google Sheets:

  1. Select the cells you want lines around.
  2. Click the Borders icon in the toolbar (or go to Format > Borders).
  3. Choose All borders or a custom style.
  4. Go to File > Print (or press Ctrl+P) and check the preview.

Google Sheets doesn’t have a gridline print toggle, so you must apply borders manually. Excel’s gridline print option is a unique feature that saves time when you want a quick table look.

Printing Specific Lines: Row and Column Headers

Sometimes “lines” refers to the row numbers and column letters (headers). To print those:

  1. Go to Page Layout > Sheet Options > Headings.
  2. Check the Print box under Headings.

This prints the A, B, C… and 1, 2, 3… labels. This is useful when you want to reference cell addresses in a printed document. On Mac, the path is the same. In Excel for the web, this option is under Page Layout > Sheet Options as well.

Frequently Asked Questions

Why are my gridlines not printing even though I checked the box?
Check if you have a print area set that excludes the gridlines. Also, ensure the sheet isn’t set to “Draft quality” in page setup (Page Layout > Page Setup > Sheet > Draft quality). Draft quality suppresses gridlines and graphics.

Can I change the color of printed gridlines?
No. Gridlines are always light gray. To get colored lines, you must use borders. Select the cells, go to Home > Borders > Line Color, pick a color, then apply a border style.

How do I print lines only around a specific table, not the whole sheet?
Use borders on that table’s range. Select the cells, then apply borders. Gridlines print for the entire sheet, so you can’t limit them to a range.

Do gridlines print in Excel for Mac?
Yes, the same option exists: Page Layout > Sheet Options > Gridlines > Print. The steps are identical to Windows.

Will gridlines print if I save as PDF?
Yes, if the Print checkbox is enabled, the PDF will include the gridlines. If you export without enabling, they won’t appear.

How do I remove lines that are printing but I don’t want?
If you see lines that aren’t borders, they’re likely gridlines. Uncheck the Print box under Gridlines in Page Layout. If they are borders, select the cells and go to Home > Borders > No Border.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.