To post as a guest, your comment is unpublished.· 2 months agoSorry I am using this formula
To post as a guest, your comment is unpublished.· 2 months agoSOLVED:
If 2nd or 3rd number required exchange ),1) to 2 or 3
This formula does not require index, as it directly looks at the value in Cell
To post as a guest, your comment is unpublished.· 2 months agoCorrection to previous formula:
The value was reading either the lesser or greater.
This skips blank cell and places value of non blank cell. Replace +1 with +2 or +3 for 2nd or 3rd value
How to vlookup find the first, 2nd or nth match value in Excel?
Supposing you have two columns with Products and quantities as below screenshot shown. For quickly finding out the quantities of the first or second banana, what would you do?
Here the vlookup function can help you deal with this problem. In this article, we will show you how to vlookup find the first, second or the nth match value with the Vlookup function in Excel.
Excel Productivity Tools
Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial
Kutools for Excel: Save 70% of your time and solve 80% Excel problems for you. 300+ advanced features designed for 1500+ work scenario, make Excel much easy and increase productivity immediately. 60-day Unlimited Free Trial
Please do as follows to find the first, 2nd or nth match value in Excel.
1. In cell D1, enter the criteria which you want to vlookup, here I enter Banana.
2. Here we will find the first match value of banana. Select a blank cell such as E2, copy and paste formula =INDEX($B$2:$B$6,MATCH(TRUE,EXACT($D$1,$A$2:$A$6),0)) into the Formula Bar, and then press Ctrl + Shift + Enter keys simultaneously.
Note: In this formula, $B$2:$B$6 is the range of the matching values; $A$2:$A$6 is the range with all the criteria for vlookup; $D$1 is the cell containing the specified vlookup criteria.
Then you will get the first match value of banana in cell E2. With this formula, you can only get the first corresponding value based on your criteria.
To get any nth relative values, you can apply the following formula: =INDEX($B$2:$B$6,SMALL(IF($D$1=$A$2:$A$6,ROW($A$2:$A$6)-ROW($A$2)+1),1)) + Ctrl + Shift + Enter keys together, this formula will return the first matched value.
1. To find the second match value, please change the above formula to =INDEX($B$2:$B$6,SMALL(IF($D$1=$A$2:$A$6,ROW($A$2:$A$6)-ROW($A$2)+1),2)), and then press Ctrl + Shift + Enter keys simultaneously. See screenshot:
2. The last number in the above formula means the nth match value of the vlookup criteria. If you change it to 3, it will get the third match value, and change to n, the nth match value will be found out.
You can easily find the first match value in Excel without remembering formulas with the Look for a value in list formula formula of Kutools for Excel.
|Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days.|
1. Select a cell for locating the first matching value (says cell E2), and then click Kutools > Formula Helper > Look for a value in list. See screenshot:
2. In the Formula Helper dialog box:
1). In the Table_array box, select the table which contains the first matching value values.
2). Specify cell (cell D1) which contains the criteria you need to lookup in the Look_value box.
3). Select the column with the first matching value in the Column box, and finally click the OK button.
Now the corresponding cell value will be auto-populated in cell C10 based on drop-down list selection.
Excel Productivity Tools
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 2 months agoIf the first or any of the other entry's for 'banana' column B was blank cell, of which I don't require this number, what changes are required to this formula to skip blank cell in column B.
To post as a guest, your comment is unpublished.· 4 months agoAnd if you want the last, second last, nth last just add a counter (count the number of events already hapenned) to the end and subtract it by 0,1,n respectively.
Thank you so much! I was searching for this for a long time
To post as a guest, your comment is unpublished.
To post as a guest, your comment is unpublished.· 5 months agoif a member was called on 1st October (October Data Set)as and it wasn’t revived, again the cce called him on 15th November(November Data Set). The member is revived on 16th November. While checking the revival using VLookup it makes YES to both the entries of October & November. How to avoid like it should show “YES” for the November entry actually when it was revived, and also leave the October entry as “NO”.
To post as a guest, your comment is unpublished.· 9 months agoDear Ms/Mr,
I have a problem:
I knew a quantities of the product, I want to finding out the product name of the first or second match value of 200, what would you do?
Big Thanks !
Sim Van Narith