Results 1 to 2 of 2

SUM of INDEX as array formula

Threaded View

  1. #1
    Registered User
    Join Date
    05-17-2007
    Posts
    3

    SUM of INDEX as array formula

    Hi all,

    I am trying to use the following array formula:

    {=SUM(INDEX(range,{1,2},1))}

    It does not work. The range just returns the sum of the first cell returned by the index, ie SUM(INDEX(range,1,1)).


    Let me explain what I want to do: I have a certain range from which I want to extract two numbers and then take the sum of them. These numbers are the ones in position {1,1} and {2,1} of the range in question.

    When I write the inner formula into two adjacent cells as an array formula, ie, {=INDEX(range,{1,2},1)} in cells A1 and B1, the cells return the numbers I want to extract from the range:
    * the first cell contains the result of INDEX(range,1,1)
    * the second one contains the result of INDEX(range,2,1).

    I can then obviously make a sum over the two cells to get the result I want.

    But when I combine the SUM and the INDEX over an array, the formula fails...

    Any idea why?

    Many thanks,

    Chris
    Last edited by VBA Noob; 05-21-2008 at 12:47 PM.

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