How to Set Monthly Intervals on an Excel Stacked Bar Chart Axis
Question details
The user needs to set the horizontal axis of a stacked bar chart to display major gridlines at exact one-month intervals.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating a stacked bar chart that visualizes time-based data with gridlines indicating the first day of each month.
- Observed behavior
- The horizontal axis functions as a strict numeric value axis rather than a date axis, preventing the user from setting irregular monthly intervals (28, 30, or 31 days).
Understand that horizontal bar charts treat the horizontal axis as raw numbers rather than dates. Because months vary in length, an exact 'one-month' interval is technically impossible on a standard numeric value axis.
Approximate Monthly Spacing Using a Custom Major Unit
Set the axis major unit to an average month length to get as close to a monthly interval as possible.
Since the horizontal axis in a bar chart cannot inherently recognize irregular calendar months, you can bypass this limitation by using a mathematical average. By dividing the days in a year (365) by the number of months (12), you get an average month length of roughly 30.416666 days.
Right-click the horizontal axis (the value axis at the bottom) of your stacked bar chart.
Select 'Format Axis' from the context menu to open the formatting pane on the right side of your screen.
Under 'Axis Options', locate the 'Units' section. Click into the 'Major' box and type 30.416666.
Press Enter to apply. Your gridlines will now approximate a monthly spacing, though they may occasionally shift slightly off the exact first day of the month.

Use a Column Chart for a True Date Axis
Switch to a chart type that natively supports Date axes (like a Stacked Column chart) to ensure perfect alignment with the first of every month.
Visualize Time-Based Data with WPS Spreadsheet
WPS Office offers robust spreadsheet features fully compatible with Microsoft Excel, making it easy to create, format, and adjust complex charts like stacked columns and bars to perfectly visualize your timelines.
- 1. Open Your Data: Launch WPS Spreadsheet and open your document containing the dates and values.
- 2. Insert the Chart: Highlight your data range, go to the 'Insert' tab, and choose your preferred Chart type (e.g., Stacked Column for true dates).
- 3. Customize the Axis: Double-click the axis to open the properties pane, where you can instantly adjust bounds, set date units, and format gridlines.

Frequently Asked Questions
Why can a Stacked Column chart show exact months but a Stacked Bar chart cannot?
In a Column chart, the horizontal axis is treated as a category or date axis, which natively understands the calendar and irregular month lengths. In a Bar chart, the horizontal axis is strictly a numeric value axis, which only spaces gridlines at fixed mathematical intervals.
Is there any way to force a date axis on a horizontal bar chart?
No. Standard spreadsheet software, including Excel, does not support a true date axis on the value (horizontal) axis of a bar chart. You must either approximate the unit manually or switch to a column or scatter chart.
What is the exact number to use for average monthly intervals?
You should type 30.416666 (which is 365 divided by 12) into the Major Unit box in the Format Axis pane to get the closest mathematical approximation of a monthly interval.




