+ Reply to Thread
Results 1 to 8 of 8

Trouble with defined named range

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Trouble with defined named range

    Hi

    I am trying to create a zoom and scroll chart and trying to follow the instructions below I cannot create a named range called =OFFSET(C2, 0, 0, $D$1, 0). I suspect it is because you cannot create a named range that uses a Function name. If this is the case, what would the writer have meant?

    Create a Dynamic Named Range
    Step 1
    Repeat Step 2 from "Create a Variable Data Range" to find a new range the same size as the two previous ones. A range containing cells D2 to D802 is the same size as the example's previous two ranges.
    Step 2
    Select all the cells in this new range.
    Step 3
    Click "Formulas" in the program's ribbon. Click "Define Name" in the Defined Names group to open the New Name dialog box.
    Step 4
    Type the following formula into the text box labeled "Name": =OFFSET(A1, 0, 0, $D$1, 0)

    Step 5
    Replace "A1" in the formula with the first cell from the second range. With this example, change the formula to: =OFFSET(C2, 0, 0, $D$1, 0)
    Step 6
    Replace "$D$1" with the address of a new blank cell. Later, the zoom bar will change this cell's value. For example, to choose cell F10 for this purpose, change the formula to: =OFFSET(C2, 0, 0, $F$10, 0)
    Step 7
    Last edited by BRISBANEBOB; 11-17-2012 at 07:34 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Cannot create name in Defined Name

    i should think that
    =OFFSET(A1, 0, 0, $D$1, 0) goes in the refers to box
    having said that
    where does this instruction come from,what's the url. it maybe you've missed a previous step/instruction
    ah is it this?
    http://smallbusiness.chron.com/add-z...art-41823.html
    Last edited by martindwilson; 11-17-2012 at 06:40 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: Cannot create name in Defined Name

    Thanks for the response. I suspect this now should be in the Charting forum.

    That is the site and I've attached the file I am trying to create.

    Any help much appreciated
    Attached Files Attached Files

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Trouble with defined named range

    I see nothing as to instructions within this file. What are you trying to do?
    HTH
    Regards, Jeff

  5. #5
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: Trouble with defined named range

    This part:

    Create a Dynamic Named Range
    Step 1
    Repeat Step 2 from "Create a Variable Data Range" to find a new range the same size as the two previous ones. A range containing cells D2 to D802 is the same size as the example's previous two ranges.
    Step 2
    Select all the cells in this new range.
    Step 3
    Click "Formulas" in the program's ribbon. Click "Define Name" in the Defined Names group to open the New Name dialog box.
    Step 4
    Type the following formula into the text box labeled "Name": =OFFSET(A1, 0, 0, $D$1, 0)
    Step 5
    Replace "A1" in the formula with the first cell from the second range. With this example, change the formula to: =OFFSET(C2, 0, 0, $D$1, 0)
    Step 6
    Replace "$D$1" with the address of a new blank cell. Later, the zoom bar will change this cell's value. For example, to choose cell F10 for this purpose, change the formula to: =OFFSET(C2, 0, 0, $F$10, 0)
    Step 7

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Trouble with defined named range

    jb see link in post #2

  7. #7
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: Trouble with defined named range

    Hi JB

    Thanks - I am proceeding on that basis.

    Just to confirm, the instructions to insert the =OFFSET(etc. in the Name box is incorrect? You can't do it because you are trying to use a function code Excel reserves for itself?

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Trouble with defined named range

    Yes, that is right as Martin pointed out in post #2 (by the way, not crazy about that website and there instructions).

    You may find this interesting.
    Last edited by jeffreybrown; 11-17-2012 at 07:41 PM.

+ 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