+ Reply to Thread
Results 1 to 4 of 4

Thread: Control graph with combo box in Excel

  1. #1
    Registered User
    Join Date
    07-15-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Control graph with combo box in Excel

    Hi,

    Please check the attached sample data. I am trying to create the graph with two lists or combo boxes with which I can dynamically get the graph plotted.

    I need to create two combo boxes; one for Region and another for the column months.

    I am using Excel 2007 but I want users in Excel 2003 to be able view the data.

    Regards,
    Ravinder
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,346

    Re: Control graph with combo box in Excel

    Have you read Jon Peltier's page, specifically the Worksheet Controls for Chart Interactivity part.
    http://peltiertech.com/Excel/Charts/Dynamics.html
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    07-15-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Control graph with combo box in Excel

    Thank you for the reply. Yes I read those articles.

    Please find the attached file where the dynamic chart is working.

    I have accomplished the dynamic chart by defining two named ranges.
    One for the X-Axis labels and another for the values to be plotted.

    1) For Values it is:
    =OFFSET(Sheet1!$C$1,1,0,Sheet1!$J$4,1)

    2) For X-Axis Labels it is:
    =OFFSET(Sheet1!$A$1,1,0,Sheet1!$J$4,2)

    However, It still does not fully serves my purpose. I want the graph to show data only for the month which is selected not for all rows till that month.

    Also the rows in $A$2:$A$21 contains merged cells due to which the Combo box has many blank rows. How can I remove those?

    Thanks & Regards,
    Ravinder
    Attached Files Attached Files

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,346

    Re: Control graph with combo box in Excel

    In your named formula you need to alter the initial offset positions using a formula.

    The Chart Last 12months article on JP's site will help with that.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0