How to find the last occurrence of a specific value in a list in Excel?
Normally, when using the Vlookup function to search for a value, it will return the corresponding result for the first matching. If there are multiple matching items in the list and you want to return the last matching occurrence, how can you do? This tutorial provides two methods for you to easily get it down.
Find the last occurrence of a specific value in a list with formula
As the below screenshot shown, there are multiple “KTW” in column B, but you only want to look for the last one and return the corresponding value in column C in cell F2. Please try the below array formula.
1. Select a blank cell, copy the below formula into it and press the Ctrl + Shift + Enter keys to output the result.
Note: In the formula, $C$2:$C$13 is the column range that contains the value you will return; B2:B13 is the column range you are looking for; E2 contains the criteria you will do the search based on.
Easily find the last occurrence of a specific value in a list with an amazing tool
1. Click Kutools > Super LOOKUP > LOOKUP from Bottom to Top to enable the feature. See screenshot:
2. In the LOOKUP from Bottom to Top dialog box, please configure as follows.
Select the lookup value cells and the output cells in the Lookup Values and Output Range section;
Select the whole data range, the key column you are looking for, and the return column in the Data range section;
Click the OK button to get the results immediately. See screenshot:
If you want to have a free trial ( 30-day) of this utility, please click to download it, and then go to apply the operation according above steps.
Find earliest and latest dates in a range in Excel In a column of dates, it's not easy to find out the earliest date and latest date quickly if you can't sort the dates. Actually, there are several tricky ways to find out the earliest and latest dates in Excel easily and conveniently, you can follow the methods in this article to get it down.
Find or get quarter from a given date in Excel Supposing you have a list of dates in a column, and now you want to find and get the quarters from these dates, how can you quickly handle it in Excel? This article is going to introduce the tricks on deal with this job.
Vlookup to compare two lists in separated worksheets Supposing you have two worksheets “Name-1” and “Name-2” with a list of names, and now you want to compare these two lists and find the matching names in Names-1 if they exit in Names-2. It is painful to do such a comparison manually one by one between two sheet. This article is provides some quick tricks to help you to finish it without effort.
Vlookup and sum matches in rows or columns in Excel Using vlookup and sum function helps you quickly find out the specified criteria and sum the corresponding values at the same time. In this article, we are going to show you two methods to vlookup and sum the first or all matched values in rows or columns in Excel.
Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
More than 300 powerful features. Supports Office/Excel
2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features
30-day free trial. 60-day money back guarantee.