+ Reply to Thread
Results 1 to 3 of 3

How to add a named range of dynamic data to a graph

  1. #1
    Registered User
    Join Date
    01-06-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    19

    Smile How to add a named range of dynamic data to a graph

    Hi, I have the following named range below, I was wondering how I would go about linking this to a graph so the results are updated each time a macro is run.

    =OFFSET(InterestRateSim!$D$8,0,0,COUNTA(InterestRateSim!$D:$D),1)

    I have attempted to add the data by right clicking a blank graph, clicking on the "select data" button and then pasting this: "=OFFSET(InterestRateSim!$D$8,0,0,COUNTA(InterestRateSim!$D:$D),1)" into the chart data range.

    however i get the error message "that function is not valid"

    I would really appreciate a hand with this

    thanks
    Last edited by mashoutposse; 04-01-2010 at 08:31 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How to add a named range of dynamic data to a graph

    Hi,

    to update the graph when the data in the dynamic range grows or shrinks, use the range name in the Chart Source Data definition, like this

    MyRange is your range name, defined by your Offset function.

    =Sheet1!MyRange

    is what you enter as the data source. You need to precede the range name either by a sheetname or by the file name in square brackets

    [myfile.xls]MyRange

    This will update the chart, regardless of whether a macro is run or not.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to add a named range of dynamic data to a graph

    There's a good example of how to do this at http://office.microsoft.com/en-us/ex...098011033.aspx
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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