Compare entire rows in excel - looking for exact duplicates in the rows.

JSH720

Board Regular
Joined
Oct 9, 2009
Messages
107
Office Version
  1. 365
Platform
  1. Windows
I need a macro or formula that will compare the cell values in a row and if all the cell values across all the columns are EXACTLY the same (excluding formatting) then they mark a specified column as true and filter the spreadsheet with just those rows. In essense, I'll looking to filter based on exact duplicate rows. As data in the rows change and the row is no longer an exact duplicate, then the specified column changes also - it is a dynamic cell.

Thank you for your help.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
See if this does what you want

Amend the count to match the number of columns
=COUNTIF(A1:H1,A1)=8

8 blank cells would return FALSE
- if that matters add anonther condition
=OR(COUNTIF(A1:H1,A1)=8,COUNTBLANK(A1:H1)=8)

Excel 2016 (Windows) 32 bit
A
B
C
D
E
F
G
H
I
J
1
1​
1​
1​
1​
1​
1​
1​
1​
TRUE
=COUNTIF(A1:H1,A1)=8
2
aaaaAaaa
TRUE
3
abaaaaaaa
FALSE
Sheet: Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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