+ Reply to Thread
Results 1 to 4 of 4

Add formula within reference to a cell "A(x+y)"

  1. #1
    Registered User
    Join Date
    09-17-2009
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2013
    Posts
    13

    Add formula within reference to a cell "A(x+y)"

    I'm building a worksheet with a diagram, and I want the users to be able to choose scale of the x-axis.

    Within the diagram, the data refers to a range, let's say =$A$1:$A$10.

    I want to do soemthing like =$A$1:$A$(1+B1), where B1 is a cell where the user chooses scale.

    I can't refer to a cell like above, so now I'm wondering how to do it? I guess and hope there is an easy explanation, like use =$A$1:[$A$(1+B1)], but I haven't found out yet.

    Thanks in advance!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Add formula within reference to a cell "A(x+y)"

    Create a dynamic named range and use that to populate your graph.

    See attached. Adapt accordingly.
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    09-17-2009
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Add formula within reference to a cell "A(x+y)"

    Quote Originally Posted by Ace_XL View Post
    Create a dynamic named range and use that to populate your graph.

    See attached. Adapt accordingly.
    I don't get it..! Where have you refered to the B1 cell?

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Add formula within reference to a cell "A(x+y)"

    There is a dynamic named range ("a") that I have created defined as

    =OFFSET(Sheet1!$A$1,,,Sheet1!$B$1+1)

    thsi populates teh graph.

    Check here for info on named ranges
    http://support.microsoft.com/kb/830287

+ 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