Deleting Rows

CARBOB

Well-known Member
Joined
Jun 6, 2005
Messages
1,870
My worksheet has 376,992 rows of 5 columns, with digits that range from 0-9. I want to delete all the rows that have multiple counts of each digit. Is this enough info?? Can a formula do this?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Do you mean if a single numbers appears more than once within a particular row?

If so, here is a rather crude method, but it should work.
Assuming column A-E and your data begins in row 1, enter this formula on row 1 and copy down for all rows:
Code:
=IF(COUNTIF(A1:E1,A1)>1,1,0)+IF(COUNTIF(A1:E1,B1)>1,1,0)+IF(COUNTIF(A1:E1,C1)>1,1,0)+IF(COUNTIF(A1:E1,D1)>1,1,0)+IF(COUNTIF(A1:E1,E1)>1,1,0)
Any row where this formula returns 0 does not have any duplicates. All others do. So you can sort/delete all rows that do not equal zero.
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,558
Members
452,928
Latest member
101blockchains

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