+ Reply to Thread
Results 1 to 7 of 7

excel chart with dynamic range referencing to a table

  1. #1
    Registered User
    Join Date
    12-24-2018
    Location
    brazil
    MS-Off Ver
    2013
    Posts
    2

    excel chart with dynamic range referencing to a table

    I need to make a chart work with dynamic reference using a selector in cell A1 but referencing to a named table in another sheet as the data source.

    The dynamic reference will use named tables table1, table2, table3, etc...

    I have tried to use indirect formula in the chart data range to accomplish this but it gives me an error.

    current Chart data range: ='sheet 1'!$A$1

    Desired data range: =indirect("table1 &"[data]"")

    Any ideas to get it right ?

    Many thanks

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: excel chart with dynamic range referencing to a table

    You can create a named range using INDIRECT, then refer to the name in the chart series formula.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    12-24-2018
    Location
    brazil
    MS-Off Ver
    2013
    Posts
    2

    Re: excel chart with dynamic range referencing to a table

    Hi, I tried but ir didn't work ,=indirect("table1 &"[data]"") gives me an error when I use it in th data range.

    - cybersource
    Last edited by cybersource; 12-26-2018 at 07:10 AM.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: excel chart with dynamic range referencing to a table

    That INDIRECT formula doesn't make sense to me. Please see attached example. Use the yellow cell I1 to select which table you want to include in your chart. See the named range DataForChart that uses INDIRECT to select the range based on I1.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-07-2014
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: excel chart with dynamic range referencing to a table

    Hi 6StringJazzer.

    Is it not possible to enter the indirect or offset formula directly into the Chart range input box? I have a number of different charts with multiple data series and to create named ranges for each series will be extremely tedious.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: excel chart with dynamic range referencing to a table

    Quote Originally Posted by kemit View Post
    Is it not possible to enter the indirect or offset formula directly into the Chart range input box? I have a number of different charts with multiple data series and to create named ranges for each series will be extremely tedious.
    I don't think so but I haven't tried it. I don't believe you can use functions there, but give it a try and let us know what you find out.

  7. #7
    Registered User
    Join Date
    01-07-2014
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: excel chart with dynamic range referencing to a table

    I have tried, to no luck though. Please show me the syntax of entering the dynamic range name into the series input box. I just don't seem to get it right.

    ='sheetname'!dynamicrangename does not want to work.

+ 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] Dynamic Chart Type when Using a Multiple Consolidated Range Pivot Table
    By HangMan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-17-2015, 04:59 AM
  2. [SOLVED] Create a Dynamic Chart from an Excel Table
    By Elīna in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 07-29-2013, 12:45 PM
  3. Dynamic Range Column Chart w/ Dynamic Avg Line (Excel 2007)
    By BrokenBiker in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-04-2012, 11:40 AM
  4. Dynamic End range for excel chart
    By Swetha_N in forum Excel General
    Replies: 0
    Last Post: 09-26-2012, 08:52 AM
  5. Replies: 4
    Last Post: 06-25-2012, 03:25 PM
  6. Dynamic Cell referencing in range function for vba in excel
    By karunakaranindia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-23-2010, 01:30 AM
  7. dynamic range for excel chart
    By bobf in forum Excel General
    Replies: 1
    Last Post: 01-26-2005, 08:06 AM

Tags for this Thread

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