Smart Systems for Home

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

Gridlines in Excel: How to Show, Hide, and Print Them

· 6 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 show or hide gridlines in Excel, go to the View tab on the ribbon and check or uncheck the Gridlines box in the Show group. This action toggles the visibility of the light gray lines that separate cells on your worksheet, allowing you to switch between a structured data-entry view and a clean, blank canvas for professional presentations. Note that menu labels may differ slightly depending on your version of Excel, device, or region.

Gridlines are a fundamental part of the Excel interface, serving as a visual guide to help users align data, identify cell boundaries, and navigate large datasets without getting lost. By default, every new workbook opens with gridlines enabled. However, these lines are purely visual aids for the editor; they are not "borders" and, by default, they do not appear when you print your document. Understanding how to manipulate these lines is essential for creating clean dashboards, professional reports, and readable financial statements.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS).
  • An open Excel workbook or a specific worksheet where you wish to modify the visual layout.
  • Basic familiarity with the Excel Ribbon interface.

Step-by-Step

  1. Open your Excel Workbook: Launch Microsoft Excel and open the file you are currently working on. Navigate to the specific sheet tab at the bottom of the window where you want to change the gridline settings.
  2. Locate the View Tab: Look at the top of your screen at the Ribbon menu. Click on the View tab. This tab contains tools for managing how your worksheet is displayed, including zoom levels, freeze panes, and window arrangements.
  3. Find the Show Group: Once the View tab is active, look for the section labeled Show. This group contains several checkboxes that control the visibility of various interface elements.
  4. Toggle Gridlines: Locate the checkbox labeled Gridlines.
    • To hide gridlines: Uncheck the box. The gray lines will disappear, leaving you with a solid white background (unless you have applied a different fill color to your cells).
    • To show gridlines: Check the box. The default light gray lines will reappear across the entire active worksheet.
  5. Verify the Change: Scroll through your sheet to ensure the gridlines have been applied or removed globally across the entire worksheet. Remember that this setting is sheet-specific; if you have multiple tabs, you must repeat this process for each one.
  6. Adjusting for Printing: If your goal is to make these lines appear on a printed piece of paper, the View tab toggle is not enough. You must navigate to the Page Layout tab. In the Sheet Options group, look for the Gridlines section and check the box labeled Print. This tells Excel to treat the visual gridlines as printable lines.

Common Mistakes

One of the most frequent mistakes users make is confusing gridlines with borders. Gridlines are the default, non-printing guides provided by Excel. Borders are manual formatting choices applied to specific cells using the Font group on the Home tab. If you hide gridlines but still see lines around certain cells, those are borders. Conversely, if you enable gridlines but they don't show up in specific areas, it is likely because those cells have a white fill color applied to them, which masks the gridlines.

Another common error is attempting to hide gridlines for only a small section of a sheet. The View tab toggle is an "all or nothing" setting; it affects the entire worksheet. Users often try to uncheck the Gridlines box and then wonder why the whole page went blank. To achieve a "blank" look in only one area while keeping gridlines elsewhere, you must apply a white fill color to the specific range of cells you want to appear blank.

Finally, many users are frustrated when they see gridlines on their screen but find a blank white page after printing. This happens because the View > Gridlines setting only controls the on-screen display. Forgetting to enable the Print Gridlines option in the Page Layout tab is the primary reason for this discrepancy.

Tips

For a more professional look in financial reports or executive summaries, try hiding the gridlines entirely and using subtle, light-gray borders only for the bottom of header rows and the bottom of the total row. This creates a modern, "clean" aesthetic that is easier on the eyes than a dense grid of lines.

If you are creating a dashboard with charts and shapes, hiding the gridlines is almost always recommended. It prevents the background grid from clashing with your visual elements and makes your charts stand out more prominently against a clean white background.

When working with very large datasets, keeping gridlines on is vital for data integrity. It prevents "row skipping," where your eye accidentally jumps from one row to another while reading across a wide set of columns. If you find the default gridlines too faint, you can change the gridline color by going to File > Options > Advanced, scrolling down to the Display options for this worksheet section, and selecting a different color from the Gridline color dropdown menu.

Troubleshooting

The gridlines are still visible even though I unchecked the box: This usually happens because the lines you see are actually cell borders. To fix this, select the entire worksheet (Ctrl+A), go to the Home tab, click the Borders dropdown menu in the Font group, and select No Border.

The gridlines disappeared and I can't get them back: First, check the View tab to ensure the Gridlines box is checked. If it is checked but you still see a white screen, check if the cells have a fill color. Select the affected area, go to the Home tab, click the Fill Color (paint bucket) icon, and select No Fill. A white fill color overrides the visibility of gridlines.

Gridlines aren't printing despite the settings: Ensure that you have checked the Print box under Page Layout > Sheet Options. If they still don't appear, check your printer settings to ensure you aren't printing in a "Draft" or "Ink Saver" mode that might omit light-colored lines. Also, verify that the gridline color (set in File > Options) is not set to white or a color too light for your printer to render.

The gridlines look distorted or uneven: This is often caused by an incorrect zoom level or a display scaling issue in Windows. Try resetting your zoom to 100% using the slider in the bottom right corner of the Excel window. If the problem persists, check your system's display settings to ensure the scaling is set to the recommended percentage for your monitor.

Frequently Asked Questions

Can I hide gridlines on only one specific tab?

Yes. Gridline visibility is a worksheet-level setting. You can have gridlines enabled on Sheet1 and disabled on Sheet2 within the same workbook.

Is there a keyboard shortcut to toggle gridlines?

There is no single-key shortcut, but you can use the Alt key sequence: press Alt, then V, then G (in most Windows versions) to toggle the gridlines quickly.

Why do some cells have gridlines and others don't?

This occurs when some cells have a background fill color (like white) and others have "No Fill." Gridlines only show through cells that have no fill color applied.

How do I change the color of the gridlines?

Go to File > Options > Advanced. Scroll down to the Display options for this worksheet section and use the Gridline color dropdown to choose a new color.

Will hiding gridlines affect my formulas or data?

No. Gridlines are purely a visual display setting. Hiding or showing them has no impact on your data, calculations, or the functionality of your formulas.

Do gridlines count as borders when exporting to PDF?

Only if you have enabled the Print option under the Page Layout tab. If you simply hide them in the View tab, they will not appear in a PDF export.