How to Cross Reference in Excel to Find Missing Data (6 Ways)

We have two columns that hold student names and want to find the missing entries among the columns by using cross-referencing.

Dataset-How to Cross Reference in Excel to Find Missing Data


How to Cross Reference in Excel to Find Missing Data: 6 Easy Ways


Method 1 – Applying ISERROR and VLOOKUP Functions to Identify Missing Data

Steps:

  • Insert the following formula in cell D4.
=ISERROR(VLOOKUP(B4,$C$4:$C$16,1,0))

iserror and vlookup function-How to Cross Reference in Excel to Find Missing Data

Formula Explanation

  • The VLOOKUP function takes B4 as lookup_value, $C$4:$C$16 as table_array, 1 as col_index_num, and 0 as [range_lookup].
  • Whenever VLOOKUP yields in #N/A Error, the ISERROR function puts TRUE or FALSE in places where error occurs or not respectively.
  • Press Enter to apply the inserted formula, then drag the Fill Handle to execute the formula for other cells.

result

[Notes.] To highlight the TRUE results, highlight the entire column, go to Conditional Formatting, select Highlight Cells Rules, choose Equal to, select the Cell (i.e., D6) or input TRUE, choose appropriate Fill Color to format and click OK.

Read More: How to Deal with Missing Data in Excel


Method 2 – Cross Referencing Data Using NOT, ISNUMBER, and MATCH Functions

Steps:

  • Paste the following formula in the D4 cell.
=NOT(ISNUMBER(MATCH(B4,$C$4:$C$16,0)))

iserror and vlookup function-How to Cross Reference in Excel to Find Missing Data

Formula Explanation

  • The MATCH function returns 2 as the lookup_values (i.e., B4) found in row 2 within the lookup_array (i.e., $C$4:$C$16).
  • After that, the ISNUMBER function returns TRUE or FALSE depending on the MATCH outcomes. Finally, the NOT function turns the Trues into Falses or vice versa.
  • Use the Enter key to execute the formula.
  • Drag the Fill Handle to apply the formula to the other cells.

result

Read More: How to Find Missing Values in Excel


Method 3 – Fetching Missing Data Using IF, ISERROR, and VLOOKUP Functions in Excel

Steps:

  • Insert the following formula in D4.
=IF(ISERROR(VLOOKUP(B4,$C$4:$C$16,1,FALSE)),B4, "")

if iserror and vlookup function-How to Cross Reference in Excel to Find Missing Data

Formula Explanation

  • The ISERROR(VLOOKUP(B4,$C$4:$C$16,1,FALSE) portion works as described in Method 1. Here, this portion is used as logical_test to display missing Cell Value (i,e., B4) or Blank Cell (i.e., “”) depending on the test outcomes; True or False respectively.
  • Hit Enter to apply the formula.
  • Drag the Fill Handle to display other missing entries.

Result

⧭Tips: Select the entire column, move to the Home tab, hover to the Font section, and choose any desired Font colors to highlight the fetched data.

Read More: How to Filter Missing Data in Excel


Method 4 – Conditional Formatting Unique Values to Highlight Missing Data

Steps:

  • Highlight the columns containing different lists.
  • Go to Conditional Formatting and choose New Rule.

Conditional Formatting

The New Formatting Rule window appears.

  • Select Format only unique or duplicate values for Select a Rule Type.
  • Choose Unique under Format all.
  • Click Format and select a Fill Color.
  • Click OK.

Unique

Excel highlights the unique values by comparing the adjacent column values as shown in the below image.

Conditional Formatting Missing Data-How to Cross Reference in Excel to Find Missing Data

Read More: How to Compare Two Excel Sheets to Find Missing Data


Method 5 – Using the IF Function to Cross Reference and Find Missing Data in Excel

The following image depicts the fruit sales lists.

Fruit Sales-How to Cross Reference in Excel to Find Missing Data

Steps:

  • Insert the following formula to compare identical values among lists.
=IF(B4=C4,"Existing Data","Missing Data")

IF Function-How to Cross Reference in Excel to Find Missing Data

Formula Explanation

  • The IF formula compares each B column entry to a C column entry to insert custom text such as “Existing Data” or “Missing Data”. B4=C4 acts as a logical_test and the formula inserts “Existing Data” if the test returns True otherwise “Missing Data”.
  • Apply the formula using the Enter key, then use the Fill Handle to display the custom texts.
  • Apply Conditional Formatting to the outcomes as depicted in the following image.

IF Function Result


Method 6 – Cross Referencing Data from Different Worksheets to Find Missing Data+

The Fruit Lists may exist in different worksheets, as shown below.

Different Worksheets-How to Cross Reference in Excel to Find Missing Data

Steps:

  • Add a helper column named Missing Data.
  • Insert the following formula in any cells of the column.
=IF(ISERROR(VLOOKUP(B4,'List 1'!$B$4:$B$16,1,FALSE)),B4,"")

Fetching Missing Data Different Sheet

  • Click Enter, then drag the Fill Handle to display the missing fruit names as shown in the below image.
  • Reformat the cell if you want to display entries in custom formats.

Fetched Data

Read More: How to Count Missing Values in Excel


Download the Excel Workbook


Related Articles

<< Go Back To Missing Values in Excel | Data Cleaning in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Maruf Islam
Maruf Islam

MARUF ISLAM is an excellent marine engineer who loves working with Excel and diving into VBA programming. For him, programming is like a superhero tool that saves time when dealing with data, files, and the internet. His skills go beyond the basics, including ABACUS, AutoCAD, Rhinoceros, Maxsurf, and Hydromax. He got his B.Sc in Naval Architecture & Marine Engineering from BUET, and now he's switched gears, working as a content developer. In this role, he creates techy content... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo