Excel Chart Only Show Dates With Data: Filter Empty Rows With Pivot Tables

An Excel chart only show dates with data—no more Swiss-cheese gaps—by hiding those empty spaces with a clever trick. ✨ Here’s how to clean it up. A few simple PivotTable tweaks that hide those blank spots without losing your actual data.

I’ve used this method to fix messy sales reports, production logs, and even my own vintage computer restoration timelines.

Start by selecting your chart, right-clicking the axis with dates, and choosing “Select Data.” In the “Axis Labels” range, add a helper column that flags only rows with actual values. For example, use =IF(B2<>"",A2,"") to create a filtered list.

Then, convert your data to a PivotTable—this lets you toggle the “Show Items With No Data” option off. It’s a two-minute fix that transforms clutter into clarity.

You’ll end up with a chart that only shows dates where you have real numbers, making trends and comparisons instantly clearer. No more guessing which gaps are missing data and which are just empty space.

The best part? This method works for line charts, column charts, and even scatter plots—just adjust the helper column formula to match your data structure.

For stubborn cases, check your source data for hidden blank cells or merged ranges that might be throwing off the filter. And if you’re using Excel 2013 or older, you’ll need to manually adjust axis breaks instead—though the PivotTable method still applies.

Once you master this, your charts will look as polished as the vintage computers I restore.

📚 In This Guide

  • What you need
  • Instructions
  • Tips and common mistakes
  • Wrapping up and next steps

What you need

🛠 Materials & Tools
  • ● Microsoft Excel (2010 or later recommended for best compatibility): Version: Excel 2013, 2016, 2019, 2021, or Microsoft 365
  • ● Platform: Windows or Mac (OS X 10.12 or later)
  • ● Data Source (Excel file or workbook): Format: XLSX (preferred) or XLS
  • ● Structure: Must include date columns and corresponding data
  • ● Basic Excel Skills (knowledge of): Creating Pivot Tables 📊
  • ● Filtering data in tables
  • ● Basic chart formatting
  • ● Excel Add-ins (for advanced filtering): Power Query (for large datasets)
  • ● Power Pivot (for complex data models)
  • ● Keyboard Shortcuts Cheat Sheet (to speed up workflow)
  • ● Second Monitor (for easier multitasking while working with data and charts)

Step-by-step instructions for filtering empty dates in Excel charts

Here’s how to make your Excel charts show only dates with actual data points.

1

💻 Step 1: Prepare Your Data Source

Open your Excel workbook and navigate to the sheet containing your data. I always start by ensuring my data is clean—no blank rows or columns that might confuse the chart. If you have empty cells between data points, Excel might include those dates in your chart.

Select your data range, including headers. Press Ctrl + T to convert it to a table if it isn’t already. This step is crucial because PivotTables and charts work best with structured data. Look for the table design tab appearing at the top—this confirms your data is properly formatted.

2

🔧 Step 2: Create a PivotTable to Filter Dates

Go to the Insert tab and click PivotTable. In the dialog box, select your table range and choose where to place the PivotTable (usually a new sheet). Click OK to create the blank PivotTable.

In the PivotTable Fields pane, drag your date column into the Rows area. Then drag your value column into the Values area. The PivotTable will now show all dates, including those without data. Here’s the key: right-click any value cell in the PivotTable and select Value Field Settings.

In the dialog box, choose Custom under Summarize value field by. Then select Count and click OK. This ensures we’re counting data points rather than summing values. Now only dates with at least one data point will appear.

3

🖥️ Step 3: Create a Chart from the Filtered PivotTable

With your filtered PivotTable ready, select all its cells (including headers). Go to the Insert tab and choose your preferred chart type—line, column, or area charts work best for time-series data. Excel will generate a chart showing only dates with data points.

Right-click the chart and select Select Data. In the dialog box, verify that your PivotTable range is selected as the data source. Click Edit next to the Legend Entries if needed, but typically the default selection works perfectly for filtered data.

4

💡 Step 4: Verify and Clean Up Your Chart

Double-check that all empty dates have disappeared from your chart. You’ll notice the x-axis now shows only dates with actual data points—no more gaps or empty markers. If you still see unwanted dates, return to your PivotTable and ensure no blank rows exist in your source data.

To make your chart look polished, right-click the chart area and select Chart Style. Choose a clean, professional style that matches your workbook’s design. You can also adjust the axis labels to show dates more clearly by right-clicking the x-axis and selecting Format Axis.

Tips & tricks for perfect Excel charts showing only dates with data

These simple but powerful techniques will help you create clean, professional charts that focus only on dates with actual data points.

Data Cleanliness is Key: Before creating your PivotTable, I can’t stress enough how important it is to ensure your data source is pristine. Remove any blank rows or columns that might confuse Excel’s filtering logic. If you have dates with no corresponding values, these will appear as empty cells in your chart. I’ve seen this cause hours of frustration when people don’t realize Excel includes these empty markers by default. Trust me on this—start with clean data!

PivotTable Customization: When you reach Step 2 and select “Count” in the Value Field Settings, this is where the magic happens. The default “Sum” option will include dates with zero values, which we don’t want. Choosing “Count” ensures only dates with at least one data point appear in your chart. Here’s what nobody tells you—if you’re working with dates that span multiple years, you might want to format these as custom date formats in your PivotTable to make them more readable in the final chart.

Chart Type Selection: Not all chart types handle filtered data equally well. For time-series data with dates, I recommend sticking with line, column, or area charts. These types naturally accommodate the filtered date structure created by your PivotTable. If you’re using a scatter plot or bubble chart, you might need to adjust your data series to ensure proper date alignment. The key is to match your chart type to how Excel presents the filtered dates in your PivotTable.

Visual Verification: In Step 4, when you’re verifying your chart, pay special attention to the x-axis. You should see continuous date markers without any gaps. If you notice dates appearing that shouldn’t be there, double-check your source data for hidden blank rows or cells containing spaces that Excel might interpret as data. This step often catches issues that aren’t immediately obvious during the chart creation process.

💡

Pro Tips for Excel Chart Only Show Dates With Data

  • These simple but powerful techniques will help you create clean, professional charts that focus only on dates with actual data points.
  • Data Cleanliness is Key: Before creating your PivotTable, I can’t stress enough how important it is to ensure your data source is pristine.
  • PivotTable Customization: When you reach Step 2 and select “Count” in the Value Field Settings, this is where the magic happens.

Frequently asked questions

about creating Excel charts that only show dates with data can save you time and frustration. Here are some common questions and quick answers to get you back on track!

1

Why does my chart still show blank dates after filtering?

If your chart continues to display empty dates, ensure you’ve applied the filter to the source data (not just the chart itself). Blank rows may persist if the chart is linked to a range that includes hidden or filtered-out data. Double-check your PivotTable’s Filter Field settings to confirm dates without data are excluded.

2

Can I automatically update the chart when new data is added?

Yes! Excel charts update dynamically when linked to a data range or PivotTable. If your chart isn’t refreshing, press F9 to force an update or right-click the chart → Refresh Data. For PivotTables, ensure the data source (e.g., a table or range) is properly defined and not static.

3

What’s the difference between filtering in a PivotTable vs. a regular chart?

A PivotTable offers built-in filtering—you can drag fields into the Filters area to exclude blank dates. Regular charts require manual adjustments: hide blank rows in the source data or use a scatter plot with error bars to visualize only populated dates. PivotTables are more efficient for large datasets.

4

How do I remove dates from the chart’s axis instead of hiding rows?

To clean up the axis, right-click the chart → Select Data → edit the Horizontal (Category) Axis Labels. Manually type the dates you want to show or use a helper column with IF(COUNTIF(…), date, “”) to filter labels. For PivotCharts, adjust the Axis Labels in the PivotTable’s design tab.

5

My chart looks messy—how do I make it cleaner?

For a polished look, use trendlines or data labels sparingly. Right-click the chart → Chart Elements to toggle visibility. Group dates with custom formatting (e.g., “Q1 2024”) or use secondary axes for clarity. For PivotCharts, collapse empty categories in the PivotTable’s Field Settings.

Wrapping up and next steps

Mastering how to Excel chart only show dates with data can transform your spreadsheets from cluttered to crystal clear! 📊 By using pivot tables and filters, you’ve unlocked a powerful way to focus on meaningful trends without distractions.

Now that you’re equipped with these techniques, your next step? Experiment with real-world data—try applying these methods to your own projects to boost efficiency and clarity.

Remember: every expert started with a blank cell. Keep practicing, and soon, you’ll be the go-to person for clean, data-driven visuals! 🚀

★★★★★4.5(8 reviews)
Michael Davis