» Retrieving Smallest Nth Value Match Within a List
CATEGORY - Lookup Formulas
VERSION - All Microsoft Excel Versions
Problem: Columns A & B contain matching pairs of numbers and letters.
Each number in column A may appear multiple times, on each occasion with a different corresponding letter.
We want to search the data and retrieve the letter corresponding to the nth match of specified numbers from column A. Column C specifies the number to search for, and column D specifies the particular match required.
Solution:
Use the INDEX, SMALL, IF, and ROW functions as shown in the following Array formula:
{=INDEX($B$2:$B$12,SMALL(IF($A$2:$A$12=C2,ROW($B$2:$B$12)-ROW($B$2)+1),D2))}
Book Store:
Recommended Books:
- Cashflow Quadrant: Rich Dad's Guide to Financial Freedom
- 422 Tax Deductions for Businesses and Self-Employed Individuals : You Get a Raise Every Time You Find a Legitimate Tax Deduction
- Financial Modeling - 2nd Edition
- Harry Potter and the Order of the Phoenix (Book 5)
- The One Page Business Plan: Start With a Vision, Build a Company!
- Excel 2002 For Dummies®
No comments have been submitted.

