how to add minor gridlines in excel

How to Add Minor Gridlines in Excel

By Steven Wilson
AD

While Excel offers a plethora of features for organizing your data, sometimes you might want a more subtle touch, like adding minor gridlines. Visible gridlines can be helpful for alignment, but they can also be too overwhelming for your data. So let's explore how to add minor gridlines in Excel, giving you more control over how your data is presented.

Before we dive in, ensure you're using Excel 2016 or later, as the process differs slightly in older versions. Now, let's get started.

Enabling the Developer Tab

First, you'll need to enable the Developer tab, as this is where the tools for adding minor gridlines are hidden. Here's how:

AD
How to Add Minor Gridlines in Excel (3 Easy Ways) - ExcelDemy
How to Add Minor Gridlines in Excel (3 Easy Ways) - ExcelDemy
How to Show/Hide Grid Lines in Excel - Grids Not Showing Up in Excel Worksheet - NO ADS
How to Show/Hide Grid Lines in Excel - Grids Not Showing Up in Excel Worksheet - NO ADS
How to Add Primary Major Vertical Gridlines in Excel (2 Ways) - ExcelDemy
How to Add Primary Major Vertical Gridlines in Excel (2 Ways) - ExcelDemy

1. Right-click on the Ribbon and select 'Customize the Ribbon'.

2. Check the box next to 'Developer'.

How to Add Primary Minor Vertical Gridlines in Excel (2 Ways) - ExcelDemy
How to Add Primary Minor Vertical Gridlines in Excel (2 Ways) - ExcelDemy
Courses and Tutorials in Templates | Envato Tuts+
Courses and Tutorials in Templates | Envato Tuts+
Progress Tracker in Excel – Visualize Your Goals & Milestones
Progress Tracker in Excel – Visualize Your Goals & Milestones

Showing the Excel Window Frame and Gridlines

Now, let's dive into displaying minor gridlines.

1. Go to the 'Developer' tab.

AD

2. In the 'Controls' group, click on 'View Code' to open the Visual Basic for Applications (VBA) window.

Gridlines in Excel Chart - ExcelDemy
Gridlines in Excel Chart - ExcelDemy
How to Make Grid Lines Bold in Excel: Complete Guide - ExcelDemy
How to Make Grid Lines Bold in Excel: Complete Guide - ExcelDemy
How to Add Gridlines in Excel After Highlighting (3 Easy Methods) - ExcelDemy
How to Add Gridlines in Excel After Highlighting (3 Easy Methods) - ExcelDemy
How to Hide Gridlines in Excel Step by Step
How to Hide Gridlines in Excel Step by Step
how to hide or unhide row or column gridlines in excel? info sheet
how to hide or unhide row or column gridlines in excel? info sheet
How to Show the Gridlines in Excel - 3 Methods - ExcelDemy
How to Show the Gridlines in Excel - 3 Methods - ExcelDemy

3. In the VBA window, go to 'Insert' > 'Module' to insert a new module.

4. In the new module, type or paste the following code:

AD

Add Borders Instantly in Excel
Add Borders Instantly in Excel
How to Print Gridlines in Excel (2 Ways) - ExcelDemy
How to Print Gridlines in Excel (2 Ways) - ExcelDemy
Cell Border Shortcut in Excel
Cell Border Shortcut in Excel

Application.ActiveWindow.DisplayGridlines = True

Application.ActiveWindow.DisplaySheet WhitesSpace = -4131

AD

End Sub

5. Close the VBA window.

6. Now, to activate the macro, go back to the 'Developer' tab, click on 'Macros', select 'ShowMinorGridlines', and click 'Run'.

Adding Custom Sparklines

If you still find the minor gridlines too prominent, you might want to consider adding custom Sparklines. These are tiny graphs that can help visualize trends in your data without overwhelming the viewer.

1. Select the cells where you want to insert your Sparklines.

2. Go to the 'Insert' tab.

3. In the 'Sparklines' group, select the type of Sparkline you want to insert (Line, Column, or Win/Loss).

4. In the 'Data' section, specify the range of cells you want the Sparklines to refer to.

5. Click 'OK' to insert the Sparklines.

Changing Gridline Color and Style

After adding minor gridlines, you might want to adjust their appearance to better fit your data.

1. Right-click on the sheet tab at the bottom of the worksheet.

2. Select 'Page Setup'.

3. Go to the 'Sheet' tab.

4. Under 'Sheet Options', find 'Grid selection'. From here, you can click on the small color box to choose a gridline color, or use the drop-down menu to select a gridline style.

The final decision on whether to use minor gridlines or not should primarily depend on your data and its intended audience. Experiment with different settings to see what works best for your context.

AD