Yes. In Excel for Microsoft 365 on Windows, create a drop-down with Data Validation, then connect a chart to a helper range that changes when the selection changes. For example, a user can choose Sales or Expenses and have one chart update to show the chosen monthly figures.
How a drop-down chart works
A standard Excel chart plots the cells in its source range. A drop-down does not directly change that range; instead, it changes a cell value. A formula reads the selection and returns the corresponding data in a helper range. Because the chart uses that helper range, it redraws when the selection changes.
This arrangement separates the original data from the display. Your source table remains intact, while the selector controls which series the chart shows. It is useful for dashboards where a reader should compare one measure at a time without navigating between several charts.
The example below uses monthly Sales and Expenses. The same method works for other measures, such as units, costs, or website visits, provided each option in the drop-down corresponds to a column of values.
Set up the source data and selector
Enter the following headings and sample values in A1:C7. The figures are illustrative; use your own labels and data in the same arrangement.
- A1: Month; B1: Sales; C1: Expenses.
- Rows 2–7: Jan 12,000 and 8,000; Feb 14,500 and 9,200; Mar 13,800 and 8,700.
- Continue with Apr 16,200 and 9,800; May 17,500 and 10,500; Jun 16,900 and 10,100.
Use H1 as the selector cell. Click H1, then choose Data > Data Validation > Data Validation. In the dialog, set Allow to List and enter =$B$1:$C$1 in Source. Confirm the setting. H1 now offers Sales and Expenses, using the source column headings so the choices match the data labels exactly.
If the source list is on another worksheet, Excel may require a named range rather than a direct cross-sheet reference in the Data Validation Source box. For this small example, keeping the list and selector on the same sheet avoids that complication. You can also type the choices directly, separated by commas, but linking the list to the headings is easier to maintain if a heading changes.
Build the chart helper range
Use E1:F7 as a compact helper table. Enter Month in E1. In F1, create a heading that follows the selector. With H1 holding the chosen measure, enter =H1 in F1; its displayed result is Sales when H1 is set to Sales, and Expenses when H1 is set to Expenses.
With the source months in A2:A7 and the helper month labels in E2:E7, enter =A2 in E2 and fill it down through E7. E2 returns Jan, and the remaining cells return Feb through Jun. This copies the labels without changing the original data.
With Sales and Expenses in B2:C7, their headings in B1:C1, and the selection in H1, enter =INDEX($B2:$C2,1,MATCH($H$1,$B$1:$C$1,0)) in F2. Fill the formula down through F7. If H1 is Sales, F2 returns 12,000; if H1 is Expenses, F2 returns 8,000. The same formula then picks the corresponding value in each subsequent month.
MATCH finds the selected heading among the two source headings. Its final argument, 0, requests an exact match. INDEX returns the value from that position in the current row. The dollar signs keep the heading range and selector fixed as you fill the formula down, while the row number in B2:C2 changes for each month.
Insert and format the chart
- Select E1:F7, including the helper headings.
- Choose Insert > Insert Line or Area Chart > 2-D Line. A line chart is a sensible starting point for monthly values; choose a column chart instead if comparing the size of individual months is more important than emphasizing a trend.
- Move or resize the chart as needed. Give it a clear title, such as Monthly measure, and format the vertical axis as currency if the figures represent money.
- Change H1 from Sales to Expenses. The helper values and chart should update to show the expense series. Change it back to confirm that the chart follows the selection.
The example totals are also a useful check: the six Sales values add to 90,900, and the six Expenses values add to 56,300. The chart itself plots monthly values, not those totals, unless you add a total row to the chart source. If the plotted numbers or labels do not respond, check that the chart uses E1:F7 rather than the original source columns.
Choose a chart type and selector design
A line chart suits ordered time periods such as months because it makes movement over time easy to see. A clustered column chart is often clearer when the task is comparing separate categories. Avoid using a pie chart for a changing monthly series: pie charts are intended to show parts of a whole, not a trend.
This example switches between two measures while keeping the months fixed. You can adapt the helper formula for a longer list of measures by expanding the source range and the validation list together. Keep the selector choices identical to the column headings. If the chart should compare several measures at once, a selector that chooses one measure may not be the right design; a chart with multiple series may communicate the comparison more directly.
You can also make a selector for a category, such as a region, rather than a measure. In that design, arrange categories consistently in the source data and adjust the helper formula to return the selected category’s values. The principle remains the same: the drop-down controls a cell, a formula uses that cell to produce chart-ready values, and the chart points at those values.
Drop-down charts compared with PivotCharts
A formula-driven chart is a good fit when the data is in a simple, consistent table and the reader needs a small number of choices. It is transparent: the helper cells show exactly what the chart is plotting, and changing the chart source or formula is usually straightforward.
A PivotChart with a slicer can be a better option when users need to filter or summarize a larger data set by several fields, such as region, product, and year. PivotCharts work with PivotTables and offer interactive filtering controls, but setting up the PivotTable and choosing suitable fields adds a separate step. A Data Validation drop-down is not a slicer, and the two controls work differently. Choose based on whether you need a simple choice that switches a series or richer filtering and summarizing.
Common problems and practical fixes
- The formula shows #N/A: The selected text probably does not exactly match a heading in B1:C1. Check for extra spaces, misspellings, or a heading that was changed without updating the list.
- The chart does not change: Check that its data source is E1:F7 and that F2:F7 contain formulas. A chart still linked to the original Sales and Expenses columns will not respond to H1.
- The chart includes an unwanted series: Select only the helper headings and helper values when creating the chart. Including the selector cell or unrelated columns can make Excel interpret the data incorrectly.
- The horizontal axis shows 1, 2, 3 instead of months: Edit the chart data source and make sure E2:E7 is used for the horizontal category labels, with E1 as the heading.
- Values appear without currency or with too many decimals: Format the source or helper values as needed, and check the chart axis number format. Formatting changes how numbers appear, not the underlying values.
When adding months, extend both the helper formulas and the chart source to include the new rows. Converting the source data to an Excel table can help keep related data organized as it grows, but verify that the helper range and chart include new records; do not assume a chart built from an ordinary fixed cell range expands in every setup.
Excel for Mac and Excel for the web
The method uses ordinary data validation, worksheet formulas, and a standard chart, so it is not limited to Windows. In Excel for Mac, the names and placement of dialog controls can differ slightly, but look for Data Validation on the Data tab and create the chart from the helper cells. In Excel for the web, you can work with data validation, formulas, and charts as well, although available chart-formatting controls may differ from the desktop application.
If you share the workbook, test the selector in the version your audience will use. The chart depends on the workbook recalculating the helper formulas and displaying the chart, so avoid replacing the helper formulas with static values if viewers need the drop-down to remain interactive.
Frequently Asked Questions
Can I make a chart change when I select a value from a drop-down?
Yes. Use Data Validation for the selection, a formula-driven helper range for the displayed values, and a chart linked to that helper range. Changing the selection changes the formula results and therefore the chart.
Can the drop-down switch between different chart types?
The method above switches the plotted data, not the chart type. To change between chart types automatically, you would need a different design, such as separate charts or automation. For most dashboards, one chart with changing data is simpler to maintain.
Why does my Excel chart show #N/A after I choose an option?
The selected entry likely does not exactly match a heading the lookup formula searches. Compare the drop-down text with the source headings, including spaces, and make sure the validation list points to the intended cells.
Can one drop-down control more than one chart?
Yes. Multiple charts can use helper ranges driven by the same selector cell. Each chart needs an appropriate source range, and each helper formula must respond to the selected option.
Do I need a PivotTable to make an interactive chart?
No. A PivotTable is not required for a simple chart that switches between a few measures. Use a PivotChart and slicer when you need to filter or summarize a more complex data set by several fields.
Related
- Excel Name Box: Change a Range or Named Range
- How to See Named Ranges in Excel and Check Their Cells
- Absolute Cell Reference Excel Shortcut: F4 Explained
Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.
More in Charts & pivot tables
- Excel Bar of Pie Chart: How It Works and When to Use ItAn Excel Bar of Pie chart separates smaller categories from a pie chart and displays those categories as…
- Excel Waterfall Chart: Add and Format a Subtotal BarTo add a subtotal to an Excel waterfall chart, include a row containing the cumulative subtotal in the…
- Data Pivot Chart: Meaning, Uses, and How It Works in ExcelA data pivot chart—usually called a PivotChart in Microsoft Excel—is an interactive chart linked to a PivotTable. It…
- Excel 3-Line Chart: Create and Format Three SeriesTo create a three-line chart in Excel for Microsoft 365 on Windows, put the category labels in the…
- Wedding Seating Chart in Google Sheets: A Practical GuideYes. You can make a wedding seating chart in Google Sheets by keeping guest details and table assignments…
- Can You Create a Pie Chart in Google Sheets? Here’s HowYes. In Google Sheets in a web browser, select a table of category names and values, choose Insert…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.