+ Reply to Thread
Results 1 to 5 of 5

What is row 0 of an array? [INDEX and MATCH with multiple criteria]

  1. #1
    Registered User
    Join Date
    04-07-2019
    Location
    Hanoi, Vietnam
    MS-Off Ver
    16001.11425.20056.0
    Posts
    13

    What is row 0 of an array? [INDEX and MATCH with multiple criteria]

    Hello,
    I'm trying to use Excel to compare two columns in a table, table 1, with two other column from another table, table 2, in a sheet. If the values match then copy the value in a cell of the same row of another column of table 2 into table 1. In other word, Im trying to copy value of a 3rd column from this table into another table if the values in 2 groups of two different columns in 2 table match. Sorry for my bad English. I come up with a solution named "INDEX and MATCH with multiple criteria" from ExcelJet.net at this address:
    [http-colon-slash-slash]exceljet[dot]net/formula/index-and-match-with-multiple-criteria
    The solution worked for me but there is one thing I don't understand. Its row 0 of an array.
    To illustrate the situation, I have made this table. Suppose I have 3 columns in the table 1 named title, year and imdb respectively and 3 columns named title 2, year 2, imdb 2 respectively in table 2. Imdb 2 column in table 2 is filled with something like the imdb info links of the movies with title and released year in the title 2, year 2 columns of the same table. Now table 1 also contains something similar like table 2 with title and released year of the movies but not the imdb link. The content of the two table is out of order and similar but not the same. I want to check the title and released year of the movies in table 1 with the title and released year of movies in table 2. If there is a match then copy the imdb info link of the movie from table 2 to table 1.
    My table is look like this.
    index-match-multiple-criteria.jpg
    [A] [B] [C] [D] [E] [F]
    [title][year][imdb][title 2][year 2][imdb 2]
    [a2][b2][c2][d2][e2][f2]
    [a3][b3][c3][d3][e3][f3]
    ...................
    Column A, B, C contain the thing for table 1. Column D, E, F contain the thing for table 2. I want to copy the thing from column F to column C if the cells in column D, E matched with the thing in column A, B. I have this formula to put into the cellss in column C:
    =INDEX($D$2:$F$14,MATCH(1,INDEX((A2=$D$2:$D$14)*(B2=$E$2:$E$14),0,0),0),3)
    This formula is taken from the general formula on the Excel Jet website like:
    =INDEX(range1,MATCH(1,INDEX((A1=range2)*(B1=range3),0,1),0))
    But there one thing I didn't understand. What is row 0 in the formula INDEX((A1=range2)*(B1=range3),0,1). Why isn't it be row 1 or something. Yes, ofcourse for row 1 column 1 it didn't work but I have checked it with row 0, column 0 and it worked like row 0, column 1 in the formula, but I don't understand. Can anyone please explain a bit? This is the text got from ExcelJet:
    Non-array version
    It is possible to add another INDEX to this formula, avoiding the need to enter as an array formula with control + shift + enter:

    Please Login or Register  to view this content.
    The INDEX function can handle arrays natively, so the second INDEX is added only to "catch" the array created with the boolean logic operation and return the same array again to MATCH. To do this, INDEX is configured with zero rows and one column. The zero row trick causes INDEX to return column 1 from the array (which is already one column anyway).
    excel-jet-index-match.jpg

    Thank you in advance.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: What is row 0 of an array? [INDEX and MATCH with multiple criteria]

    In index function Index(range, 0, 0) means return all rows and columns. But unless INDEX is nested within another function, it will evaluate to first available value (meaning top left value).

    Index(range, 0, 1) will mean return all rows for column 1.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    04-07-2019
    Location
    Hanoi, Vietnam
    MS-Off Ver
    16001.11425.20056.0
    Posts
    13
    Quote Originally Posted by CK76 View Post
    In index function Index(range, 0, 0) means return all rows and columns. But unless INDEX is nested within another function, it will evaluate to first available value (meaning top left value).

    Index(range, 0, 1) will mean return all rows for column 1.
    OK, thanks. But can you tell me a bit about how you get those information, about row 0, 0. I want to learn more and hope to know how or where to get a start. Thank you very much.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: What is row 0 of an array? [INDEX and MATCH with multiple criteria]

    Hi,

    Perhaps the explanations at one or more of the following will be of use to you:

    http://www.excelhero.com/blog/2011/0...ing-index.html

    https://excelxor.com/2014/08/18/inde...e-rowscolumns/

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Registered User
    Join Date
    04-07-2019
    Location
    Hanoi, Vietnam
    MS-Off Ver
    16001.11425.20056.0
    Posts
    13

    Re: What is row 0 of an array? [INDEX and MATCH with multiple criteria]

    Quote Originally Posted by XOR LX View Post
    Hi,

    Perhaps the explanations at one or more of the following will be of use to you:

    Please Login or Register  to view this content.
    Regards
    Oh, ok. Thank you.
    Last edited by mytabletmylife; 05-09-2019 at 01:50 PM.

+ 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 ARRAY with multiple criteria
    By StoneQuill in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-17-2019, 01:34 PM
  2. Replies: 6
    Last Post: 12-13-2017, 10:08 AM
  3. [SOLVED] Is an array required for index-match with multiple criteria?
    By trolle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-03-2017, 05:29 AM
  4. Perform Logical Equivilent of Index Match Array look up with multiple criteria in VBA
    By MichaelDoughertyJr in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-28-2016, 04:03 PM
  5. Need an array possibly INDEX/MATCH formula with multiple lookup criteria.
    By TheClaw2323 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2015, 09:59 AM
  6. Index Match Array Multiple Criteria
    By Keelin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-23-2014, 02:48 AM
  7. LOOKUP with Multiple Criteria (ARRAY INDEX and MATCH)
    By snowktt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2014, 02:24 AM

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