Change source data of graph with Combo Box

gorgon777

Board Regular
Joined
Mar 12, 2012
Messages
58
Hi there,

I have an 'in-cell dropdown' which looks up two values, Q1 and Q2
I have a range of data by month showing a specific number as below e.g


MonthCount
2012-01120
2012-02190
2012-03200
2012-04150
2013-05175

<tbody>
</tbody>

I have a Line graph using this entire table as the source data.
What I would like to do is only use part of the data based on what the dropdown cell specifies. For example, if it is set to "Q1", I would like just the 2012-01 and 2012-02 data to show in the graph. If its "Q2", I would like only 2013-03 and 2012-04 data to show in the graph.

How can I go about doing this?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Thanks danzon, this does work great. However I am actually looking for a solution which uses one graph, and the source data range changes based on the combo box value. The reason I wish to do it this way is i have various other graphs on the sheet, so increasing cell size would mess things up a litt.e
 
Upvote 0
OK, I see what you are after...

Here is how I would do it, the screenshot should explains in detail, let me know if you have questions after reviewing this




ScreenShot1237.gif
 
Upvote 0
Again that is a great method, but I actually just want the months relevant to Q1 and Q2 to show, based on the dropdown selection. Below is a screenshot explaining the idea:

shot1.png


I appreciate your help, and hope this makes it a little more clearer :)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,561
Messages
6,120,242
Members
448,951
Latest member
jennlynn

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