# Duplicate Data Spotting

#### Joneye

##### Well-known Member
I have a data sheet Colum A1 to A1000 has 1000 items in it, im sure some have been entered in twice how can I spot this with a formula?

regards

Jon

### Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

#### Richard Schollar

##### MrExcel MVP
Hi Jon

In B1 copied down:

=COUNTIF(\$A\$1:\$A1,\$A1)

duplicates will be those formulas returning a result >1

#### Joneye

##### Well-known Member
Hi,

Sadly this does not work, I have copied the formula and have put in 3 duplicates to test, not a duplicate gets listed as a number 1 and duplicates get listed as a 2 if they are a cell apart (i.e. on ontop of the other) if not they are represented by a 0.

Am i going wrong somewere?

Im using excel 2003, the data is A:1 to A:1000 it can be located anywere in this stacking...

#### Jon von der Heyden

##### MrExcel MVP, Moderator
Hello

This methd works. Note the anchor on the first A1 (\$A\$1):
Excel Workbook
AB
1Value11
2Value21
3Value31
4Value32
5Value33
6Value22
7Value12
8Value13
Sheet1
Excel 2007
Cell Formulas
RangeFormula
B1=COUNTIF(\$A\$1:A1,A1)

All results greater than 1 are duplicates.

#### Michael M

##### Well-known Member
Hey Jon
try
Code:
``=COUNTIF(A1:A1000,\$A1)``

#### Joneye

##### Well-known Member
worked a GEM many thanks.

Replies
7
Views
286
Replies
7
Views
471
Replies
1
Views
186
Replies
35
Views
1K
Replies
1
Views
743

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,732
Messages
5,833,377
Members
430,206
Latest member
Sami Gaid

### 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.

### Which adblocker are you using?

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

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