When working with a dataset that contains a date column that you want to include in a chart axis, you may encounter a problem: the date does not appear on the chart axis. It is because we don’t select the Date axis in the Format Axis option. You may find it difficult to show the dates on the axis. But don’t be concerned. In this article, we’re gonna describe to you to show only dates with data in an Excel chart. Let’s get started.
How to Show Only Dates with Data in an Excel Chart: 3 Easy Steps
Here, we have taken a dataset of “Date-wise Sales” of “Sales Rep”. We want to create a chart where the dates are showing. But it’s not displaying in our chart. We are going to solve this issue.
Not to mention, we have used the Microsoft 365 version. You can use any other version at your convenience.
Step 1: Insert an Excel Chart
- First of all, we need to create a chart with our dataset.
- For doing this, select the entire column range with whom you want to make the chart.
- Consequently, go to the Insert tab >> Insert Column or Bar chart dropdown >> pick Clustered Column.
Subsequently, a bar chart is formed with the data like the image below. But the dates aren’t showing on the horizontal axis.
Read More: How to Create Graph from List of Dates in Excel
Step 2: Use the Format Axis Option
- To show the date click on the chart and select the Format Plot Area option.
- Eventually, the Format Axis window appears on the right side of the Excel worksheet. Move to Axis Options there.
Read More: How to Change X-Axis Values in Excel
Step 3: Select the Date Axis
- At this moment, you have to select the Date axis in the Axis Options.
Finally, you have shown the dates on the horizontal axis with data in your Excel chart, like the image below.
How to Show Only Dates with Available Data in Excel Chart
Now, put your attention on our next dataset. Here, we have taken the same dataset, but some of our Sales data is missing.
When we plot a chart using the same procedure as in Step 1, we find dates on the X-axis while the ordinate values are blank.
We have tried to solve this problem. To do this, click on the chart area and pick up the Select Data option.
Eventually, the Select Data Source dialog box appears. From there, uncheck the dates that aren’t carrying a value from the Horizontal (Category) Axis Labels. Then press OK.
Finally, you can see the blank cells have been removed in our Excel Chart (see the image).
Read More: How to Combine Daily and Monthly Data in Excel Chart
How to Apply Dynamic Date Range in Excel Chart
A dynamic date range means you need to select a start date and an ending date, and then it will take random dates dynamically. You can use either of the two easy ways to create an Excel Chart with a dynamic date range.
Assume that you have the following dataset, and you want to create a dynamic date range that will be applicable to the Excel chart.
To do this, follow the below steps (This is the summary of interactive dynamic date range chart technique method).
- Initially, you need to make the dataset dynamic. And you can do it in two ways.
- According to the first way, you may create an Excel table and rename the table (e.g. DATElist). Alternatively, you may utilize the OFFSET function with the Named Manager.
- Later, you have to add two options to get the options for picking the start and end date ranges with the help of the Data Validation tool.
- Subsequently, you have to link the drop-down lists with the dynamic dataset using the SUMIFS function.
Now, your Excel chart is applicable to the dynamic date range. If you assign a Start date and End date, you’ll get the desired chart.
Read More: How to Plot Time over Multiple Days in Excel
Practice Section
We have provided a practice section on each sheet on the right side for your practice. Please do it by yourself.
Download Practice Workbook
Download the following practice workbook. It will help you to realize the topic more clearly.
Conclusion
That’s all about today’s session. And these are some easy steps to show only dates with data in an Excel chart. Please let us know in the comments section if you have any questions or suggestions. For a better understanding please download the practice sheet. Thanks for your patience in reading this article.
Related Articles
- Excel Chart by Month and Year
- How to Change Date Range in Excel Chart
- How to Ignore Blank Cells with Formulas in Excel Chart
<< Go Back to Data for Excel Charts | Excel Charts | Learn Excel
Get FREE Advanced Excel Exercises with Solutions!