Forum Discussion
Niraj1
Jul 27, 2023Copper Contributor
Excel Compare two columns to find unmatched values
I want to compare two columns (A and B) and want to identify the values in B which are not present in A.
tanayprasad
Jul 27, 2023Brass Contributor
You can easily achieve this using Conditional Formatting-
- Select the cells in column B where you want to see the values that don't match.
- Go to the "Home" tab in the Excel ribbon.
- In the "Styles" section, select "Conditional Formatting".
- Select "Highlight Cells Rules".
- Then choose "Duplicate Values."
- In the "Duplicate Values" dialog box, select "Unique" from the dropdown list.
- Choose a format (e.g., fill color) for highlighting the unmatched values, and click "OK."
If you have any doubts, please let me know.
ranadeepsmukherjee
Sep 10, 2024Copper Contributor
tanayprasad Thanks for sharing the detailed steps. Just one correction needed in step 1
Select the cells in both column A and B where you want to see the values that don't match.
- SergeiBaklanSep 10, 2024Diamond Contributor
Depends on goals. Initial question was "to identify the values in B which are not present in A." If select both columns, that will be unique for this two-columns range. Not values in second column which are not in first columns. Doesn't matter they are duplicated within second column or not.