
π This article includes 1 downloadable practice file β
Instead of ten charts β one per region β build one chart and let the reader pick the region from a dropdown. It keeps dashboards clean and takes about five minutes.
In this article
The setup
Assume a table with regions in A3:A6 and months JanβJun in B2:G2, with sales values in B3:G6.
Step 1: the dropdown
Select cell J2 β Data β Data Validation β List β Source =$A$3:$A$6. Pick βNorthβ.
Step 2: a helper row that follows the dropdown
In B9 enter:
=XLOOKUP($J$2, $A$3:$A$6, B3:B6)
and copy it across to G9. Older Excel: =INDEX(B3:B6, MATCH($J$2, $A$3:$A$6, 0)). Put the months in B8:G8 (=B2 etc.) and a label in A9: =J2.
=XLOOKUP(J2, A3:A6, B3:G6) spills across all six months.Step 3: chart the helper range
Select A8:G9 β Insert β Column (or Line). The series name comes from A9, so the chart title updates too: click the title, type = in the formula bar and click J2.
Step 4: polish
- Fix the vertical axis maximum (Format Axis β Bounds) so bars do not jump in size between regions β otherwise small regions look as big as large ones.
- Add a second series with the average of all regions for comparison:
=AVERAGE(B3:B6)in row 10. - Hide the helper rows or move them to a βCalcβ sheet.
Variations
- Two dropdowns (region + metric): use the two-criteria lookup.
- A slider instead of a dropdown: Developer β Insert β Scroll Bar, linked to a cell that picks the row number for
INDEX. - Pivot-based: a PivotChart with a Slicer does the same with no formulas.
Try it yourself: step by step
- Download dynamic-chart.xlsx and open Dashboard.
- Click the yellow cell
J2β a dropdown arrow appears. Pick a different region and the chart changes. - Look at row 9: each cell uses
INDEX(β¦, MATCH($J$2, $A$3:$A$6, 0))to fetch the chosen region. The chart only reads row 9. - Right-click the vertical axis β Format Axis: the maximum is fixed at 350, so small regions do not look as big as large ones.
- Extend it: add a row 10 with the average of all regions (
=AVERAGE(B3:B6)), then right-click the chart β Select Data β Add series.
π Practice files for this article
- πDynamic chart workbookDropdown + INDEX-MATCH helper row + chart, ready to reuse.β¬ XLSX Β· 8 KB
Free to use for learning. Files with macros (.bas) are plain text β import them with Alt+F11 β File β Import File, and always test on a copy.