+ Reply to Thread
Results 1 to 10 of 10

Link the Series x & Y values to a number in a cell

  1. #1
    Forum Contributor stockgoblin42's Avatar
    Join Date
    05-26-2011
    Location
    vancouver, canada
    MS-Off Ver
    Excel 2010
    Posts
    222

    Link the Series x & Y values to a number in a cell

    Hi,

    I have a worksheet template that I put stocks on and I'd like to make the chart accept input from a cell when determining the range of the data series.

    Example:

    Stock "A"
    Series X Values:
    =fade!$L$1:$L$12

    Stock "B"
    Series X Values
    =fade!$L$1:$L$24

    I have a cell in the worksheet that tells me how old the stock is at "L10". Can I use it to vary the Series X Values of the chart?

    Series X Values
    =fade!$L$1:$L$(sheet("data").Range("L10")

    How would I do that with proper syntax?
    Last edited by stockgoblin42; 04-30-2013 at 11:10 AM.

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

    Re: Link the Series x & Y values to a number in a cell

    Search the formula for dynamic named ranges.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Link the Series x & Y values to a number in a cell

    Hi stockgoblin,

    Follow the suggestion give by Andy.
    If stuck, upload a sample workbook.. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Forum Contributor stockgoblin42's Avatar
    Join Date
    05-26-2011
    Location
    vancouver, canada
    MS-Off Ver
    Excel 2010
    Posts
    222

    Re: Link the Series x & Y values to a number in a cell

    Still looking into it. Here's the current formula:

    =SERIES("close",fade!$L$1:$L$9,fade!$J$1:$J$9,1)

    and I want $L$9 and $J$9 - the 9 to be variable from the value in L10 on sheets "data".

    I'll see if I can cut down my workbook enough to upload it.

  5. #5
    Forum Contributor stockgoblin42's Avatar
    Join Date
    05-26-2011
    Location
    vancouver, canada
    MS-Off Ver
    Excel 2010
    Posts
    222

    Re: Link the Series x & Y values to a number in a cell

    getting closer but not yet:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor stockgoblin42's Avatar
    Join Date
    05-26-2011
    Location
    vancouver, canada
    MS-Off Ver
    Excel 2010
    Posts
    222

    Re: Link the Series x & Y values to a number in a cell

    almost

    Please Login or Register  to view this content.
    maybe

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Link the Series x & Y values to a number in a cell



    can not see anything as only you have the workbook


    Regards,
    DILIPandey
    <click on below * if this helps>

  8. #8
    Forum Contributor stockgoblin42's Avatar
    Join Date
    05-26-2011
    Location
    vancouver, canada
    MS-Off Ver
    Excel 2010
    Posts
    222

    Re: Link the Series x & Y values to a number in a cell

    I tried but I'm stuck, here's the workbook...

    looking for chart series to be a dynamic named range of columns L & J.

    thanks for any help
    Attached Files Attached Files

  9. #9
    Forum Contributor stockgoblin42's Avatar
    Join Date
    05-26-2011
    Location
    vancouver, canada
    MS-Off Ver
    Excel 2010
    Posts
    222

    Re: Link the Series x & Y values to a number in a cell

    Alright! I got it! Wow, that's weird defining the ranges first and then referring to them. It'll be useful in the future I'm sure. I'm glad I learned how to do it. Still a bit convoluted but surely enjoyable for all to delight in for years to come! Ha!

  10. #10
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Link the Series x & Y values to a number in a cell

    Cheers

    It is always enjoyable to learn by hit & trial method and that too by our own


    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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