+ Reply to Thread
Results 1 to 5 of 5

Index and Match Array formula

  1. #1
    Graham Haughs
    Guest

    Index and Match Array formula

    Can someone tell me why the first array formula returns the correct
    value, and the second one returns #NUM. The array size increases so I
    don't want to limit the size as the first formula does, and thought the
    second formula would allow this. Once again I would really value some help.

    {=INDEX(A2:A87,MATCH(1,(G93=C2:C87)*(G94=B2:B87),0))}


    {=INDEX(A:A,MATCH(1,(G93=C:C)*(G94=B:B),0))}

    Kind regards,
    Graham Haughs
    Turriff
    Scotland

  2. #2
    Dave Peterson
    Guest

    Re: Index and Match Array formula

    Array formulas don't like whole columns.

    Graham Haughs wrote:
    >
    > Can someone tell me why the first array formula returns the correct
    > value, and the second one returns #NUM. The array size increases so I
    > don't want to limit the size as the first formula does, and thought the
    > second formula would allow this. Once again I would really value some help.
    >
    > {=INDEX(A2:A87,MATCH(1,(G93=C2:C87)*(G94=B2:B87),0))}
    >
    > {=INDEX(A:A,MATCH(1,(G93=C:C)*(G94=B:B),0))}
    >
    > Kind regards,
    > Graham Haughs
    > Turriff
    > Scotland


    --

    Dave Peterson

  3. #3
    Biff
    Guest

    Re: Index and Match Array formula

    >Array formulas don't like whole columns.

    Ir depends on how the formula is structured and what function is calling the
    entire column:

    =INDEX(A:A,MATCH(1,(B1:B20=100)*(C1:C20=1000),0))

    Index is using the entire column.

    =INDEX(A:A,MATCH(1,(B1:B20=MAX(B:B))*(C1:C20=MAX(C:C)),0))

    Max is using the entire column.

    Also, (although this isn't a real good example), entire columns can be used
    in nested functions within Sumproduct:

    =SUMPRODUCT(SUMIF(A:A,100,B:B))

    Biff

    "Dave Peterson" <[email protected]> wrote in message
    news:[email protected]...
    > Array formulas don't like whole columns.
    >
    > Graham Haughs wrote:
    >>
    >> Can someone tell me why the first array formula returns the correct
    >> value, and the second one returns #NUM. The array size increases so I
    >> don't want to limit the size as the first formula does, and thought the
    >> second formula would allow this. Once again I would really value some
    >> help.
    >>
    >> {=INDEX(A2:A87,MATCH(1,(G93=C2:C87)*(G94=B2:B87),0))}
    >>
    >> {=INDEX(A:A,MATCH(1,(G93=C:C)*(G94=B:B),0))}
    >>
    >> Kind regards,
    >> Graham Haughs
    >> Turriff
    >> Scotland

    >
    > --
    >
    > Dave Peterson




  4. #4
    Graham Haughs
    Guest

    Re: Index and Match Array formula


    Thanks for taking the time to explain it clearly.

    Graham

    Biff wrote:
    >>Array formulas don't like whole columns.

    >
    >
    > Ir depends on how the formula is structured and what function is calling the
    > entire column:
    >
    > =INDEX(A:A,MATCH(1,(B1:B20=100)*(C1:C20=1000),0))
    >
    > Index is using the entire column.
    >
    > =INDEX(A:A,MATCH(1,(B1:B20=MAX(B:B))*(C1:C20=MAX(C:C)),0))
    >
    > Max is using the entire column.
    >
    > Also, (although this isn't a real good example), entire columns can be used
    > in nested functions within Sumproduct:
    >
    > =SUMPRODUCT(SUMIF(A:A,100,B:B))
    >
    > Biff
    >
    > "Dave Peterson" <[email protected]> wrote in message
    > news:[email protected]...
    >
    >>Array formulas don't like whole columns.
    >>
    >>Graham Haughs wrote:
    >>
    >>>Can someone tell me why the first array formula returns the correct
    >>>value, and the second one returns #NUM. The array size increases so I
    >>>don't want to limit the size as the first formula does, and thought the
    >>>second formula would allow this. Once again I would really value some
    >>>help.
    >>>
    >>>{=INDEX(A2:A87,MATCH(1,(G93=C2:C87)*(G94=B2:B87),0))}
    >>>
    >>>{=INDEX(A:A,MATCH(1,(G93=C:C)*(G94=B:B),0))}
    >>>
    >>>Kind regards,
    >>>Graham Haughs
    >>>Turriff
    >>>Scotland

    >>
    >>--
    >>
    >>Dave Peterson

    >
    >
    >


  5. #5
    Dave Peterson
    Guest

    Re: Index and Match Array formula

    Thanks for the clarification.

    Biff wrote:
    >
    > >Array formulas don't like whole columns.

    >
    > Ir depends on how the formula is structured and what function is calling the
    > entire column:
    >
    > =INDEX(A:A,MATCH(1,(B1:B20=100)*(C1:C20=1000),0))
    >
    > Index is using the entire column.
    >
    > =INDEX(A:A,MATCH(1,(B1:B20=MAX(B:B))*(C1:C20=MAX(C:C)),0))
    >
    > Max is using the entire column.
    >
    > Also, (although this isn't a real good example), entire columns can be used
    > in nested functions within Sumproduct:
    >
    > =SUMPRODUCT(SUMIF(A:A,100,B:B))
    >
    > Biff
    >
    > "Dave Peterson" <[email protected]> wrote in message
    > news:[email protected]...
    > > Array formulas don't like whole columns.
    > >
    > > Graham Haughs wrote:
    > >>
    > >> Can someone tell me why the first array formula returns the correct
    > >> value, and the second one returns #NUM. The array size increases so I
    > >> don't want to limit the size as the first formula does, and thought the
    > >> second formula would allow this. Once again I would really value some
    > >> help.
    > >>
    > >> {=INDEX(A2:A87,MATCH(1,(G93=C2:C87)*(G94=B2:B87),0))}
    > >>
    > >> {=INDEX(A:A,MATCH(1,(G93=C:C)*(G94=B:B),0))}
    > >>
    > >> Kind regards,
    > >> Graham Haughs
    > >> Turriff
    > >> Scotland

    > >
    > > --
    > >
    > > Dave Peterson


    --

    Dave Peterson

+ 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