+ Reply to Thread
Results 1 to 6 of 6

Create different graphs depending on dropdown list

  1. #1
    Registered User
    Join Date
    03-30-2013
    Location
    Brazil
    MS-Off Ver
    Excel 2007
    Posts
    8

    Create different graphs depending on dropdown list

    Hi there!
    Let me start by saying I'm quite new to VBA/macros, but I have a problem which I believe I could solve using progamming.

    Here's the thing:
    I have on collumn A unique names (think S1, S2, S3, S4, S5...), and on collumn B I have some flags, which are linked to the unique names, but not one for one. It's like, S1, S2 and S3 all have F1 on collumn B, and S4, S5, S6, S7 and S8 all have F2 on collumn B, and so on.

    I also have a list with all the different flags on another worksheet, and this is what I want: when I choose a flag on this list, let's say F4, I want excel to take all the unique names to the left of the cells that contains F4, which are on collumn A, and plot a bar graph with names on x axis and a number which is on T collumn on Y axis....

    That's pretty much it, hope I could make myself clear, and I don't really know if it's actually possible to do what I want, but I think it should be...

    Thanks for the help,
    Cheers

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Create different graphs depending on dropdown list

    Hi Candbapt,

    Welcome to the forum.

    Can you share a sample data ? Thx


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    03-30-2013
    Location
    Brazil
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Create different graphs depending on dropdown list

    Hi DILIPandey, thanks for the help.
    Test sheet.xlsx

    This is pretty much what I mean. But think of it as a much larger list, many different flags, and each flag corresponds to a different amount of unique numbers..

    Any doubts, just ask!

    Cheers

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Create different graphs depending on dropdown list

    Hi Candbapt,

    See the attached file where I have used defined names as a data source for chart, press ctrl + F3 to see these names and their formulas. Thanks.
    Test sheet.xlsx

    Regards,
    DILIPandey
    <click on below * if this helps>

  5. #5
    Registered User
    Join Date
    03-30-2013
    Location
    Brazil
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Create different graphs depending on dropdown list

    Thank you so much, DILIPandey!
    It took me a while to understand what you did, but I managed to replicate to my worksheet, and it worked wonders!

    I really appreciate, and I hope someday I'll be able to do that by myself =p

    Props to you.
    Cheers!

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Create different graphs depending on dropdown list

    You are welcome Candbapt..


    Please mark this thread as [SOLVED].. thx


    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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