+ Reply to Thread
Results 1 to 3 of 3

Dynamic chart using a listbox

  1. #1
    Registered User
    Join Date
    08-17-2009
    Location
    KC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Dynamic chart using a listbox

    Working on creating a dynamic chart using a listbox.

    Read about this, steps are:
    1) Create named ranges for labels and data - Did this OK
    2) Create and format chart OK - Did this OK
    3) Base chart on named ranges - Not sure how to do this
    4) Create listbox - Did this OK

    Something important is missing, not sure what.

    Sample file attached.
    Attached Files Attached Files

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Dynamic chart using a listbox

    re 1) You created static range names. The trick is to create dynamic range names that change their contents depending on the value selected from the list box.

    re 4) You need to link the listbox with a cell, for example Q1, so the number of the listbox choice is represented in a cell and can be used for the dynamic range name.

    back to 1) create two dynamic range names
    ChtName =OFFSET(Test!$B$3,Test!$Q$3,0)
    ChtData =OFFSET(Test!$C$3:$F$3,Test!$Q$3,0)

    re 3) edit the chart's source data and enter

    Series name =Test!ChtName
    Series values =Test!ChtData

    Now select a different value from the list box. See how the number in Q3 changes. See how the chart changes.

    Oh, and please drop the 3D chart junk. It only makes the columns harder to interpret and compare.

    See attached.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-17-2009
    Location
    KC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Dynamic chart using a listbox

    Thank you for explaining this, I'll start reworking this right away. You are probably right about the 3d effect.



    Picture 5

+ 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