Function Problems

WPS Spreadsheets: Compare Two Sheets and Highlight Matching or Missing Values

John WilsonJohn Wilson Nov 12, 2026 869 views

Question details

The user needs to compare values in two worksheets and highlight entries that match or are missing from the other sheet.

Product
WPS Spreadsheets
Device & OS
not provided
Scenario
Two worksheets contain text and numeric lists in shared columns, but the lists have different lengths. The user wants to identify matching and missing values.
Observed behavior
The worksheets contain different sets of values, and the user needs visual highlighting to show whether each entry exists in the other worksheet.
Before you start

Confirm which columns contain the shared lists and check that corresponding values use compatible data types. Numbers stored as text may not match numeric values, even when they look identical.

Solution 1Recommended

Use COUNTIF conditional formatting to highlight missing values

Use this method when you want WPS Spreadsheets to automatically mark values in one sheet that do not appear in the comparison sheet.

COUNTIF checks whether each value appears in the target column. A result of zero means the value is missing from the other worksheet, while a result greater than zero means it exists there.

1
Select the source values

Open the first worksheet and select the values to check, such as column B. Make sure B1 is the active cell when creating the rule.

2
Create a formula rule

Go to Home > Conditional Formatting > New Rule, select Use a formula to determine which cells to format, and enter =COUNTIF(Sheet2!$C:$C,B1)=0.

3
Choose the missing-value format

Click Format, choose a fill color or font style, select OK, and then click Apply or OK to highlight values from the first sheet that are absent from Sheet2 column C.

4
Create a matching-value rule

To highlight values that do exist in Sheet2, create another conditional formatting rule with =COUNTIF(Sheet2!$C:$C,B1)>0 and apply a different format.

Check the cell references: Replace Sheet2 and column C with the actual worksheet name and comparison column. Keep B1 relative so the rule evaluates each selected row.

Compare worksheets and flag missing values in WPS Spreadsheets

WPS Spreadsheets lets you compare shared columns with COUNTIF or MATCH formulas and apply conditional formatting to distinguish matching and missing entries. Its familiar spreadsheet interface supports efficient work with Excel-compatible files.

  1. 1. Open the workbook: Launch WPS Office, choose Spreadsheet, and open the workbook containing the two worksheets.
  2. 2. Select the values to compare: Select the source column, such as B, and confirm the corresponding comparison column on the second worksheet, such as Sheet2 column C.
  3. 3. Add the missing-value rule: Choose Home > Conditional Formatting > New Rule, select the formula-based rule, and enter =COUNTIF(Sheet2!$C:$C,B1)=0.
  4. 4. Format and apply the results: Choose a highlight style, click OK, and review the source column for entries that are not present in the second worksheet.
Highlight matching or missing values automatically with conditional formattingUse COUNTIF and MATCH formulas for exact cross-sheet comparisonsOpen, edit, and save Microsoft Excel XLS and XLSX files with compatible formattingWork in a familiar, lightweight spreadsheet interface for easier migration from Excel
microsoft office alternative - wps office

Frequently Asked Questions

How do I highlight values that exist in both WPS Spreadsheets worksheets?

Select the source range, open Home > Conditional Formatting > New Rule, choose a formula-based rule, and enter =COUNTIF(Sheet2!$C:$C,B1)>0. Apply a highlight style to mark matching values.

Why does COUNTIF not find a value that appears identical?

The values may use different data types, such as a number in one sheet and text in the other. Convert both columns to the same type and check for leading or trailing spaces before applying the rule again.

Can I compare columns with different numbers of rows?

Yes. COUNTIF and MATCH search the entire comparison column, so the two lists do not need to have the same length. Select the full source range that should be checked.

What formula highlights values missing from another worksheet?

For a value in B1 compared with Sheet2 column C, use =COUNTIF(Sheet2!$C:$C,B1)=0 in a conditional formatting rule. You can also use =ISERROR(MATCH(B1,Sheet2!$C:$C,0)).

How do I compare sheets when the worksheet name contains spaces?

Wrap the worksheet name in single quotation marks, such as =COUNTIF('January Data'!$C:$C,B1)=0. Keep the comparison column absolute and the source cell relative.