+ Reply to Thread
Results 1 to 4 of 4

dynamically update chart based on cell value

  1. #1
    Forum Contributor
    Join Date
    08-10-2006
    Location
    The Netherlands
    MS-Off Ver
    Office for Mac 2016; MS Office 2016 for Windows
    Posts
    110

    dynamically update chart based on cell value

    Hi Experts,

    Again need your wisdom

    Attached file has a simple chart (3 series).
    User can choose the month (cell C2), and the chart will then need to show the data per day of that choosen month as listed in the data table (column L:O).
    I can find various solutions with dynamic name ranges, but all of these won't show me how to change the data range from e.g. L2:O8 when I choose October in cell C2 and have the range changed to L9:O29 when I choose November in cell C2, so that the chart will dynamically update the graphs for these 3 series.

    Is there any way I can get this to work?

    Thanks all for the time and effort!!
    graph.xlsx

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: dynamically update chart based on cell value

    Proposed names:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    first_day and number_days are used in further formulas
    Serie1...3 are real series data
    and
    dates are horizontal axis labels
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    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: dynamically update chart based on cell value

    What you need to do is derive a second table from your main data which only shows the data for the chosen month, and use this as the source for your chart. The attached file shows how this can be done.

    Hope this helps.

    Pete
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-10-2006
    Location
    The Netherlands
    MS-Off Ver
    Office for Mac 2016; MS Office 2016 for Windows
    Posts
    110

    Re: dynamically update chart based on cell value

    Perfect guys!

    Interesting to see that Kaper uses defined names and Pete uses a helper table, both resulting in the desired output

    I've learned a lot again, many thanks to both!!

+ 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. [SOLVED] Date axis not in order (using table to dynamically update chart)
    By atoga in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 07-23-2015, 03:20 AM
  2. [SOLVED] dynamically update several worksheets from a main worksheet based on criteria
    By ZedaG in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2015, 09:14 AM
  3. Dynamically Update CountIf Formula Based On Nested List
    By SamuraiSam83 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2015, 09:09 PM
  4. [SOLVED] Is it possible to dynamically update a charts data series, based on another cell
    By missydanni in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-14-2013, 11:29 AM
  5. Replies: 0
    Last Post: 02-16-2013, 01:39 PM
  6. Help to dynamically update Excel chart
    By zad1999 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2010, 08:35 AM
  7. Update chart dynamically
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2010, 05:41 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