» Retrieving Values that are Common to Two Lists
CATEGORY - Excel Formula and Function
VERSION - All Microsoft Excel Versions
We want to create a new list consisting of the values that are common to both List1 (column A) and List2 (Column B).
Solution:
Use the INDEX, SMALL, IF, COUNTIF, and ROW functions as shown in the following Array formula:
{=INDEX($A$2:$A$9,SMALL(IF(COUNTIF($B$2:$B$9,$A$2:$A$9)>0,ROW($A$2:$A$9),1000),ROW()-ROW($D$2)+1)-ROW($D$2)+1)}
Enter the formula in cell D2 and copy it down the column until the #REF! error is returned.
Book Store:
Recommended Books:
- The New Financial Order: Risk in the Twenty-First Century
- Absolute Beginner's Guide to Microsoft Office Excel 2003
- Special Edition Using Microsoft Word 2002
- Treason: Liberal Treachery from the Cold War to the War on Terrorism
- Essentials of Accounting and Post Test Booklet 8, Eighth Edition
- The Essential 55: An Award-Winning Educator's Rules for Discovering the Successful Student in Every Child
No comments have been submitted.

