MS Excel - Gridlines in Excel
1. Understanding Gridlines in Excel
By default, Excel displays gridlines to separate cells. These are not actual borders; they’re just visual guides.
How to Show/Hide Gridlines
-
Go to View → Show → Gridlines (checkbox).
-
Or, in Page Layout → Sheet Options → Gridlines.
Shortcut:Alt + W + VG
→ Toggles gridlines on/off.
2. Changing Gridline Colors
Excel lets you customize gridline colors, but not thickness.
Steps:
-
Go to File → Options → Advanced.
-
Scroll to Display options for this worksheet.
-
Choose a new Gridline color.
-
Click OK.
Tip: This changes only the appearance, not the printed version.
3. Making Custom Borders (Thicker “Grids”)
If you want bold, colored, or styled grids, you need to use Borders.
Steps:
-
Select your range.
-
Go to Home → Font → Borders dropdown.
-
Choose:
-
All Borders → Full grid inside selection.
-
Outside Borders → Only outer box.
-
Thick Borders → Emphasized outlines.
-
More Borders → Open Format Cells → Border tab.
-
-
Pick:
-
Line style → solid, dashed, dotted.
-
Line color → any color.
-
Apply → Inside, Outside, or Both.
-
Shortcut:Ctrl + 1
→ Border tab → Customize style & color.
4. Using “Format as Table” for Auto-Grids
Tables in Excel automatically create a well-styled grid with alternating row colors.
Steps:
-
Select data range.
-
Go to Home → Format as Table.
-
Pick a style — Excel applies:
-
Borders around data.
-
Shaded headers.
-
Alternate row coloring.
-
Bonus: You get built-in filtering and sorting.
5. Printing Gridlines
By default, Excel gridlines don’t print. To make them appear on paper:
Steps:
-
Go to Page Layout tab.
-
In Sheet Options, under Gridlines, check:
-
View → For on-screen.
-
Print → For hard copies.
-
Alternatively, apply borders if you want stronger, customizable printed grids.
6. Custom Conditional Formatting for Grids
You can make dynamic grids that change based on values.
Example: Highlight cells with a bold border if value > 100
-
Select range → Home → Conditional Formatting → New Rule.
-
Choose Use a formula:
=A1>100
-
Go to Format → Border → Choose bold border + color.
7. Tips for Professional-Looking Grids
-
Use light gray gridlines (#D9D9D9) for clean dashboards.
-
Use thicker outside borders + thin inside borders for reports.
-
Combine Format as Table with custom border colors for stylish data sheets.