+ Reply to Thread
Results 1 to 7 of 7

Change source data of chart by adjusting two cell values

Hybrid View

kadekl Change source data of chart... 10-18-2012, 06:13 AM
Pete_UK Re: Change source data of... 10-18-2012, 06:17 AM
Andy Pope Re: Change source data of... 10-18-2012, 07:37 AM
kadekl Re: Change source data of... 10-18-2012, 08:21 AM
Pete_UK Re: Change source data of... 10-18-2012, 09:35 AM
Andy Pope Re: Change source data of... 10-19-2012, 05:01 AM
kadekl Re: Change source data of... 10-19-2012, 05:54 AM
  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    3

    Change source data of chart by adjusting two cell values

    Hi evryone,

    I couldn't find any help on this topic up to now.

    I have to cells which contain the staring and end point (row number) based on which in other cells an adress is created. e.g:

    Cell_A = 10
    Cell_B = 20
    Cell_C = Sheet!$A$10:$A$20

    How can I reference the data of the chart to Cell_C? Is there any way to do so? I always get the message UNallowed reference or similar (mine is in German).

    Thanks in advance for any help!

    Cheers,

    Lukas

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Change source data of chart by adjusting two cell values

    Use:

    =INDIRECT(Cell_C)

    to get Excel to reference the data.

    Hope this helps.

    Pete

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Change source data of chart by adjusting two cell values

    To base a chart on a range reference you will need to create a named range.

    CHTDATA: =INDEX(Sheet1!$A:$A,Sheet1!$A$1):INDEX(Sheet1!$A:$A,Sheet1!$B$1)

    Assuming A1 contains the starting point and B1 the end point.

    The formula in C1 is not required.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    10-18-2012
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Change source data of chart by adjusting two cell values

    Thanks for the fast help,

    but neither seems to work. If I put either of the proposed options in the Y.values slot, it directs me to the correct part of data on the correspondig sheet. But as soon as I press Enter to accept, it keeps giving me the error message

    Any advice?

    PS: It should be an xy scatter plot with two measurements in each diagram with corresponding x and y values.

    P1.jpg
    Last edited by kadekl; 10-18-2012 at 08:34 AM. Reason: addition

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Change source data of chart by adjusting two cell values

    A picture is not much use - post a sample workbook.

    Pete

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Change source data of chart by adjusting two cell values

    You can not use formula directly in the series data dialog.
    You need to define named ranges and then reference the named ranges.

    See revised example for xy-scatter
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-18-2012
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Change source data of chart by adjusting two cell values

    Here is a sample file:

    based on the values in Cells E2 and E3 an adress is generated and should update the data in the diagram.

    Cheers,

    Lukas

    Forum-Test.xlsx

+ 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