How to cross reference two lists in excel
Tutor 5 (273 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
Cross-referencing two lists in Excel means comparing the items in one list against the items in another list to identify matches, differences, or related values.
How to cross-reference two lists in Excel
To cross-reference two lists in Excel, use structured comparison methods such as lookup formulas, conditional formatting, or logical tests.
Using MATCH to check whether items in List A exist in List B
Formula Explanation
The MATCH function returns the position of a lookup value when that value exists in the lookup range.
The formula is:
Steps
-
Enter the formula in a new column next to List A.
-
Replace
A2with the first cell of List A. -
Replace
B:Bwith the range containing List B. -
Press Enter to evaluate the formula.
-
Copy the formula down to compare all items.
A numeric result means the item exists in List B.
A #N/A result means no match exists.
Using VLOOKUP to pull related values from List B
Formula Explanation
The VLOOKUP function returns a related value from List B when a match occurs.
The formula is:
Steps
-
Place the formula next to List A.
-
Replace
A2with the lookup item. -
Replace
B:Cwith the full table containing List B and any related columns. -
Press Enter.
-
Copy the formula down.
A returned value means a match exists.
A #N/A means the item is not present in List B.
Using Conditional Formatting to highlight matches
Steps
-
Select the entire first list.
-
Go to Home → Conditional Formatting → New Rule.
-
Choose Use a formula to determine which cells to format.
-
Enter the formula:
Click Format, choose a highlight color, and press OK.
-
Confirm the rule.
Cells in List A become highlighted when the values exist in List B.
Windows and Mac follow the same steps for Conditional Formatting.
The menu labels appear identical across both systems.
Using COUNTIF to identify duplicates or unique values
Formula Explanation
COUNTIF determines the number of times a value appears in List B.
The formula is:
Steps
-
Place the formula next to List A.
-
Replace
A2with the lookup cell. -
Replace
B:Bwith the List B range. -
Press Enter.
-
Copy the formula down.
A count above 0 confirms the value exists in List B.
A count of 0 confirms the value is unique to List A.
What method is best for cross-referencing two lists?
The best method depends on the intended outcome.
1. Identification of matches
Use MATCH or COUNTIF.
2. Retrieval of related values
Use VLOOKUP.
3. Visual comparison
Use Conditional Formatting.
4. Complex cross-referencing
Use a combination of logical formulas such as MATCH, INDEX, and COUNTIF.
How to choose between MATCH, VLOOKUP, and COUNTIF
MATCH identifies presence.
VLOOKUP returns related data.
COUNTIF counts occurrences.
Each method produces consistent results for list comparison.
. Was this Helpful?Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
How to sort by highlighted cells in excel
Answers · 1
How to sort excel by column and keep rows together
Answers · 1
How to sort by time in excel
Answers · 1
How to sort alphabetically in excel by last name
Answers · 1