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

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

texasalynn

Well-known Member
Joined
May 19, 2002
Messages
8,458
try this
=countif($a$1:a1,a1)

then copy that down, then where ever the number is greater than 1 is a duplicate.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
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.
 

Forum statistics

Threads
1,136,878
Messages
5,678,320
Members
419,755
Latest member
eshnider21

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
Top