+ Reply to Thread
Results 1 to 11 of 11

Index / MAtch + go to next

  1. #1
    Forum Contributor
    Join Date
    10-28-2010
    Location
    quebec, canada
    MS-Off Ver
    o365
    Posts
    187

    Index / MAtch + go to next

    Hi everyone,

    The index match formula mechanic is just something i don't get, no matter what i tried i don't quite grasp it...

    Here is what i need.

    Formula located in B17

    needs to match 2 criteria
    criteria to search is in B4, and second in B5

    Criteria B4 search array is on sheet "dumpfix" Column A:A
    Criteria B5 search array is on sheet "dumpfix" Column D:D

    If a match is found, i want to return the value in "dumpfix" F:F in my B17 formula.

    So far so good.
    There are multiple occurence... so in B17, i want occurence 1 ... then i need the formula to continue searching, and input next result in B18 ... and so on until all of them are found.

    Anyone can help?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,430

    Re: Index / MAtch + go to next

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    10-28-2010
    Location
    quebec, canada
    MS-Off Ver
    o365
    Posts
    187

    Re: Index / MAtch + go to next

    I'll see what i can do, it is very sensible data, and there are over 10k rows, so i dont know how i can "falsify" the info and be truly representative at same time. Can we just give it a try without?.. If it doesnt work, i'll build something from scratch and change all the data.

  4. #4
    Registered User
    Join Date
    01-19-2017
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    92

    Re: Index / MAtch + go to next

    Although, I can attempt to explain what it does...I fear I would not be able to. However, I think this website explains it pretty thoroughly.

    http://www.mbaexcel.com/excel/how-to...x-match-match/

    If that violates any forum rules (I'm unsure if it does), I'll remove or a mod can delete/edit this post.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,528

    Re: Index / MAtch + go to next

    Try this in B17

    =IFERROR(INDEX(Dumpfix!$F$2:$F$100,SMALL(IF((Dumpfix!$A$2:$A$100=$B$4)*(Dumpfix!$D$2:$D$100=$B$5),ROW(Dumpfix!$F$2:$F$100)-ROW($F$2)+1,""),ROWS($F$2:F2))),"")



    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Copy down


    You may need to change ranges to suit your data (above assumes data starts in row 2)

  6. #6
    Forum Contributor
    Join Date
    10-28-2010
    Location
    quebec, canada
    MS-Off Ver
    o365
    Posts
    187

    Re: Index / MAtch + go to next

    Thanks john !
    That works A1 !!!

    Can i crank the difficulty up?
    Now that i have my result in B17 + ... in C17 +, i need the exact same Formula, and add a criteria which is my result of B17, and if it matches all the 3 (the 2 existing plus the previous results of your formula), to return dumpfix E:E ... I dont think i need to +1 the row as it can triple verify b4,b5 and now b17, and the result is unique.

    Basically, the first critera is a name
    The second is a date
    The result is a status

    So now that i got the status (thanks to you) i want the name, the date, and the status, and in E:E is the time which i want as a result
    Last edited by xatomicx; 05-11-2017 at 11:10 AM.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,528

    Re: Index / MAtch + go to next

    Don't understand your requirement re C17.

    i need the exact same Formula, and add a criteria which is my result of B17, and if it matches all the 3 (the 2 existing plus the previous results of your formula), to return dumpfix E:E
    with the existing criteria this will returnn column E

    =IFERROR(INDEX(Dumpfix!$E$2:$E$100,SMALL(IF((Dumpfix!$A$2:$A$100=$B$4)*(Dumpfix!$D$2:$D$100=$B$5),ROW(Dumpfix!$F$2:$F$100)-ROW($F$2)+1,""),ROWS($F$2:F2))),"")

    What is the additional criteria and what is it matching?

  8. #8
    Forum Contributor
    Join Date
    10-28-2010
    Location
    quebec, canada
    MS-Off Ver
    o365
    Posts
    187

    Re: Index / MAtch + go to next

    The additional criteria is in B17, and the array is in dumpfix e:e

    And we can remove the +row, as criteria 1-2-3 will bring a unique value, and we dont need to scroll them down.

    The formula will be place in C17

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,528

    Re: Index / MAtch + go to next

    still confused: if we are comparing b17 with E:E, what range are we returning ?

    =IFERROR(INDEX(Dumpfix!??????,SMALL(IF((Dumpfix!$A$2:$A$100=$B$4)*(Dumpfix!$D$2:$D$100=$B$5)*(Dumpfix!$E$2:$E$100=$B$17),ROW(Dumpfix!$F$2:$F$100)-ROW($F$2)+1,""),ROWS($F$2:F2))),"")

  10. #10
    Forum Contributor
    Join Date
    10-28-2010
    Location
    quebec, canada
    MS-Off Ver
    o365
    Posts
    187

    Re: Index / MAtch + go to next

    Ill go from scratch

    Yeah sorry, i'm confused myself.. lets just go from scratch.

    Criteria that need to match:
    B4, array to search "dumpfix" A:A
    B5, array to search "dumpfix" D:D
    B17, array to search "dumpfix" B:B

    If all the criteria match return value in E:E

    The formula is in C17

    I dont need to go to the next row and do the checkup again, as its a unique value, not multiple.

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,528

    Re: Index / MAtch + go to next

    Try

    =IFERROR(INDEX(Dumpfix!e2:e100,SMALL(IF((Dumpfix!$A$2:$A$100=$B$4)*(Dumpfix!$D$2:$D$100=$B$5)*(Dumpfix!$B$2:$B$100=$B$17),ROW(Dumpfix!$F$2:$F$100)-ROW($F$2)+1,""),ROWS($F$2:F2))),"")

    OR

    try

    =IFERROR(INDEX(Dumpfix!e2:e100,MATCH($B$17,Dumpfix!$B$2:$B$100,0))

+ 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] INDEX+MATCH instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  2. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  3. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  4. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 AM

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