Skip to main content

Gridlines in Excel: How to Add, Print, and Remove

Understand how Excel gridlines work, when they appear, and how they are different from borders. Learn to create clear worksheets on screen and in print.
Jan 27, 2026  · 6 min read

In this guide, I will explain what Excel gridlines are, how to show or hide them when needed, how they differ from cell borders, and how they behave when a worksheet is printed.

If you are getting started in Excel, our Introduction to Excel course covers skills like navigating the interface, understanding data formats, and working with basic functions. Also, you can take our Advanced Excel Functions course if you have some experience to learn more about how functions improve efficiency in data analysis.

What Are Gridlines in Excel?

Gridlines, as you might guess, are the faint lines that appear between rows and columns in an Excel worksheet. People like them because they help you more easily read data, follow values across rows, and align info without adding any other kinds of formatting.

It’s important to note that gridlines are part of Excel’s default display, not cell formatting. They don’t represent borders, don’t affect the data itself, and can be shown or hidden without changing how the worksheet is structured.

How to Show or Hide Gridlines in Excel

You can control gridline visibility through Excel’s view settings. This allows you to adjust how a worksheet looks on screen without altering cell content or formatting.

Showing and hiding gridlines on a worksheet

You can toggle gridlines on or off using the ribbon in the steps below:

  • Open the worksheet you want to adjust
  • Go to the View tab
  • In the Show group, check or uncheck Gridlines

How to turn off gridlines in Excel

You should note that this setting applies only to the currently active worksheet. Turning gridlines off in one sheet does not affect others in the same workbook. 

The steps for showing or hiding gridlines are the same across platforms, with the following interface differences:

  • Excel for Windows and Mac: Gridlines are toggled from the View tab
  • Excel for the web: Gridlines are also controlled from the View menu, though the layout may differ slightly

Managing gridlines across multiple worksheets

When you group multiple worksheets, changes to gridline visibility apply to all grouped sheets at the same time. This can be useful when you want consistent display settings across several worksheets.

If gridlines appear to turn off unexpectedly in multiple sheets, check whether the worksheets are still grouped. When this happens, ungroup the sheets to restore independent control over gridline settings.

Why Gridlines Sometimes Don’t Appear

If gridlines seem to be missing, it’s usually due to a display or formatting choice rather than a problem with the worksheet itself. The following are some of the possible causes for this issue:

  • Cell background fill: When a fill color is applied to a cell, Excel hides the gridlines behind it. This can make gridlines appear to disappear even though they’re still enabled.
  • Zoom and display settings: At very high or very low zoom levels, gridlines may appear faint or uneven, especially on high-resolution displays.
  • View mode differences: Gridlines are visible in Normal view but may not appear in Page Layout or Page Break Preview, where Excel prioritizes print layout over on-screen guides.
  • Worksheet-specific setting: As we have seen, gridlines can be turned off in one sheet and be available in another, especially when working with multiple sheets.

How to Remove Gridlines in Excel

In Excel, “removing” gridlines simply means hiding them from view; it does not affect your data or cell structure.

To hide gridlines in the active worksheet:

  • Open the worksheet you want to adjust
  • Go to the View tab
  • In the Show group, uncheck Gridlines

How to remove gridlines in Excel

Gridlines will immediately disappear from the current worksheet, but remember that this change applies only to that sheet and does not affect other worksheets in the workbook.

Gridlines vs. Cell Borders in Excel

Although gridlines and borders can look similar, they serve different purposes and behave differently.

Key differences

The table below summarizes the difference between gridlines and cell borders in Excel.

Feature

Gridlines

Cell Borders

Purpose

General navigation and alignment

Emphasizing specific data and sections

Scope

Applies to the entire worksheet

Applied to only specific cells.

Printing

Hidden by default (must be enabled)

Always visible when printing

Customization

Global color change only

Highly customizable (thickness, style, color)

When to use borders instead of gridlines

Borders are a better choice when you need more control over layout and emphasis.

Use borders when

  • Creating custom layouts or structured tables
  • Highlighting specific sections or totals
  • Preparing spreadsheets for presentation or printing, where visual consistency matters

How to Print Gridlines in Excel

By default, Excel does not print gridlines, even if they’re visible on screen.

To print gridlines:

  • Go to the Page Layout tab
  • In the Sheet Options group, check Print under Gridlines

How to print gridlines in Excel

You can also enable gridlines to print in the Page Setup dialog, under the Sheets tab.

How to print gridlines in Excel in  Page setup.

If gridlines still don’t appear on printouts, it could be due to the following reasons:

  • Gridline printing is disabled for that worksheet
  • Cells use background fill, which hides gridlines
  • The worksheet relies on gridlines instead of borders for structure

Customizing Gridlines (Color and Visibility)

Excel allows you to change the color of your gridlines. This is particularly useful if you need to improve on-screen visibility.

Use the steps below to change the gridline color at the application level:

  • Open Excel Options
  • Go to Advanced
  • Scroll down to the Display options for this worksheet section.
  • Click the Gridline color bucket and pick your shade.

How to change gridline color in Excel

Always remember that just like visibility, color changes only apply to the current worksheet. If you want a "theme" across your workbook, you’ll need to repeat this for each sheet.

Also, remember that custom colors are great for high-contrast needs, but bright colors can quickly become unnecessary due to their visual strain.

Best Practices for Using Gridlines in Excel

To keep your workbook functional and professional, follow these guidelines:

  • Use gridlines during data entry and analysis to improve readability.
  • Hide gridlines when preparing sheets for presentation or sharing, if they add visual noise.
  • Use borders to define structure instead of relying on gridlines.
  • Always review print settings separately, since gridlines and print behavior are controlled independently.

Conclusion

Gridlines serve as a visual aid in Excel, different from formatting like borders, helping you navigate cells without altering your data's structure. Understanding how they behave, especially across worksheets, views, and print settings, helps avoid common points of confusion when a spreadsheet doesn’t look the way you expect.

To advance your Excel skills, I recommend taking our Data Analysis in Excel course. This course will help you master advanced analytics and propel your career. I also recommend taking our Intermediate Power Query in Excel course to learn about data transformation and using the M language for creating dynamic functions.


Allan Ouko's photo
Author
Allan Ouko
LinkedIn
I create articles that simplify data science and analytics, making them easy to understand and accessible.

FAQs

How can I customize the color of gridlines in Excel?

Go to File > Options > Advanced > Display options for this worksheet, then select a color from the dropdown. The changes apply only to the current sheet.

What are the differences between gridlines and cell borders in Excel?

Gridlines are automatic, display-only lines across the sheet that don't print by default; borders are manual formatting applied to specific cells, fully customizable and always printable.

How do I hide gridlines in Excel without affecting other worksheets?

Turn gridlines off from the View tab for the active worksheet only.

Can I print gridlines in Excel, and if so, how?

Yes; in Page Layout view or Print settings, check “Print” under Sheet Options > Gridlines, then preview to confirm.

What are the best practices for using gridlines in large datasets?

Keep them enabled during data entry to maintain row/column alignment. Once the data is finalized, consider hiding them and using "Freeze Panes" for better navigation.

Topics

Learn Excel with DataCamp

Course

Introduction to Excel

4 hr
201K
Master the Excel basics and learn to use this spreadsheet tool to conduct impactful analysis.
See DetailsRight Arrow
Start Course
See MoreRight Arrow
Related

Tutorial

How to Create a Line Graph in Excel: A Step-by-Step Guide

Learn to create clear and informative line graphs in Excel. This guide walks you through each step, from setting up your data to customizing the graph for better readability.
Derrick Mwiti's photo

Derrick Mwiti

Tutorial

How to Show Formulas in Excel (Instead of Results)

Learn how to show formulas for a full worksheet, check individual cells, prepare files for review or printing, and avoid common issues.
Laiba Siddiqui's photo

Laiba Siddiqui

Tutorial

How to Move Columns in Excel: Simple Techniques and Pro Tips

Learn different methods to rearrange your spreadsheet by moving single or multiple columns in Excel. Discover practical shortcuts, hidden tricks, and expert tools to speed up your workflow.
Laiba Siddiqui's photo

Laiba Siddiqui

Tutorial

Excel New Line in Cell: Easy Ways to Insert Line Breaks

Discover quick methods to start a new line in an Excel cell using keyboard shortcuts, formulas, and Find & Replace. Learn platform-specific tips for Windows, Mac, and web-based Excel versions.
Oluseye Jeremiah's photo

Oluseye Jeremiah

Tutorial

Excel Table: The Essential Tool for Organizing Data

Discover how Excel tables go beyond formatting with powerful features like structured references, automatic expansion, filtering, and integration with PivotTables and charts.
Javier Canales Luna's photo

Javier Canales Luna

Tutorial

Remove Blank Rows in Excel: 4 Easy Methods

Learn how to remove extra rows quickly using sorting, formulas, and VBA, depending on what works best for you.
Laiba Siddiqui's photo

Laiba Siddiqui

See MoreSee More