Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Create Chart from Filtered Data Guide

· 4 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To create a chart from filtered data in Excel, you simply apply a Filter to your data range and then insert a chart; by default, Excel charts only display visible cells, meaning hidden or filtered-out rows will not appear in the visualization. This allows you to toggle different views of your data without needing to create multiple separate charts.

What You'll Need

  • Microsoft Excel (Desktop version recommended for full functionality).
  • A dataset with clear column headers.
  • Data organized in a table or a contiguous range (no completely empty rows or columns within the data block).

Step-by-Step

  1. Prepare Your Data: Ensure your data has headers in the top row. Click anywhere inside your data range.
  2. Enable Filtering: Go to the Data tab on the ribbon and click the Filter button. You will see drop-down arrows appear in each header cell. (Note: Menu labels may vary slightly depending on your version of Excel or region).
  3. Apply Your Filter: Click the drop-down arrow in the column you wish to filter. Uncheck the items you want to hide and click OK. Your worksheet will now only show the rows that meet your criteria.
  4. Select the Data: Highlight the filtered cells you want to include in the chart. Include the headers in your selection so Excel can automatically label the axes and legend.
  5. Insert the Chart: Go to the Insert tab. Choose your desired chart type (e.g., Clustered Column, Line, or Pie chart) from the Charts group.
  6. Verify the Result: The chart will appear on your sheet. Because the other rows are filtered (hidden), the chart will only plot the data currently visible on the screen.
  7. Update the View: To change the chart, go back to the filter drop-down menu and select different criteria. The chart will update instantly to reflect the new visible data.

Common Mistakes

  • Selecting Entire Columns: If you click the column letters (A, B, C) to select data, Excel may include thousands of empty rows, which can distort the scale of your chart or cause it to look blank. Always select the specific data range or use a Table.
  • Using "Hide" Instead of "Filter": While manually hiding rows (Right-click > Hide) often works, some advanced chart settings may still pull data from hidden cells. Using the official Filter tool is the most reliable way to ensure data is excluded from the chart.
  • Missing Headers: If you do not include the header row in your selection, Excel will give your data generic names like "Series 1," making the chart difficult to read.

Tips

  • Convert to a Table: Before filtering, press Ctrl + T to turn your data range into an official Excel Table. Tables automatically expand their range when you add new rows, meaning your chart will include new data without you having to manually re-select the range.
  • Use Slicers: If you have converted your data to a Table, go to the Table Design tab and click Insert Slicer. Slicers are visual buttons that allow you to filter data more intuitively than the drop-down menus, making your chart feel like an interactive dashboard.
  • Chart Placement: Move your chart to a separate worksheet (Right-click chart > Move Chart) if your filtered data range is very large, as this prevents the chart from overlapping your data when you change filters.

Troubleshooting

If your chart is still showing data that you have filtered out, follow these steps in order:

  1. Check Hidden Cell Settings: Right-click the chart and choose Select Data. Click the Hidden and Empty Cells button at the bottom left. Ensure that the box "Show data in hidden rows and columns" is unchecked. If this is checked, the chart will ignore your filters.
  2. Refresh the Data: If you are using a PivotChart, the data does not update automatically. Go to the PivotChart Analyze tab and click Refresh.
  3. Clear All Filters: Go to the Data tab and click Clear (next to the Filter button) to reset the view, then re-apply your filters to see if the chart resets.
  4. Check for Merged Cells: Merged cells in headers or data rows can interfere with how Excel recognizes the data range. Unmerge any cells in your dataset and try the process again.

Frequently Asked Questions

Will the chart update if I add new data?

If you used a standard range, you must manually update the chart data source. If you converted your data into a Table (Ctrl + T) before creating the chart, the chart will update automatically when new rows are added.

Can I filter by multiple columns at once?

Yes. You can apply filters to as many columns as needed. The chart will only display data that meets all the active filter criteria (an "AND" logic).

Why is my chart blank after filtering?

This usually happens if the filter criteria are too strict and no rows match your selection, or if you selected a range of cells that are all currently hidden by the filter.

Does this work on Excel for Web?

Yes, the basic functionality of filtering data and inserting a chart works in the browser version of Excel, though some advanced formatting options found in the desktop app may be limited.

Can I create a chart that shows the filtered data AND the total?

Standard charts only show visible data. To show a "Grand Total" that doesn't disappear when you filter, you should use the SUBTOTAL function in a cell above or below your data and reference that specific cell in your chart.