But what if there are several matches in your lookup array and you want to get the 2 nd or 3 rd instance? The task sounds quite intricate, but the solution does exist! Formula 1.
#HOW TO APPLY VLOOKUP IN EXCEL 2016 HOW TO#
How to use VLOOKUP to get 2 nd, 3 rd or n th matchĪs you already know, Excel VLOOKUP can fetch only one matching value, more precisely, it returns the first found match.
![how to apply vlookup in excel 2016 how to apply vlookup in excel 2016](https://www.got-it.ai/solutions/excel-chat/wp-content/uploads/2019/03/Figure-1-How-to-Use-VLOOKUP-and-HLOOKUP-Together-in-Excel.png)
![how to apply vlookup in excel 2016 how to apply vlookup in excel 2016](https://content.instructables.com/ORIG/FDI/MO71/ITVV0C7Y/FDIMO71ITVV0C7Y.png)
In case your lookup table is in another sheet, include the sheet's name in your VLOOKUP formula. The range_lookup argument is set to FALSE to Vlookup an exact match. Or, input the criteria in separate cells (G1 and G2 in our case) and concatenate those cells:Īs we want to return a value from column D, which is fourth in the table array, we use 4 for col_index_num. =VLOOKUP("Jeremy Sweets", A2:D11, 4, FALSE) This will populate the helper column with the values from columns B and C (the space character is concatenated in between for better readability):Īnd then, use a standard VLOOKUP formula and place both criteria in the lookup_value argument, separated with a space: So, add a column to the left of your table and copy the below formula across that column. It is important that the helper column should be the leftmost column in the table array because it's where Excel VLOOKUP always searches for the lookup value. To overcome this, you can add a helper column and concatenate the values from two lookup columns ( Customer and Product) there.
![how to apply vlookup in excel 2016 how to apply vlookup in excel 2016](https://quehow.com/wp-content/uploads/2016/11/how-to-use-vlookup-in-MS-Excel-2016-step-5.jpg)
A complicating factor is that each customer ordered multiple products, as shown in the table below:Ī usual VLOOKUP formula won't work in this situation because it returns the first found match based on a single lookup value that you specify. Suppose you have a list of orders and want to find the quantity based on 2 criteria, Customer name and Product. But what if you want to look up with several conditions? There are a few different solutions for you to choose from. However, it lacks an important feature - its syntax allows for just one lookup value. The Excel VLOOKUP function is really helpful when it comes to searching across a database for a certain value.