+ Reply to Thread
Results 1 to 11 of 11

dynamic chart based on combo box

  1. #1
    Registered User
    Join Date
    09-09-2012
    Location
    Beirut
    MS-Off Ver
    Excel 2010
    Posts
    14

    dynamic chart based on combo box

    Hello,

    I am trying to create a dynamic chart based on values in a combo box (whenever the user clicks on the value in the combo box, the chart changes).

    The data consists of three columns X, Y and Z.
    The combo box includes the values of all X.
    Whenever a value of X in the combo box is chosen, I need my chart to show Y and Z.
    For example if in the combo box the user chooses -353.692, I need my chart to show the values of Y and Z (like the chart in the file attached).
    Any help pls?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: dynamic chart based on combo box

    Hi,

    Attached is your solution.

    Hope this helps.
    Attached Files Attached Files
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Registered User
    Join Date
    09-09-2012
    Location
    Beirut
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: dynamic chart based on combo box

    Thank you Xlbiznes! yes it helps, it is the solution

  4. #4
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: dynamic chart based on combo box

    Glad i could help.

    Please mark this thread as solved.

  5. #5
    Registered User
    Join Date
    09-09-2012
    Location
    Beirut
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: dynamic chart based on combo box

    hello again xlbiznes,
    when I click on the last 5 values of the combo box, the chart shows nothing; the chart data does not read the data. any idea why?

  6. #6
    Registered User
    Join Date
    09-09-2012
    Location
    Beirut
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: dynamic chart based on combo box

    and what if the input range of the combo box can vary?
    for example instead of (Temp!$D$1:$D$29) we can have the data in (Temp!$D$1:$D$50) etc...

  7. #7
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: dynamic chart based on combo box

    Let me check.

  8. #8
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: dynamic chart based on combo box

    Hi,

    you need to change the find_me variable in the dynamic_chart() function from double to string.

    that solves the issue.

  9. #9
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: dynamic chart based on combo box

    and what if the input range of the combo box can vary?
    for example instead of (Temp!$D$1:$D$29) we can have the data in (Temp!$D$1:$D$50) etc...
    That is not a issue.

    Make sure that the needed data is present in your resultats sheet, which is used to plot your graph.

  10. #10
    Registered User
    Join Date
    09-09-2012
    Location
    Beirut
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: dynamic chart based on combo box

    Quote Originally Posted by xlbiznes View Post
    Hi,

    you need to change the find_me variable in the dynamic_chart() function from double to string.

    that solves the issue.
    yes it worked! thanks!

  11. #11
    Registered User
    Join Date
    09-09-2012
    Location
    Beirut
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: dynamic chart based on combo box

    Quote Originally Posted by xlbiznes View Post
    That is not a issue.

    Make sure that the needed data is present in your resultats sheet, which is used to plot your graph.
    the data is present in my resultats sheet, but the combo box is not reading values in cells after Temp D29; I need to program the combo box input data so that it reads all cells containing value in column D of temp sheet. is it possible?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.6.0 RC 1