Look up data in Excel tables: Replace VLOOKUP with INDEX and MATCH
Quick lookup of data in Excel tables: Replace VLOOKUP with INDEX and MATCH. Do you know yet? Let's TipsMake.com find out in this article offline!
- How to print a selection in Microsoft Excel
- Instructions on how to set a password to protect the Excel file safely
- Instructions for creating interactive charts in Excel with INDEX function
Are you still using Vlookup function in Excel to find everything in a spreadsheet or range by row? This is how the INDEX function and MATCH function can give you a better solution.
Excel spreadsheets are a great way to synthesize and organize a large amount of information. However, scanning that data to find personal records can quickly consume your time. Fortunately, there are many ways to speed up that process.
VLOOKUP is currently the approach of many users when it comes to this type of work. It is fast and relatively simple, but not as powerful as other alternatives. Using the INDEX function and MATCH function, users can avoid some silly mistakes that often arise when using the VLOOKUP function. In addition, if you are dealing with a particularly large spreadsheet, you will find that your search operations are done much faster.
Here's a good reason why you should learn how to use the INDEX and MATCH functions , not just stick with VLOOKUP.
How to use Vlookup function
First, we'll briefly discuss how the VLOOKUP function works. Below is a table named 'Stock - source', ID number and prices of different items of clothing.
When I enter the Stock ID card into cell C10 , cell C11 will automatically update the corresponding price. This is because it checks the string in cell C10 for the cells in the specified range, A1: C8 . Number 3 in the formula tells Excel we are looking for a box in the third column, because we are looking for "Price - Price". Finally, adding FALSE ensures that our formula will return only the exact same values, not the approximate results.
This method works well, but it is not ideal if you are planning to edit the spreadsheet the next day. For example, if we add a new column to the spreadsheet, we run the risk of breaking the formula because the price column is no longer the third column from the left.
By using a different method, we can eliminate the need to count how many Stock ID and Price separation columns are, eliminating some potential user errors . This process is also much more efficient in terms of processing power, which can speed up if you are working with huge data sets.
How to use the INDEX function and MATCH function
We can avoid the annoying mistakes that VLOOKUP can cause by using the INDEX function and MATCH function . This is a bit more complicated method, but it's really not too difficult to grasp when we divide the process into its components.
We will use the INDEX function to specify a specific set of cells, then we will use the MATCH function to find the right cell in that group.
How to use INDEX function in Excel
Here is a simple way to implement the INDEX function function.
As you can see, we have specified the range of cells containing the price for each item, C2: C8 . In this case, we know that the cell we're looking for is in the seventh row or less. However, we can replace this information with a MATCH function, which allows searching a special cell by entering the Stock ID in cell C10 .
How to use the Match function in Excel
This is how we use the MATCH function in the spreadsheet.
The MATCH function allows us to specify a string to look for, in this case anything inside the cell C10 . We then describe a range to search and add a zero at the end to determine that we only want to find the correct answers. This returns the position of the cell, where the cell C12 is located , telling us that the Stock ID matches the string BE99 in the fourth cell down, ie A5.
How to combine the INDEX function and MATCH function
In order for the INDEX and MATCH functions to work simultaneously, we only need to give our row reference from the INDEX function formula with the MATCH function formula.
As you can see, building our recipe is really not that complicated . It is only a matter of organizing the MATCH function inside the INDEX function and making sure that both elements are attached to the correct cells and ranges. Currently, our spreadsheet is set up in this way, we can change the way it is set without violating the formula.
It may take longer to implement the INDEX function and MATCH function than using VLOOKUP, but the results we will have a more flexible document with fewer errors . If your spreadsheet relies on some lookup functions, you can save yourself some trouble later by removing the VLOOKUP function and learning how to use the INDEX and MATCH functions properly.
Not easy is always the best!
Excel is a very complex software and deep understanding of functions is often quite "scary". One thing to talk about to solve simple problems, often a more complex method can bring great benefits in the long run.
There is nothing wrong with using VLOOKUP to do this. However, the INDEX function and the MATCH function reduce the user's error impact and do not require further editing when you make structural changes to your spreadsheet . Using them in a harmony state is just a little more advanced than performing VLOOKUP functions, but it gives users some great advantages.
The more useful Excel becomes, the more you learn about it, so it's always beneficial to learn a new approach and understand new functions.Do not overslept on victory! Take the time to expand your knowledge.
Are you struggling to implement the INDEX and MATCH functions into your spreadsheet? Or do you have a good tip on how to make the most of these functions to share?Either way, why don't you join the conversation in our comment section below?
Refer to some related articles:
- How to create tables, insert tables in Excel
- How to reopen Word, Excel or PowerPoint files when closed but not saved yet?
- Use VLOOKUP to join two Excel tables together
Having fun!
You should read it
- How to fix the SUM function doesn't add up in Excel
- Basic Excel functions that anyone must know
- How to use Hlookup function on Excel
- How to use Excel's VALUE function
- How to combine Index and Match functions in Excel
- How to use the LEN function in Excel
- Instructions on how to use the Dmax function in Excel
- How to use MID functions to get strings in Excel
May be interested
- How to use the INDEX function in excel?along with vlookup and hlookup, an extremely interesting search function that you should not ignore is the index function. how to use it? is it difficult or not?
- How to use the Match function in Excelthe match function on excel looks for a value defined in an array, cell range on the data table and returns the position of the value in the array, that range.
- How to filter duplicate data on 2 Excel sheetsto filter duplicate data from 2 sheets in excel, you can use the vlookup function.
- Index (INDEX) in SQLsql index (index) is a special lookup table that database search engines can use to quickly increase the time and performance of data retrieval.
- How to use Vlookup function in Excel to search and referenceare you new to excel and find it difficult to use the vlookup function? this article will share how to look up and compare information quickly using vlookup, please refer to it and apply it immediately.
- How to create an Excel table, insert a table in Excelin order to manage data more clearly in excel, you can create excel data tables and enter content and data into tables.
- How to use Vlookup function between 2 sheets, 2 different Excel fileshow to use vlookup function between 2 sheets, 2 different excel files. normally the vlookup function applies on the same file in a certain workbook, but in some cases where the work is not so simple, the condition area and the area you need to access the data belong to belongs to two other sheets. together
- How to combine Vlookup function with If function in Excelwhen combining vlookup function with if function in excel, we can set conditions to search for values by column.
- Vlookup function in Excelvlookup is a column value search function that is one of the most used search functions. you've probably heard of the vlookup function but don't know how to use the vlookup function yet. the following article shows you how to use the vlookup function t
- Instructions for using Index function in Excelindex is a function that returns an array in excel. when using the index function, you get the values in a cell between the column and the row.