Formula Errors

Compare Two Excel Columns to Find Missing Policy Numbers in WPS Office

John WilsonJohn Wilson Nov 13, 2026 868 views

Question details

The user needs to compare policy numbers in two Excel columns and identify values that are present in the first column but missing from the second.

Compare Two Excel Columns to Find Missing Policy Numbers in WPS Office
Product
WPS Office Excel
Device & OS
not provided
Scenario
The user has policy numbers from two systems in separate columns and wants to reconcile them to find records unique to the first source.
Observed behavior
The workflow should produce a clear Missing or Found result, highlight missing values, or filter a combined list for one-source-only records.
Before you start

Before comparing columns, confirm that both policy number columns are available in the same worksheet or workbook and that the values are formatted consistently, with no leading or trailing spaces.

Solution 1Recommended

Use a COUNTIF Formula to Flag Missing Policy Numbers

Use this method for a quick, reusable check when both columns are in the same worksheet and you need a row-by-row result.

The formula checks each value in column A against the full range in column B. If a policy number does not appear in column B, the helper column returns Missing; otherwise it returns Found. Adjust the column references to match your data.

1
Select the helper column

Click the first empty cell next to your first-column data, such as C2, in your WPS Office Excel worksheet.

2
Enter the COUNTIF formula

Type =IF(COUNTIF($B:$B,A2)=0,"Missing","Found") and press Enter.

3
Fill the formula down

Drag the fill handle from C2 down through the last row of column A to check every policy number in the list.

Use a COUNTIF Formula to Flag Missing Policy Numbers
Missing values are identified: Any cell showing Missing is present in column A but absent from column B.

Compare Excel Columns and Find Missing Policy Numbers in WPS Office

In WPS Office Excel, you can compare two policy number columns with a COUNTIF helper formula, conditional formatting, or a combined Source column while opening and saving standard .xlsx workbooks.

  1. 1. Open the workbook: Launch WPS Office and open the Excel file that contains the two policy number columns you want to compare.
  2. 2. Insert a helper column: Click the first empty cell next to your first-column data, such as C2, and enter =IF(COUNTIF($B:$B,A2)=0,"Missing","Found").
  3. 3. Fill the formula through all rows: Drag the fill handle from C2 down to the last row of column A to evaluate every policy number.
  4. 4. Filter the missing results: Select the helper column, go to Data > AutoFilter, and filter for Missing to display only policy numbers absent from column B.
Find missing policy numbers using familiar COUNTIF, IF, and conditional formatting tools.Full compatibility with Microsoft Excel .xlsx files, so existing workbooks open and save smoothly.Free, lightweight Office suite with a familiar ribbon interface and no subscription.Available across Windows, macOS, Linux, Android, and iOS for flexible policy reconciliation.
microsoft office alternative - wps office

Frequently Asked Questions

Can I compare policy numbers that are in two different workbooks?

Yes. You can either combine both lists into one workbook with a Source column, or use an external reference in COUNTIF such as =IF(COUNTIF([Book2]Sheet1!$B:$B,A2)=0,"Missing","Found").

Why do some matching policy numbers still show as Missing?

This usually happens when formatting or extra spaces differ. Use the TRIM function to remove leading and trailing spaces, and make sure both columns use the same number or text format before comparing.

How can I show only the missing policy numbers after using the formula?

Select the helper column, go to Data > AutoFilter, and filter by the value Missing. Only rows where the first-column value is not found in the second column will remain visible.

Can I highlight missing values without adding a helper column?

Yes. Select column A, go to Home > Conditional Formatting > New Rule > Use a formula, enter =COUNTIF($B:$B,A2)=0, and choose a highlight color.