• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How do I create a list that will chart each series

Coal

New Member
Hello,
I am a brand new forum member and was looking for some help.

I have a spreadsheet with about 400 lines representing categories and several columns representing months. I'd like to create a drop-down list that would allow me to select one of the categories in column A from the "Growth" tab, and have a line chart be created with the monthly values of the component. I have cut out a lot of the data to upload the file.

Is this possible?

Thanks again,
Coal
 

Attachments

  • US Inflation_short.xls
    764.5 KB · Views: 6
Hi Coal

Try this on for size. I just used the entire COlumn A for the categories. You can add some data validation to allow multiple drill downs (i.e. Goods>Durable Goods>Autos>etc). However, based on your text above, this is somewhere to start. You can nix the data labels, and mess with the formatting as you see fit.

Post back if there are some other things you're interested in adding/etc.
 

Attachments

  • US Inflation_short_3G.xls
    782 KB · Views: 7
Hi, Coal!

As a new user you might want (I'd say should and must) read this:
http://chandoo.org/forum/forums/new-users-please-start-here.14/

And regarding your issue, give a look at this file:
https://dl.dropboxusercontent.com/u/60558749/How do I create a list that will chart each series _ question from a newbie - US Inflation_short (for Coal at chandoo.org).xlsm

It's a sample file to show you the technique, you'd polish the chart presentation.

This is the code for worksheet Growth class module:
Code:
Option Explicit

Private Sub lstCategory_Change()
    Const ksRngTitle = "DateList"
    Const ksRngData = "SelectedItemList"
    Const ksChart = "DynamicChart"
    ActiveSheet.ChartObjects(ksChart).Activate
    ActiveChart.SetSourceData Application.Union(Range(ksRngTitle), Range(ksRngData))
End Sub
Regards!

PS: If it's about inflation, ... be my guest!
 
  • Like
Reactions: 3G
Hi,

Try this one using a data validation list
 

Attachments

  • US Inflation_short.xls
    764.5 KB · Views: 5
Back
Top