Excel: Dynamic charting with drop list
Filed in Excel on Nov.15, 2007. Email This article to a Friend
Problem: Chart dynamically updates source data depending on drop list selection.
Solution:
B4 is a drop list:
- Click tab "Data"
- Click "Data validation"
- Click "Settings" tab
- Click "List"
- Click "Source" button to select source area

- Click OK!
B5 to B7 get values dynamically, depending on drop list selection (B4):
B5: =HLOOKUP($B$4,$C$4:$F$7,2,FALSE)
B6: =HLOOKUP($B$4,$C$4:$F$7,3,FALSE)
B7: =HLOOKUP($B$4,$C$4:$F$7,4,FALSE)
The chart gets source data from range: A5:A7 and B5:B7
=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])
Looks for a value in the top row of a table or array of values and returns the value in the same column from a row you specifiy
Related blog posts
- Create a dynamic stock chart using a web query and a drop down list in excel
- Excel charts: Use dynamic ranges to add new values to both chart and drop down list
- Change chart data range using a drop down list (vba)
- Change pivot table data source using a drop down list
- Dependent drop down lists – Enable/Disable selection filter







Leave a Reply