+ Reply to Thread
Results 1 to 5 of 5

Using cell references to construct data ranges in chart data selection

  1. #1
    Registered User
    Join Date
    02-13-2016
    Location
    Fort Worth, Texas
    MS-Off Ver
    2013
    Posts
    2

    Unhappy Using cell references to construct data ranges in chart data selection

    I have a workbook with one large data sheet and several graphs. The data is updated frequently by adding rows and this requires manually changing the selected data in each chart data selection window. For example, the Chart Data is specified as
    =Data!$C$1:$C$56,Data!$M$1:$O$56.
    I want to have cells in the Data sheet that let me specify the values for the rows (1 and 56 in the example) to be displayed on the charts. This would allow faster updates but also allow "zooming" on sections of data.
    When I try using any formulas in the Select Data window, I get a variety of messages that don't make sense, leading me to believe it simply cannot be done. Any thoughts?

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Using cell references to construct data ranges in chart data selection

    Hi
    I supose you can use INDIRECT
    =INDIRECT("Data!$C$1:$C$"&X1),INDIRECT("Data!$M$1:$O$"&X1)
    where X1=56

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Using cell references to construct data ranges in chart data selection

    Hi rmalliston,

    This sounds like a Dynamic Named Range problem/answer. If you let a Dynamic Named Range define where you data comes from and base your graph on that name instead of a fixed range, it could be your answer. See:
    http://www.bettersolutions.com/excel...G820716330.htm or
    http://www.contextures.com/xlNames01.html
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Using cell references to construct data ranges in chart data selection

    If you can have your source data in a table, all you have to do is to name the table as the data source for the charts. As you add data, the data ranges for the charts change automatically.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Registered User
    Join Date
    02-13-2016
    Location
    Fort Worth, Texas
    MS-Off Ver
    2013
    Posts
    2

    Re: Using cell references to construct data ranges in chart data selection

    Thanks. I tried something similar before posting. Your suggestion made me realize I had made a syntax error, but when I try your suggestion as you gave it, if tet a window telling me "the function is not valid". I seem not to be able to use any functions in the data select window

+ 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. Choose Chart Ranges Based On Cell Data
    By JAKEFULLER in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-08-2016, 01:22 PM
  2. Update Data selection for chart based off a referenced cell
    By mcini in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-29-2014, 05:02 PM
  3. [SOLVED] Can I make the data ranges displayed in a chart vary depending on my no. of data points
    By David Myers in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-06-2014, 02:16 PM
  4. Can only select X or Y data in chart data selection
    By Chavez25 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-10-2013, 09:41 PM
  5. Copy Chart and Data Down With Relative References
    By splendidus in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-06-2013, 10:33 AM
  6. Add multiple named ranges in data validation for selection
    By jeffreybrown in forum Excel General
    Replies: 5
    Last Post: 01-21-2012, 11:49 AM
  7. Use Relative Cell References for Chart Data Range
    By stargirl5000 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-28-2008, 05:41 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