Skip to main content

Quickly compare two ranges to select / shade duplicate or unique values in Excel

Author: Xiaoyang Last Modified: 2024-11-27

Kutools for Excel

Boosts Excel With 300+
Powerful Features

Normally, you can use the Conditional Formatting function to find out the differences between two ranges in Excel. But it is too complex to use. Kutools for Excel’s Select Same & Different Cells utility can help you easily select or shade duplicate or unique values based on each row or single cell in Excel.

Compare two ranges and find same or different records based on each row

Compare two ranges and find same or different cells based on single cell


Click Kutools > Select > Select Same & Different Cells. See screenshots:

shot compare ranges 01 shot arrow shot compare ranges 02

 Compare two ranges and find same or different records based on each row

1. Hold down CTRL key to select two ranges that you want to compare as follows (See Screenshot). Note: This utility will select duplicates in Range A. You can specify the Range A and Range B across different worksheets and workbooks.

shot compare ranges 03

2. Apply this utility and in the Select Same & Different Cells dialog box, you can specify the following options:

(1.) If you don’t select the ranges in Step1, you can click shot compare ranges 0 button to select Find values in (Range A) and According to (Range B) that you want to compare.

(2.) If there are headers in your data and you want to ignore comparing them, please check My data has headers option.

(3.) Select Each row under the Based on section.

(4.) Specify Same Values or Different Values under Find section to search duplicate or unique rows between two ranges.

(5.) You can fill the duplicate or unique values with background color or font color as you like by checking Fill backcolor or Fill font color under the Processing of results section.

(6.) If you want to select the entire rows within the used range, please check Select entire rows option. Check Case sensitive option, if you want case-sensitive comparing.

shot compare ranges 04

3. Click OK, and the same or different records will be selected as well as colored as following screenshot shown:

shot compare ranges 05
shot compare ranges 06

Notes:

1. My data has headers option will ignore the header cells while comparing two ranges.

2. The Find values in (Range A) and According to (Range B) must have the same number of columns during comparing two ranges.

3. This utility will select the duplicates or unique values in Range A during comparing two ranges. If you want to select the duplicates or unique values in Range B, you just need to exchange the two ranges.

4. You can specify the Range A and Range B across different worksheets.


 Compare two ranges and find same or different cells based on single cell

This utility also can help you to compare two ranges and find the same or different cell values based on single cell. Please do as follows:

1. Hold down CTRL key to select two ranges that you want to compare as follows (See Screenshot). Note: This utility will select duplicates in Range A. You can specify the Range A and Range B across different worksheets and workbooks.

shot compare ranges 07

2. In the Select Same & Different Cells dialog box, you can specify the following options:

(1.) If you don’t select the ranges in Step1, you can click shot compare ranges 0 button to select Find values in (Range A) and According to (Range B) that you want to compare.

(2.) Select Single cell under the Based on section.

(3.) Specify Same Values or Different Values under Find section to search duplicate or unique cells between two ranges.

(4.) You can fill the duplicate or unique values with background color or font color as you like by checking Fill backcolor or Fill font color under the Processing of results section.

(5.) Check Case sensitive option, if you want case-sensitive comparing

shot compare ranges 08

3. After finishing the settings, please click Ok, and the same or different cells based on single cell are selected and colored in Range A as followings:

shot compare ranges 09
shot compare ranges 10

Notes:

1. This utility will select the duplicates or unique values in Range A during comparing two ranges. If you want to select the duplicates or unique values in Range B, you just need to exchange the two ranges.

2. You can specify the Range A and Range B across different worksheets.

Demo: Compare Two Ranges and Select Same & Different Cells in Excel

 
Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Productivity Tools Recommended
The following tools can greatly save your time and money, which one is right for you?
Office Tab: Using handy tabs in your Office, as the way of Chrome, Firefox and New Internet Explorer.
Kutools for Excel: More than 300 Advanced Functions for Excel 2021, 2019, 2016, 2013, 2010, 2007 and Office 365.

Kutools for Excel

The functionality described above is just one of 300 powerful functions of Kutools for Excel.

Designed for Excel(Office) 2021, 2019, 2016, 2013, 2010, 2007 and Office 365. Free download and use for 30 days.

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase