+ Reply to Thread
Results 1 to 2 of 2

Creating a dynamic chart accoding to table

  1. #1
    Registered User
    Join Date
    02-16-2016
    Location
    Albania
    MS-Off Ver
    2007
    Posts
    12

    Creating a dynamic chart accoding to table

    Hello,

    I want to create a chart according to this table I am attaching.

    I want it to look like this : 3000|
    |
    |
    2000|___________________________________________________
    values |
    | ___________
    1000| ______| |___
    |___| |___________
    |
    0 |
    |------------------------------------------------------------------------------
    data(column A) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 ....... 31

    The 4 big groups ZONA 1, 2, 3, 4 are viewd through changeable chart through a combo box.

    The two lines will be the subgroups under each ZONA.

    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Creating a dynamic chart accoding to table

    Dynamic Charts are built on named dynamic ranges.

    These two articles will help you with both:
    http://www.utteraccess.com/wiki/inde...Dynamic_Ranges
    http://www.utteraccess.com/wiki/inde...namic_Charting

    What you want to plot on the Y axis is fixed. It is the range A3:A33. The trick is to find out which zone to plot. This is done by finding out how many columns to offset from column A.

    On the chart sheet, I have a data validation assigned to cell B1, where you select the zone.

    Cell 1 is a bit tricky. It uses the seldom-seen LOOKUP command which works a bit like VLOOKUP except everything is contained in the formula. =LOOKUP(B1,{"ZONA 1","ZONA 2","ZONA 3","ZONA 4"},{1,3,5,7})

    This formula looks at the value in B1 and then looks for its position in the list of zones (for example ZONA 2 is in the second position). It then returns the corresponding value from the following list {1,3,5,7}.

    Cell 1is used to determine how many columns to go over to find the column to plot for the first piece of data. The second thing we want to plot is one more column to the right.

    So this gives us our three Named Ranges to Plot

    Plot_1 =OFFSET(Plot_data,0,Chart!$C$1)
    Plot_2 =OFFSET(Plot_data,0,Chart!$C$1+1)
    Plot_data =Sheet1!$A$3:$A$33

    Plot_Data is fixed and the other two are defined by how many columns to the right to go to get the series to plot.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Creating a Dynamic Chart
    By Tulsip in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 01-20-2016, 02:37 AM
  2. [SOLVED] Creating a dynamic area chart
    By VBANovice46 in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 09-03-2015, 05:40 PM
  3. Wants to Create Dynamic Chart basis on Dynamic Table
    By Nisha Dhawan in forum Excel General
    Replies: 6
    Last Post: 04-30-2015, 12:08 AM
  4. Creating dynamic userform based on several file names and creating chart overlays
    By Thorn23 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-18-2014, 12:09 PM
  5. Replies: 9
    Last Post: 02-26-2014, 04:17 PM
  6. Creating dynamic chart with 2 filters
    By burlywood66 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-24-2013, 04:45 PM
  7. Problem creating a dynamic chart
    By kbaruin in forum Excel General
    Replies: 0
    Last Post: 09-20-2012, 08:55 AM

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