To create a bar chart in Excel with dates, you must first organize your data into two adjacent columns—one for dates and one for values—then select the range and go to the Insert tab to choose a Clustered Column or Bar chart. Excel typically recognizes date formats automatically and treats them as a time-scale axis, which ensures that the spacing between the bars reflects the actual passage of time rather than just treating the dates as simple text labels.
What You'll Need
- Microsoft Excel installed on your PC or Mac.
- A dataset containing a column of dates (formatted as dates, not text).
- A corresponding column of numerical values (e.g., sales figures, temperature, or website traffic).
- Clean data with no empty rows or columns between the date and value sets.
Step-by-Step
- Prepare Your Data
Start by entering your dates in one column (e.g., Column A) and your values in the next column (e.g., Column B). Ensure that the dates are entered in a format Excel recognizes, such as YYYY-MM-DD or MM/DD/YYYY. If the dates are aligned to the right of the cell, Excel recognizes them as dates; if they are aligned to the left, they are being treated as text, which will cause the chart to display them incorrectly. - Select the Data Range
Click and drag your mouse to highlight all the cells containing the dates and the values. Include the header row (e.g., "Date" and "Total Sales") in your selection. Including headers allows Excel to automatically label the legend and the axes, saving you time during the formatting phase. - Insert the Chart
Navigate to the Insert tab on the top ribbon. In the Charts group, click on the Insert Column or Bar Chart icon (which looks like three vertical bars). From the dropdown menu, select Clustered Column under the 2-D Column section. A column chart is generally preferred for dates because the X-axis runs horizontally, mimicking a timeline. - Verify the Axis Type
Excel usually detects the date column and sets the horizontal axis to a "Date axis" automatically. To verify this, right-click on the dates along the bottom of the chart and select Format Axis. In the Format Axis pane that appears on the right, look under Axis Options. Ensure that Date axis is selected. If "Text axis" is selected, Excel will treat each date as a unique category, meaning if you have a gap of five days between two entries, the bars will still appear right next to each other instead of showing a visual gap. - Adjust the Date Interval
Still within the Format Axis pane, you can control how the dates appear. Under Units, you can change the Major unit to Days, Months, or Years. For example, if you have three years of data, changing the Major unit to "Months" will prevent the X-axis from becoming cluttered with too many labels. - Customize the Chart Design
Click on the chart to reveal the Chart Design and Format tabs in the ribbon. Use Chart Styles to change the color scheme or background. To add a descriptive title, click on the default "Chart Title" text box and type a name that explains what the data represents. - Add Axis Labels and Data Labels
Click the green "+" (Chart Elements) button at the top right of the chart. Check the box for Axis Titles to add labels for the X (Date) and Y (Value) axes. If you have a small number of bars and want to show the exact value on top of each, check the Data Labels box.
Common Mistakes
One of the most frequent errors is entering dates as text. If you type "Jan 2023" in a way that Excel doesn't recognize as a date, the software treats it as a string of characters. This results in a "Text Axis," where the chronological order is ignored if the data isn't sorted perfectly, and time-based scaling is impossible. Always check that your date cells are formatted as "Date" in the Home tab's Number group.
Another common mistake is leaving blank rows within the data range. If there is a completely empty row between two sets of dates, Excel may create a gap in the chart or fail to recognize the entire range as a single series. To fix this, either delete the empty rows or use the "Select Data" menu to manually define the range.
Users also often confuse "Column Charts" with "Bar Charts." In Excel terminology, a Column Chart has vertical bars (best for dates), while a Bar Chart has horizontal bars. While you can use a horizontal Bar Chart for dates, it is often counter-intuitive because the timeline then runs vertically from top to bottom, which is harder for most people to read.
Tips
To make your chart more professional, try removing the gridlines. Click on a gridline and press the Delete key. This creates a cleaner look, especially if you have already added data labels to the top of the bars.
If you have a massive amount of data (e.g., daily data for five years), a bar chart will become illegible. In these cases, consider using a Line Chart or a Pivot Chart. A Pivot Chart allows you to group dates by month or quarter dynamically, which simplifies the visual representation without deleting your raw daily data.
Use the Filter button (the funnel icon next to the chart) to quickly hide specific date ranges. This is useful if you want to zoom in on a specific quarter or month without changing your source data table.
Troubleshooting
The dates are not in the correct order:
If your bars are jumping around chronologically, it is likely because the source data is not sorted. Go back to your data table, select the date column, go to the Data tab, and select Sort A to Z (Oldest to Newest). The chart will update automatically to reflect the sorted order.
The X-axis labels are slanted or missing:
This happens when there are too many dates for the width of the chart. To fix this, either widen the chart by dragging the corners or right-click the axis, select Format Axis, and change the Interval between marks or the Major Unit to a larger increment (e.g., from Days to Months).
The chart is blank or shows no bars:
Check your value column. If the numbers are formatted as text (indicated by a small green triangle in the corner of the cell), Excel cannot plot them. Select the cells, click the warning icon that appears, and select Convert to Number.
Dates appear as numbers (e.g., 45123):
Excel stores dates as serial numbers. If you see these numbers on your axis, right-click the axis, select Format Axis, and under the Number category, change the format from "General" to "Date." This will force Excel to display the human-readable date instead of the underlying serial value.
Frequently Asked Questions
Can I create a bar chart with non-consecutive dates?
Yes. If you only enter dates for the 1st, 15th, and 30th of the month, Excel's "Date Axis" will still maintain the proportional spacing between those dates, leaving gaps where the missing dates would be. If you prefer the bars to be side-by-side regardless of the date gap, change the axis type to "Text axis" in the Format Axis pane.
How do I group dates by month in a bar chart?
The easiest way is to use a Pivot Table. Select your data, go to Insert > PivotChart, drag the Date field to the Axis area and the Value field to the Values area. Right-click any date in the Pivot Table and select Group, then choose "Months" or "Years."
Why does my chart show "1900" on the axis?
This usually happens if you have a cell in your date column that is empty or contains a zero. Excel interprets 0 as January 0, 1900. Check your source data for empty cells or zeros in the date column and remove them or fill them with the correct date.
Can I have two different value bars for the same date?
Yes. Simply add a third column to your data table with a second set of values. When you select the range (Date, Value 1, Value 2), Excel will create a "Clustered Column Chart" with two bars side-by-side for every date on the axis.
How do I change the color of a single bar to highlight a specific date?
Click once on any bar to select the whole series. Then, click a second time on the specific bar you want to highlight. This selects only that individual data point. You can now use the Fill tool in the Format tab to change its color.