Duplicates in multiple columns

Yamasaki450

Board Regular
Joined
Oct 22, 2021
Messages
58
Office Version
  1. 2021
Platform
  1. Windows
Hello everyone... I need some help again.

I would like to find duplicates in multiple columns. What would be the easiest way to do this?
I tried to select all columns and search duplicates with conditional formatting but Excel just locks up or not responding...
I guess there is too much data 750 000 rows.

How would you do this? Any advice? Thanks.

It looks like this.
 

Attachments

  • Clipboard01.png
    Clipboard01.png
    131.1 KB · Views: 8

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
what version of Excel - I'm using latest 365 version
what type of PC/Laptop - I'm using an Apple M1 Macbook pro with 16GB memory

I tried and found a few duplicates with 750,000 rows from column A to AA and was instant - although i have not populated a lot of data and that maybe the issue

i selected the entire workbook - using the box between the Column Letters and row numbers

I used a formula

=AND(A1<>"",COUNTIF($A$1:$AA$750000,A1)>1)

I also have data in rows 745,000 to 750,000 - not shown here

ConD-Frmt-Icons-ETAF.xlsx
ABCDEFGHIJKLMNO
1
2
32345678910111213
41214
514
614
7114
814
9141
1014
1114
1214
1314
1414
1514
16
17
18
19
20
21
22
23
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
1:1048576Expression=AND(A1<>"",COUNTIF($A$1:$AA$750000,A1)>1)textNO
 

Attachments

  • Screenshot 2022-10-30 at 19.28.35.png
    Screenshot 2022-10-30 at 19.28.35.png
    84.2 KB · Views: 2
Upvote 0
Thanks. But this formula not working for me... Im using Excel 2019 but formula should still work right?
 

Attachments

  • Clipboard02.png
    Clipboard02.png
    179.1 KB · Views: 4
Upvote 0
Im using Excel 2019

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
you are putting the formula in A1 - its a conditional formatting rule - or put in another column
its using A1 as a reference , which may be the issue


Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Upvote 0
for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
A1:AA750000 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=AND(A1<>"",COUNTIF($A$1:$AA$750000,A1)>1)

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK
 
Upvote 0
Solution
Got it working. I had to replace commas with semicolons in formula. So the formula looks like this =AND(A1<>"";COUNTIF($A$1:$AA$750000;A1)>1) and it works.
The problem is excel becomes very laggy after applying formula... It finds duplicates buts scrolling up and down becomes laggy after that.
I will try to update office to the newest version maybe this will help if not the problem is in my PC. Im still using older quad core Intel Q9550 and 8GB DDR2 heh :)

Thanks a lot for your help etaf.
 
Upvote 0
you are welcome, maybe PC - also referring to 750000 rows - VBA may be more efficient, but i dont provide solutions for VBA here
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,625
Members
449,093
Latest member
catterz66

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