Count formula

kirstypie

Board Regular
Joined
Nov 11, 2004
Messages
96
Hi there,

I have a worksheet that has a bunch of duplicates and I want to get rid of all duplication. I used this formula to determine which entries are duplicates: =COUNTIF(A:A,A1)>1 That gives me a true/false statement.

I know there is another variation of the formula that will tell you if the entry is the second (or more) occurrance, then you can sort and just delete all the extra entries without worring about losing the original. But I can't remember what that formula is. Any suggestions?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
try this
=countif($a$1:a1,a1)

then copy that down, then where ever the number is greater than 1 is a duplicate.
 
Upvote 0
Insert a row before the top row...

B2, copied down:

=ISNUMBER(MATCH(A2,$A$1:A1,0))+0

AutoFilter column B on 1 and delete all rows with 1.
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,303
Members
449,078
Latest member
nonnakkong

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