11/9/2022 0 Comments Index match excelVLOOKUP is quite common nowadays, but not many know about using the INDEX-MATCH functions together. With the INDEX-MATCH functions, we can directly select the index column (i.e column AQ) where we need to get the data and select the column to be matched (i.e. If our reference table is having the key text that we want to search in column C and the data that we need to get is in column AQ, we will need to know/count how many columns are between column C and column AQ when using VLOOKUP. When we are working with large datasets where the calculation itself can take a long time due to many VLOOKUP functions, you will find that once you replace all of those formulas with INDEX-MATCH, the overall calculation will be compute faster. The INDEX-MATCH functions also have other benefits as compared to VLOOKUP: Personally I have moved away from VLOOKUP and now use INDEX-MATCH as it is capable of doing more than VLOOKUP. Note: remember the double closing bracket at the end of this function “))” and the commas between the arguments. If the exact match is not found, the formula returns #N/A. ĬarType!$B$2:$B$5 – The columns on sheet CarType with the data which we will use to match against the search text.Ġ)) – To indicate that the search text has to exactly match with the text in the matching column (i.e. MATCH( – The second part of the Excel function that we are using.ī4 – The cell that contain search text that we are using ( Car Model). In this example, the ID of each Car Model. =INDEX( – The “=” indicates the beginning of formula in the cell and INDEX is the first part of the Excel function that we are using.ĬarType!$A$2:$A$5 – the columns on sheet CarType where the data we would like to retrieve is contained. This is the full formula in our example: =INDEX(CarType!$A$2:$A$5,MATCH(B4,CarType!$B$2:$B$5,0)) However, once you have used it several times, you will learn the syntax by heart. The formula can seem to be a little bit long and intimidating at first. However, for the purpose of this article, we will only talk about the combination of the two with the aim of replicating the function of VLOOKUP. In practice, this is actually combining two Excel functions that can work individually: INDEX function and MATCH function. The good news is, INDEX-MATCH will be able to help us in achieving this. None of those conditions are met in our example. This is because with VLOOKUP, the lookup value must appear in the first column and the lookup columns have to be to the right. In other words, with this table structure, since we are trying to match it based on the Car Model, the only information that we can get is Color (Not ID as the ID column is located to the left of the Car Model column.) With this table setup, the VLOOKUP function can only work if the data that we want to retrieve is located on the column to the right of what we are trying to match ( Car Model field). Item category (Primary) and Items (Secondary).On a separate sheet called CarType, we have a simple car database with the ID, Car Model and Color. Moreover, you create dependent drop-down lists i.e. Remember the above steps are only to create an easy dynamic reference using the Excel drop-down list.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |