+ Reply to Thread
Results 1 to 8 of 8

Dynamic Chart with Dropdown Lists

  1. #1
    Registered User
    Join Date
    11-23-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    10

    Dynamic Chart with Dropdown Lists

    Hey Guys,

    Long time fan, first time poster. I hope someone can help!

    I'm trying to create a dynamic chart in the attached file, whereby the chart data will be determined by what has been selected in the dropdown lists.

    The dropdown lists currently specify the start and end date of the graph as well as the desk number.

    So far I have created a named range (Range) for the various dates using an offset formula and populated the dropdown lists.

    I have absolutely no idea what the next step is though and any help would be greatly appreciated!

    I hope that makes sense.

    Thanks,

    aldo23
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Dynamic Chart with Dropdown Lists

    hi aldo23, welcome to the forum. i see that you have Named Ranges with OFFSET, so i guess it's not unfamiliar to you. i added 2 more:
    Date:
    =OFFSET($A$1,,MATCH($B$10,$B$1:$CX$1,0),,MATCH($D$10,$B$1:$CX$1,0)-MATCH($B$10,$B$1:$CX$1,0)+1)
    Desk:
    =OFFSET($A$2,MATCH($F$10,$A$3:$A$6,0),MATCH($B$10,$B$1:$CX$1,0),,MATCH($D$10,$B$1:$CX$1,0)-MATCH($B$10,$B$1:$CX$1,0)+1)

    then right-click the chart & "Select Data". Edit the range. be sure to have the worksheet name in front before the Named Range. the series & categories will be like this:
    ='Sales Example.xlsx'!Desk
    ='Sales Example.xlsx'!Date
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    11-23-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Dynamic Chart with Dropdown Lists

    Hi benishiryo,

    Thanks so much for the unbelievably quick response!

    That looks great, would have taken me hours to figure all that out.

    I just have one quick question...Am I right in saying that I can replace the range $B$1:$CX$1 in the MATCH function with a dynamic range so that when I add more dates it will expand automatically?

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Dynamic Chart with Dropdown Lists

    you're very welcome~

    I just have one quick question...Am I right in saying that I can replace the range $B$1:$CX$1 in the MATCH function with a dynamic range so that when I add more dates it will expand automatically?
    i'm supposing you are referring to your "Range" OFFSET formula. yes you can.

  5. #5
    Registered User
    Join Date
    11-23-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Dynamic Chart with Dropdown Lists

    Excellent! Thanks again

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Dynamic Chart with Dropdown Lists

    It appears on your name range though you need to add a minus 1 on the end...

    =OFFSET(Sales!$B$1,0,0,1,COUNTA(Sales!$1:$1)-1)

    Without the minus 1 the range selects from B1:CY

    Good work benishiryo.

    ===========================================

    Please don't forget to mark your thread as solved.
    HTH
    Regards, Jeff

  7. #7
    Registered User
    Join Date
    11-23-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Dynamic Chart with Dropdown Lists

    Hi jeffrey,

    Thanks for your comment.

    I extended the range from the 21st of November to the 30th of November though and it seems to work fine without the minus 1.

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Dynamic Chart with Dropdown Lists

    I guess all is good then

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