+ Reply to Thread
Results 1 to 5 of 5

What happens when I refer to a named range?

  1. #1
    Registered User
    Join Date
    04-13-2012
    Location
    Iowa
    MS-Off Ver
    Excel 2003
    Posts
    26

    What happens when I refer to a named range?

    I’m confused by what happens when I refer to a named range.
    For example, I entered four integers as follows:
    A1=1, A2=2, A3=3, A4=4,
    then defined a named range “xrange” as these four cells - A1, A2, A3, A4.

    Then if type “=xrange” into cell B2 and press enter, then the displayed result is 2.
    But if I type “=xrange” into cell B2, and then press Ctrl-Shift-Enter (for an array formula), then the displayed result is 1.

    Why does this difference exist, and how is the processing different in this situation for an array formula as opposed to a non-array formula? (I’m using Excel 2003)

    ( I encountered this problem as I was working on a complex array formula, then realized I wasn’t sure what was happening in the background array processing.)

    Thanks in advance for any explanation.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: What happens when I refer to a named range?

    When you enter =xrange in B2 and confirm normally using Enter, there is an "implied intersection" -- the formula gets the value of the array that is in the same row.

    If the array were in A1:D1, you would get the value in same column.

    If you selected four cells in a column (starting in any row) and array-entered the formula, you would see all four values.

    You could create two such ranges, one as a row header and one as a column header, and create a multiplication table in the body: =xrange*yrange

    It's one of those things in Excel that just 'works', and it isn't until you look closely that you see how clever it is.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    04-13-2012
    Location
    Iowa
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: What happens when I refer to a named range?

    Thanks, SHG, your response is very helpful, and I understand the situation better, I think. Now a followup question: is there any way to specify that an array formula should work on only one (or the first) value of an array for debugging purposes? I was having trouble with a complicated array formula, so I was trying to use it on just one array value to see if the calculation was correct, but then I ran into the problem of how to specify just one value in an array that is already defined with a named range. If you have suggestions on that, I would appreciate it. Thanks again.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: What happens when I refer to a named range?

    Then answer is probably specific to the formula, but perhaps replace the array reference with a single cell reference.

  5. #5
    Registered User
    Join Date
    04-13-2012
    Location
    Iowa
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: What happens when I refer to a named range?

    OK, thanks !

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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