+ Reply to Thread
Results 1 to 4 of 4

Chart with dynamic CSV data source

  1. #1
    Registered User
    Join Date
    07-19-2006
    Posts
    5

    Chart with dynamic CSV data source

    Hello,

    We have a reporting engine which generates an Excel file which contains CSV data on the first sheet. We would like to build an Excel chart on the second sheet which uses data from the first sheet. The hard requirement is that the chart should use all data available on the first sheet. In other words, if we programmatically add more data to the first sheet then the chart data source should automatically include the data without having the user change the data source range manually.

    The solution can use Excel 2003, 2007 or 2010.

    Maybe there is a way to define the chart's data source as a query over the first sheet?

    Thanks!

    Alec

  2. #2
    Forum Contributor
    Join Date
    09-13-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    216

    Re: Chart with dynamic CSV data source

    Hi AlecSwan,

    You can use named ranges with an offset formula to create your dynamic chart. This should allow you to chart ranges on one sheet to another. The offset formula can be set to count the values on the first sheet and graph the dynamic chart range.

    Here is a tutorial:

    http://www.exceldashboardtemplates.com/?p=688

    Good luck!

    Steve=True

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

    Re: Chart with dynamic CSV data source

    My approach has been to select a larger range for the chart series than I ever expect to see from the CSV file. The unused "blank" cells are ignored by the chart.

  4. #4
    Registered User
    Join Date
    07-19-2006
    Posts
    5

    Re: Chart with dynamic CSV data source

    I was able to build a dynamic range and chart thanks to a great reference by Steve=True.

    I defined dynamic range as =OFFSET($B:$B,1,,COUNT($B:$B),). However, when I convert this range to Table (Excel 2007 feature) the table boundaries are hardcoded and no longer dynamic. How can I define a dynamic table over a dynamic range?

    Thanks,

    Alec

+ 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