+ Reply to Thread
Results 1 to 7 of 7

Dymanic chart pulling from another sheet selectable by dropdown field

  1. #1
    Registered User
    Join Date
    02-11-2016
    Location
    England
    MS-Off Ver
    Mac 2011 & 2016
    Posts
    2

    Dymanic chart pulling from another sheet selectable by dropdown field

    Hello,

    Can anyone sort this sheet for me so that the chart populates from the other sheet (Raw_data) using column A (Campaign ID) to bring all the chart elements together. So think of this as 3 seperate campaigns with a dymanic number of links per that need to formulate the chart.

    Just a simple drop down on the dashboard to select the data. Also the formatting of that chart needs to remain the same. I've used an example on the dashboard of how I'd like it to look. Ultimately Id want the same data pulling off the (Raw_Data) sheet.

    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Dymanic chart pulling from another sheet selectable by dropdown field

    I've set this up for you in the attached file.

    There is a data validation drop-down in cell B1 on the Dashboard sheet which allows you to choose the campaign (these are listed in A3:A5).

    I put this formula in H2 of the Raw_data sheet:

    =IF(A2=PCT_Dashboard!$B$1,MAX(H$1:H1)+1,"-")

    and copied down to the bottom of your data. This responds to the choice made in the drop-down, and allocates a unique sequential number to matching records.

    I put this formula in cell C2 of the Dashboard sheet:

    =IFERROR(INDEX(Raw_data!B:B,MATCH(ROWS($1:1),Raw_data!$H:$H,0)),"")

    which is then copied across into D2:F2, and down to row 27, to bring the appropriate data across.

    Change the campaign in B1, and the data changes automatically, as does the chart.

    Hope this helps.

    Pete
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-11-2016
    Location
    England
    MS-Off Ver
    Mac 2011 & 2016
    Posts
    2

    Re: Dymanic chart pulling from another sheet selectable by dropdown field

    Hi Pete,

    Thanks so much for this. Are you able to make it so the chart size can change dependant on how many pieces of data it's pulling. The 3 examples I've put in will be added to with no set in stone amount of chart lines per campaign.

    Thanks,

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Dymanic chart pulling from another sheet selectable by dropdown field

    I've got similar. Generate list of unique campaign names and put as dropdown to cell by data validation.
    And catching value to chart with array formula, so Pete's solution is faster.
    Attached Files Attached Files
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Dymanic chart pulling from another sheet selectable by dropdown field

    Quote Originally Posted by Johnnyenv View Post
    ... Are you able to make it so the chart size can change dependant on how many pieces of data it's pulling...
    I tried to adjust the SERIES formula to make it dynamic based on the amount of non-blank data in column C, but Excel did not seem to like that approach.

    Another way would be to set up Autofilter on column C, and then each time you change the campaign in B1 you can use the filter drop-down to unselect Blanks (at the bottom of the list). The physical size of the graph will remain the same, but with fewer elements to display this means that the thickness of each bar will be increased.

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    05-01-2019
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    1

    Re: Dymanic chart pulling from another sheet selectable by dropdown field

    Why not use pivotable ?

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

    Re: Dymanic chart pulling from another sheet selectable by dropdown field

    Using Pete's formula setup and some named ranges, does this work for you?
    Attached Files Attached Files
    HTH
    Regards, Jeff

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Pulling Data From 1 Sheet to another on conditoinal Dropdown
    By spicerol in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-27-2016, 12:18 PM
  2. Make value field selectable
    By Jonathan9 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-31-2014, 01:11 AM
  3. Chart plotting using dropdown list pulling data from different sheets
    By tolu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-14-2013, 11:00 PM
  4. Populate a dropdown field from another sheet.
    By mjhopler in forum Excel General
    Replies: 4
    Last Post: 03-13-2011, 04:28 PM
  5. Non-Selectable Dropdown List Items
    By therealjag in forum Excel General
    Replies: 2
    Last Post: 09-10-2009, 06:36 AM
  6. Last 12 Month Dymanic Chart variation
    By discoverdean in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-29-2008, 12:10 PM
  7. How to make dymanic Solid-Dotted Line Chart [PLEASE HELP]
    By fbachri in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-26-2007, 12:59 AM

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