Formula to find unique rows

Vntiger14

New Member
Joined
Aug 7, 2015
Messages
1
Im trying to compare two worksheets in the same workbook that are 95% identical. sheet1 have columns A and B and contains 975000 rows and sheet2 have columns A and B and contains 1000000 rows. I need a formula to highlight/display the unique values in sheet2.

I'm using this formula
=IF(COUNTIFS(A3,sheet2!A:A,B3,sheet2!B:B)>0,"""",""UNIQUE"")

It work fine except when the rows from sheet1 does not match the rows from sheet2.

Any help is greatly appreciated. Thanks
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hello,

this may make the file large and slow (due to the number of rows)

On Sheet 2 cell C1, enter

=IF(ISERROR(MATCH(A1&B1,Sheet1!$A$1:$A$100000&Sheet1!$B$1:$B$100000,0)),"UNIQUE","")

you need to press CTLR + SHIFT + ENTER (array formula).
and copy down as far as required.

Is this what you expect? (Your post seems a bit contradictory regarding which sheet to check).
 
Last edited:
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,790
Members
451,589
Latest member
Harold14

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top