Smart Systems for Home

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

How to Add Gridlines in Excel: Print & View Options

· 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

Adding gridlines in Microsoft Excel ensures that your data tables remain readable and structured, whether you are viewing them on screen or preparing them for print. By default, Excel displays light gray lines between cells to help you navigate the worksheet, but these lines do not appear when you print the document unless you specifically enable them. To add visible gridlines for printing, you must adjust the page layout settings; to change how they look on screen, you can modify the view options or apply cell borders manually.

What You'll Need

  • A computer with Microsoft Excel installed (desktop version recommended for full feature access).
  • An open Excel workbook containing the data you wish to format.
  • Basic familiarity with the Excel ribbon interface.

Step-by-Step

  1. Open your Excel file: Launch Microsoft Excel and select the workbook where you want to add or modify gridlines. Ensure you are on the specific worksheet tab you intend to edit.
  2. Navigate to the Page Layout tab: Look at the top ribbon menu. Click on the tab labeled Page Layout. This section controls how your spreadsheet appears when printed or exported to PDF.
  3. Locate the Sheet Options group: Within the Page Layout tab, find the group of buttons labeled Sheet Options. This area contains toggles for headings, gridlines, and other visual elements.
  4. Enable Print Gridlines: Under the Gridlines label within Sheet Options, check the box next to Print. This action tells Excel to include the standard light gray gridlines in your final output. If you leave this unchecked, the cells will appear blank white space when printed.
  5. Adjust View Gridlines (Optional): Still under Sheet Options, check the box next to View if you want gridlines to be visible while working on the screen. Note that unchecking this hides gridlines on screen but does not affect printing.
  6. Preview your changes: Go to File > Print to see a preview of how your document looks with the new gridline settings. This confirms that the lines are appearing as expected before you commit to printing.
  7. Apply custom borders for emphasis: If standard gridlines are too faint or you need thicker lines for specific sections, select the range of cells you want to highlight. Go to the Home tab, click the small arrow next to the Borders icon in the Font group, and choose All Borders or a custom style like Thick Box Border.

Common Mistakes

One frequent error is assuming that checking the "View" box enables printing. The "View" setting only affects what you see on your monitor; it has no impact on the physical paper output. Always ensure the "Print" checkbox is selected under Page Layout if you require gridlines in hard copies.

Another common mistake is confusing gridlines with cell borders. Gridlines are uniform, light gray, and cover the entire sheet by default. Cell borders are customizable lines applied to specific ranges. Users often try to make gridlines darker or colored, which is not possible directly; instead, they must use cell borders to achieve distinct visual separation.

Finally, users sometimes forget to save their changes after adjusting print settings. If you close the file without saving, the gridline preferences may revert to default, causing unexpected results in future print jobs.

Tips

  • Use Freeze Panes for large datasets: While not strictly about gridlines, freezing top rows or left columns helps maintain context when scrolling through large sheets where gridlines might become visually overwhelming.
  • Combine with Fill Color: For better readability, consider alternating row colors (banding) alongside gridlines. You can do this quickly by converting your data range into an Excel Table (Insert > Table), which automatically applies banded rows and distinct borders.
  • Check Printer Drivers: Some older printer drivers may render thin gridlines poorly. If lines appear broken or missing, try increasing the line weight by using cell borders instead of relying solely on default gridlines.
  • Hide Unnecessary Areas: If you only want gridlines around a specific table, set the rest of the sheet to have no borders and hide gridlines via View > Uncheck Gridlines, then manually add borders to your target area.

Troubleshooting

If gridlines are not appearing in the print preview despite enabling the "Print" option, first verify that you are selecting the correct worksheet. Settings apply per sheet, so if you have multiple tabs, ensure you adjusted the setting on the active tab.

Check your zoom level. At very low zoom levels, Excel may suppress the display of gridlines on screen for performance reasons, though this rarely affects print output. Resetting zoom to 100% can help diagnose visual issues.

If custom borders are not showing up, ensure that the cell fill color is not set to white or a color identical to the border. A white border on a white background will be invisible. Change the border color to black or dark gray for contrast.

In rare cases, corrupted files may ignore formatting commands. Try copying the data to a new, blank workbook and reapplying the gridline settings to rule out file corruption.

Frequently Asked Questions

Can I change the color of default gridlines?

No, you cannot change the color of the default system gridlines in Excel. They are always light gray. To get colored lines, you must apply cell borders manually and choose a specific color from the border palette.

Why do my gridlines disappear when I scroll?

This usually happens if you have hidden gridlines in the View tab or if your computer's graphics driver is struggling with rendering large sheets. Check that View > Gridlines is checked. If the issue persists, updating your graphics drivers or reducing the number of formulas in the sheet may help.

Do gridlines show up in PDF exports?

Yes, if you have enabled the "Print" gridlines option in the Page Layout tab, they will appear in PDFs generated via Save As > PDF or Export. If the "Print" box is unchecked, the PDF will not contain gridlines.

How do I remove gridlines from just one part of the sheet?

You cannot selectively hide default gridlines for specific cells. Instead, you must turn off gridlines for the entire sheet (View > uncheck Gridlines) and then manually add cell borders to the areas where you want lines to appear.

Will adding gridlines increase my file size?

Enabling default gridlines has a negligible effect on file size because they are rendered dynamically by the application rather than stored as individual objects. However, applying thousands of custom cell borders can significantly increase the file size.