+ Reply to Thread
Results 1 to 7 of 7

Automatically Update Charts (Dynamic Ranges?)

  1. #1
    Forum Contributor
    Join Date
    12-29-2012
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    325

    Automatically Update Charts (Dynamic Ranges?)

    Here is a sample workbook:

    Book1.xlsx

    I have a macro that inserts new data into the analysis sheet daily. So the line graphs take into consideration the date column A and the balance column I (for the first section). I want to update my macro or do something so that when the current macro inserts the new daily data, the graphs beneath the data update automatically incorporating the new data just pasted in from the macro.

    Any ideas?

  2. #2
    Forum Contributor
    Join Date
    12-29-2012
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    325

    Re: Automatically Update Charts (Dynamic Ranges?)

    Anyone have any suggestions?

  3. #3
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Automatically Update Charts (Dynamic Ranges?)

    Try using 2 Dynamic Named Ranges for your Chart Data..

    For the Balance data:

    =OFFSET(Analysis!$I$2,0,0,COUNT(Analysis!$I:$I)-1,1)

    For the Date data:

    =OFFSET(Analysis!$A$2,0,0,COUNTA(Analysis!$A:$A),1)

    And refer to these Named Ranges in your Chart instead of static values..

    I have attached your Workbook with the first chart on the Analysis sheet done..
    Look in Formula Tab > Name Manager to see the 2 Named Ranges..

    Note:Your data entry area only allows for 4 lines of data.. I am presuming you are going to make it so that expands as you enter more data?
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    12-29-2012
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    325

    Re: Automatically Update Charts (Dynamic Ranges?)

    Quote Originally Posted by apo View Post
    Try using 2 Dynamic Named Ranges for your Chart Data..

    For the Balance data:

    =OFFSET(Analysis!$I$2,0,0,COUNT(Analysis!$I:$I)-1,1)

    For the Date data:

    =OFFSET(Analysis!$A$2,0,0,COUNTA(Analysis!$A:$A),1)

    And refer to these Named Ranges in your Chart instead of static values..

    I have attached your Workbook with the first chart on the Analysis sheet done..
    Look in Formula Tab > Name Manager to see the 2 Named Ranges..

    Note:Your data entry area only allows for 4 lines of data.. I am presuming you are going to make it so that expands as you enter more data?
    I see it works perfectly on your workbook!

    Couple of questions on how you managed to do it. I've named the ranges like you said. I've also edited the chart by the following:

    1.) Right click the chart and click "select data"
    2.) Hit edit on the legend entries (series) and entered the series name and series value like you did
    3.) Hit edit on the horizontal axis labels and entered the axis label range like you did

    Is there anything I need to do? Because mine is not updating like yours

  5. #5
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Automatically Update Charts (Dynamic Ranges?)

    mm.. that should do it.. easiest if you just attach your workbook so i can see if something is wrong there..

    By memory.. I think i deleted your horizontal and legend series then added new ones using the Named Ranges..

    But i just edited your second chart and it worked fine...

  6. #6
    Forum Contributor
    Join Date
    12-29-2012
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    325

    Re: Automatically Update Charts (Dynamic Ranges?)

    Quote Originally Posted by apo View Post
    mm.. that should do it.. easiest if you just attach your workbook so i can see if something is wrong there..

    By memory.. I think i deleted your horizontal and legend series then added new ones using the Named Ranges..

    But i just edited your second chart and it worked fine...
    Must have been doing something wrong. Got it now though. Thanks for all your help! I really appreciate it!

  7. #7
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Automatically Update Charts (Dynamic Ranges?)

    No worries.. glad to help..

+ 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. Dynamic Ranges in Charts
    By Llenni in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-10-2013, 09:13 AM
  2. Excel 2007 : Charts Using Dynamic Named Ranges
    By jjcgirl in forum Excel General
    Replies: 0
    Last Post: 04-18-2012, 06:25 PM
  3. Replies: 0
    Last Post: 07-12-2011, 02:25 PM
  4. Using Dynamic Ranges for Excel Charts
    By sriaknt1983 in forum Excel General
    Replies: 15
    Last Post: 03-29-2011, 07:20 AM
  5. Dynamic ranges in charts
    By MrSums in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-09-2010, 08:38 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