Alternating Between Data Sources in Dynamic Chart

Arashikage

New Member
Joined
Sep 14, 2016
Messages
1
I’ve been banging my head against the wall trying to figure this out :oops: I don’t have any training in Excel or VBA. Everything I’ve ever learned to do in Excel has been from looking stuff up online or picking apart other people’s spreadsheets to see how they did something. My problem…

I created a table named ‘TrendDatabase’ that I input data into daily. There are 100+ columns of data. For my example I reduced it to four and renamed the columns. I defined all of the column headers except for the “Date” column as ‘Categories’. I then created a drop-down list that uses ‘Categories’ as its source (to exclude the “Date” column I couldn’t use =TrendDatabase[#Headers] as my source for the list). I also defined the cell that has the drop-down list as ‘ChartCategory’.

I want to be able to select a category in the drop-down list and have only that category’s data appear in a line chart. I know of a convoluted way to do this with a static amount of rows, but I want to be able to filter the data and only see that filtered data on the chart. I also don’t want to have large blank sections on the chart, so the chart range would have to be dynamic.

This is just a basic view of what I'm working with. If anyone could answer this or would care to take on this challenge, please do.
Excel 2007
ABCDEFGH
1Pick Category…
2DateABCDB
38/24/161,9151,18360.6%10,901
48/25/161,7131,23062.9%10,780
58/26/161,9051,27564.7%11,313
68/29/161,8281,31663.8%10,778
78/30/161,8961,28359.5%11,737
88/31/161,8661,21260.8%10,782
99/1/161,8741,30963.3%11,374
109/2/16
119/5/16
129/6/161,7761,30055.5%9,873
139/7/161,5881,17964.7%8,681
149/8/161,7301,33162.1%2,951
159/9/16
169/12/161,6871,21468.1%7,743
17
18

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Trend Data
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,214,965
Messages
6,122,499
Members
449,089
Latest member
Raviguru

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top