Skip to main content

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
Easily find the last occurrence of a specific value in a list with an amazing tool

More tutorials for look up values…


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.

=INDEX($C$2:$C$13,MATCH(2,1/(B2:B13=E2)))

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

Here recommend you to use the LOOKUP from Bottom to Top utility of Kutools for Excel. With this handy feature, you can easily find the last occurrence of a certain value in a list with only several clicks.

Before applying Kutools for Excel, please download and install it firstly.

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.


Related articles

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.

More tutorials for look up values…

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (3)
Rated 4.5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Untuk rumus ini =INDEX($C$2:$C$13,MATCH(2,1/(B2:B13=E2))) jika hanya 1 karakter, bagaimana jika ada 2 karakter?
This comment was minimized by the moderator on the site
Hi Deddy,

For clarity, please attach a sample file or a screenshot with your data and desired results.
This comment was minimized by the moderator on the site
This is a REALLY neat syntax! Love it, Small and Large wasn't quite working. to use the match function to look up a 2 in a list of 1s, returning the last one - ingenious.

SyntaxError: Unexpected token I in JSON at position 0
Rated 4.5 out of 5
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations