How to show and hide gridlines in Excel

In the previous blog post we successfully solved the problem of Excel not printing gridlines. Today I'd like to dwell on another issue related to Excel grid lines. In this article you'll learn how to show gridlines in an entire worksheet or in certain cells only, and how to hide lines by changing cells background or borders' color.

When you open an Excel document, you can see the horizontal and vertical faint lines that divide the worksheet into cells. These lines are called gridlines. It is very convenient to show gridlines in Excel spreadsheets as the key idea of the application is to organize the data in rows and columns. And you don't need to draw cell borders to make your data-table more readable.

All Excel spreadsheets have gridlines by default, but sometimes you can receive a sheet without cell lines from another person. In this case you may want them to become visible again. Removing lines is also a very common task. If you think that your spreadsheet will look more accurate and presentable without them, you can make Excel hide gridlines. Sample worksheet with and without gridlines

Whether you decide to show gridlines in your worksheet or hide them, go ahead and find below different ways to fulfil these tasks in Excel 2016, 2013 and 2010.

Show gridlines in Excel

Suppose you want to see gridlines in the entire worksheet or workbook, but they are just turned off. In this case you need to check one of the following options in the Excel 2016 - 2010 Ribbon.

Start with opening the worksheet where cell lines are invisible.

Note: If you'd like to make Excel show gridlines in two or more sheets, hold down the Ctrl key and click the necessary sheet tabs at the bottom of the Excel window. Now any changes will be applied to every selected worksheet.

When you are done with the selection, just navigate to the VIEW tab on the Ribbon and check the Gridlines box in the Show group. Select the Gridlines checkbox on the VIEW tab to show gridlines in Excel

Alternatively, you can go to the Sheet Options group on the PAGE LAYOUT tab and select the View checkbox under Gridlines. Check the View box under Gridlines on the PAGE LAYOUT tab to display gridlines in Excel

Whichever option you choose gridlines will instantly appear in all the selected worksheets.

Note: If you want to hide gridlines in the entire spreadsheet, just uncheck the Gridlines or View options.

Show / hide gridlines in Excel by changing the fill color

One more way to display / remove gridlines in your spreadsheet is to use the Fill Color feature. Excel will hide gridlines if the background is white. If the cells have no fill, gridlines will be visible. You can apply this method for an entire worksheet as well as for a specific range. Let's see how it works.

  1. Select the necessary range or the entire spreadsheet.

    Tip: The easiest way to highlight the whole worksheet is to click on the Select All button in the top-left corner of the sheet.

    Click the Select All button in the top-left corner to highlight the entire spreadsheet

    You can also use the Ctrl + A keyboard shortcut to select all the cells in the spreadsheet. You'll need to press the key combination twice or three times if your data is organized as Table.

  2. Go to the Font group on the HOME tab and open the Fill Color drop-down list.
  3. Choose the white color from the list to remove gridlines.

    Note: If you want to show lines in Excel, pick the No Fill option.

    Choose the white color from the Fill Color drop-down list to hide gridlines

As you can see in the screenshot above, applying the white background will give an effect of hidden gridlines in your worksheet.

Make Excel hide gridlines only in specific cells

In case you want Excel to hide gridlines only in a certain block of cells, you can use the white cells background or apply white borders. Since you already know how to change the background color, let me show you how to remove gridlines by coloring the borders.

  1. Select the range where you want to remove lines. Select the block of cells where you want to remove gridlines
  2. Right-click on the selection and choose Format Cells from the context menu. Choose the Format Cells option from the right-click menu to open the Format Cells dialog

    Note: You can also use the Ctrl + 1 keyboard shortcut to display the Format Cells dialog.

  3. Make sure that you are on the Border tab in the Format Cells window.
  4. Choose the white color and press the Outline and Inside buttons under Presets. Choose the white color and press Outline and Inside to hide gridlines in the block of cells
  5. Click OK to see the changes.

    Here you go. Now you have an eye-catching "white crow" in your worksheet. Click OK to close the Format Cells dialog and see the changes in the worksheet

Note: To bring gridlines back to the block of cells, choose Noneunder Presets in the Format Cells dialog window.

Remove gridlines by changing their color

There is one more way to make Excel hide gridlines. If you change the default gridline color into white, gridlines will disappear in the whole worksheet. If you're interested in this method, feel free to find out how to change the default gridline color in Excel.

You see there are different ways to show and hide gridlines in Excel. Just choose the one that will work best for you. If you know any other methods of showing and removing cell lines, you are welcome to share them with me and other users! :)

56 comments

  1. If some of those solutions dont work check your monitor contrast. If its too high, the gridlines will disappear

  2. That was such an sharp and clear tutorial: thank you so much for doing it :)

  3. Thank you for such a clear useful tutorial!

  4. thanks for the given support to resolve the my task. very useful those guideline for everyone's.

  5. thank u

  6. I had gridlines disappear from cells after I removed those cell's borders. It turned out that my Conditional Formatting for those cells was the problem - I had told the cells to turn white instead of having them change to no colour.

  7. How to show gridlines when cells are filled woth colour? They always disappear when i fill with colour

  8. I want to retain certain data based on their column number and delete the rest

  9. I want to sellect certain number from the column and delete the rest.
    Note
    The data are large

  10. I only want to copy the number inside a certain cell to the other cell having different border format. The problem is, the border were also copied. How am I suppose to do?

    1. Hello Manny!
      If you use the key shortcuts CRTL+C / CRTL+V or the Copy / Paste options from the context menu, you copy not only formulas or values, but the format of the cells as well. If you want to copy just values, please use the Paste Special option from the context menu or the CRTL+ALT+V key shortcut. In the dialog window opened please choose what exactly you want to insert into a cell.

  11. Thank you! Very helpful!

  12. thank you

  13. I have Excel 2000 and came across this page! I found a solution to remove grid lines by selecting "View" then "Toolbars" and selecting "Forms" from the drop down menu. Make sure "Forms" is checked on. You can then select on this toolbar "Toggle Grid" and that did it for me!

  14. I had to leave this page. The info may or may not be helpful, but the giant, moving, animated bullshit running across the bottom was way too distracting. I will not be back to this page.

  15. Thank you, very helpful!

  16. Thanks for the tip. it was helpful.

  17. I want to make the text of a cell disappear if the adjacent cell is blank. Or the reverse: when text is entered into a cell, a specified number appears in the adjacent cell.

    Thanks

  18. Excellent, thank you!

  19. None of these suggestions worked for me, I ended up figuring it out myself ... after wayyyy too long:
    Go to the Home tab
    Go to the Font section
    Select the little square table icon
    Select All Borders
    Gridlines have returned!
    I have maybe three strands of hair left after pulling out the rest.
    Hope this helps someone.

    1. Almost... the lines are back, but they aren't the same color as the default; now they're darker. There should be a button that says, "don't EVER mess with the grids." I can't be the only one.

    2. Thank you!!!!! Seriously. SOOOOO MUCH!!! :)

    3. Thanks Fluke! Came here years after, and nothing worked, but that worked. It's not perfect, but I'll take it.

  20. thanks a lot . very useful information

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)