+ Reply to Thread
Results 1 to 7 of 7

Creating Dynamic Charts

  1. #1
    Registered User
    Join Date
    05-14-2017
    Location
    Sri Lanka
    MS-Off Ver
    2013
    Posts
    4

    Creating Dynamic Charts

    Hi guys,

    I found a template online for a Vehicle Log (link below). It has a chart that display the cost of gas or maintenance (which are in two different tables) and updated based on the value you choose from a dropdown menu. Could someone please tell me how this is done? The sheet doesn't seem to have any macros.

    https://templates.office.com/en-us/V...ook-TM04014212

    Thank you!

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Creating Dynamic Charts

    The link doesn't work for me. Could you attach the workbook?

    BSB

  3. #3
    Registered User
    Join Date
    05-14-2017
    Location
    Sri Lanka
    MS-Off Ver
    2013
    Posts
    4

    Re: Creating Dynamic Charts

    Vehicle log book.xlsx

    Sorry for the hassle! I've attached the file here.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Creating Dynamic Charts

    I see three "filtered lists" in your file, so I assume you are referring to the "autofilter" feature that is being used here. Here's one of many tutorials on the internet: http://www.contextures.com/xlautofilter01.html
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    05-14-2017
    Location
    Sri Lanka
    MS-Off Ver
    2013
    Posts
    4

    Re: Creating Dynamic Charts

    Hi, the file has a drop down list (Cell N6). Based on whether you choose Gas or Maintenance, the chart below will change. How do you draw a chart that changes based on the selection?

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Creating Dynamic Charts

    Now I see your question. The spreadsheet appears to be using a a variation of "dynamic named ranges". Instead of the usual OFFSET() or INDIRECT() function, the sheet uses CHOOSE() formulas in the named formulas/ranges to specify which ranges to apply to the chart.

    1) If you select the series and look in the formula bar, you should be able to see the names in the respective parts of the series definition. (ChartDates, ChartVals)
    2) With a spreadsheet cell selected, you can go into the Name Manager (Formulas tab) and see the different names defined in the workbook.
    3) If you have questions about how the CHOOSE() or other functions work, help files can be accessed in your Excel installation, or here (https://support.office.com/en-us/art...6-c6d90033e188 )

  7. #7
    Registered User
    Join Date
    05-14-2017
    Location
    Sri Lanka
    MS-Off Ver
    2013
    Posts
    4

    Re: Creating Dynamic Charts

    Thank you! Will look into it

+ 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 dynamic userform rely on dynamic checkbox selection
    By END93 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2016, 06:39 PM
  2. 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
  3. Creating Dynamic Folders/WorkBook from a Sheet with Dynamic Path.
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 03-28-2011, 05:42 AM
  4. Creating pivot charts and dynamic doughnuts
    By Justinmih in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-25-2010, 09:14 PM
  5. Creating simple charts from multiple pivot table charts
    By hovaucf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2008, 04:13 PM
  6. Make dynamic charts more dynamic
    By Milo in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-12-2006, 04:10 AM
  7. Replies: 0
    Last Post: 01-19-2005, 06:34 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