Smart Systems for Home

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

Excel Make Chart From Filtered Data: A Simple Guide

· 5 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 make a chart from filtered data in Excel, simply apply a filter to your data range and then insert your desired chart; by default, Excel charts only plot visible cells and will automatically update as you change your filters. This allows you to create a single dynamic visualization that changes based on the criteria you select, rather than creating multiple separate charts for different data subsets.

What You'll Need

  • Microsoft Excel (Desktop version for Windows or Mac).
  • A dataset organized in a table or a range with clear column headers.
  • Data that is "clean," meaning there are no completely empty rows or columns within the data block you intend to chart.

Step-by-Step

  1. Prepare Your Data: Ensure your data is organized in rows and columns with unique headers at the top of each column. If your data isn't already a Table, select your data range and press Ctrl + T (Windows) or Cmd + T (Mac) to convert it into an official Excel Table. While not strictly required, using a Table makes the chart more dynamic when you add new rows.
  2. Apply the Filter: Select any cell within your data range. Go to the Data tab on the top ribbon and click the Filter button. You will now see drop-down arrows appearing in the header of every column.
  3. Filter Your Information: Click the drop-down arrow in the column you wish to filter. Uncheck "Select All" and then check only the specific categories or values you want to appear in your chart. Click OK. Your spreadsheet will now hide the rows that do not meet your criteria.
  4. Select the Visible Data: Highlight the cells you want to include in the chart. Be sure to include the column headers in your selection so that Excel can automatically label your chart axes and legend.
  5. Insert the Chart: Go to the Insert tab on the ribbon. Choose your preferred chart type from the Charts group (e.g., Clustered Column, Line, or Pie chart).
  6. Verify the Result: Excel will generate the chart using only the rows currently visible on your screen. To test this, go back to your filter drop-down, change the selection to a different category, and click OK. The chart will automatically shift to reflect the new filtered data.

Common Mistakes

  • Selecting Hidden Rows: If you manually select a range (by clicking and dragging) that includes hidden rows, some older versions of Excel or specific chart types might still try to plot that data. Always use the Filter tool rather than manually hiding rows.
  • Including Empty Rows: Leaving a completely blank row in the middle of your dataset can "break" the filter and the chart range, causing Excel to only recognize the data above the gap.
  • Over-filtering: Filtering your data so heavily that only one data point remains can sometimes cause the chart to look distorted or fail to render a trend line.
  • Forgetting Headers: If you select only the numbers and not the text headers, your chart will be labeled "Series 1" and "Category 1," forcing you to manually edit the data source to fix the labels.

Tips

  • Use Slicers for a Dashboard Feel: If you have converted your data into a Table (Ctrl + T), go to the Table Design tab and click Insert Slicer. Slicers are visual buttons that replace the filter drop-downs, making it much faster to toggle between different views of your chart.
  • Chart Layouts: Once your chart is created, use the Chart Design tab to quickly change the style or layout to make the filtered data more readable.
  • Combine with a Total Row: If you add a "Total Row" to your Table (found in the Table Design tab), remember to exclude the Total row from your chart selection, otherwise, the total will appear as a massive bar that dwarfs all your other filtered data points.

Troubleshooting

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

  1. Check the Data Source: Right-click the chart and choose Select Data. Ensure the "Chart data range" is pointing to the correct table or range.
  2. Check Hidden Cell Settings: In the Select Data window, 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, Excel will ignore your filters and plot everything.
  3. Refresh the Table: If you are using a PivotChart instead of a standard chart, the data will not update automatically when you filter the source table. You must go to the PivotChart Analyze tab and click Refresh.
  4. Restart the Filter: Clear all filters by going to Data > Clear and then re-apply your filters from scratch to reset the range.

Frequently Asked Questions

Will the chart update if I add new data to the list?

Yes, provided you converted your data range into an official Excel Table (Ctrl + T) before creating the chart. If you used a standard range, you will need to manually update the data source range in the Chart Design menu.

Can I filter by multiple columns at once?

Yes. You can apply filters to as many columns as you need. The chart will only display data that meets all the active filter criteria simultaneously.

Why does my chart look empty after filtering?

This usually happens if the filter criteria are too restrictive and no rows meet the requirements, or if the cells being filtered contain errors (like #N/A) that the chart cannot plot.

Does this work on Excel for the Web?

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

Can I make a chart that ignores filters?

Yes. If you want the chart to remain static regardless of filters, go to Select Data > Hidden and Empty Cells and check the box for "Show data in hidden rows and columns."