+ Reply to Thread
Results 1 to 4 of 4

index match with array formula drag down problem

  1. #1
    Registered User
    Join Date
    04-02-2014
    Location
    Brasil
    MS-Off Ver
    Excel 20010
    Posts
    24

    Question index match with array formula drag down problem

    Hi
    I used a formula to index match( like a vlookup) and then I drag down because I want the next lines from the other sheet


    { INDEX('PBR2'!$T:$AC,MATCH($X$2&$Z$2,'PBR2'!$A$1:$A$200&'PBR2'!$S$1:$S$200,0)+ROW(),4) } ( array formula)

    I use the +ROW() so I can drag down to take the next values, but will bring wrong values because the MATCH will not be verified for each line.


    How do I bring the next value ( drag down) and make sure that the MATCH will be checked again.


    B cat
    A House
    A Car
    A Radio
    B House

    ( A will not be repeated again, the stay together all times in the sheet)


    The A will be checked but only in the first value, after that since I put +row(), I will loose the check


    Result today


    House
    Car
    Radio
    House


    Desired result

    House
    Car
    Radio
    Error/Empty
    Last edited by alcalina; 03-23-2016 at 03:52 PM. Reason: solved

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: index match with array formula drag down problem

    Enter formula in C2 and copy down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    v A B C
    1
    2 B cat House
    3 A House Car
    4 A Car Radio
    5 A Radio
    6 B House
    Last edited by AlKey; 03-23-2016 at 11:42 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    04-02-2014
    Location
    Brasil
    MS-Off Ver
    Excel 20010
    Posts
    24

    Re: index match with array formula drag down problem

    Sir, I have no words to thank you.
    Your solution is very elegant
    With your example I was able to put on my excel sheet

    Please Login or Register  to view this content.
    Now I want to learn a little more about this new function "agregate" I never used.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: index match with array formula drag down problem

    Here's another one.

    Data Range
    A
    B
    C
    D
    E
    1
    2
    B
    cat
    A
    House
    3
    A
    House
    Car
    4
    A
    Car
    Radio
    5
    A
    Radio
    6
    B
    House
    7
    ------
    ------
    ------
    ------
    ------


    This array formula** entered in E2:

    =IFERROR(INDEX(B:B,SMALL(IF(A$2:A$6=D$2,ROW(A$2:A$6)),ROWS(E$2:E2))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Array index, match problem
    By Duke Carey in forum Excel Formulas & Functions
    Replies: 162
    Last Post: 09-06-2005, 07:05 PM
  2. Array index, match problem
    By RAP in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  3. [SOLVED] Array index, match problem
    By RAP in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. Array index, match problem
    By Duke Carey in forum Excel Formulas & Functions
    Replies: 81
    Last Post: 09-06-2005, 09:05 AM
  5. [SOLVED] Array index, match problem
    By RAP in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. [SOLVED] Array index, match problem
    By RAP in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. Array index, match problem
    By RAP in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. Array index, match problem
    By RAP in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 08-21-2005, 03:05 PM

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