Duplicate Data Spotting

Joneye

Well-known Member
Joined
May 28, 2010
Messages
745
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
 

Some videos you may like

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
Hi Jon

In B1 copied down:

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

duplicates will be those formulas returning a result >1
 

Joneye

Well-known Member
Joined
May 28, 2010
Messages
745
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
Joined
Apr 6, 2004
Messages
10,801
Office Version
365
Platform
Windows
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
Joined
Oct 27, 2005
Messages
19,116
Office Version
2013
Platform
Windows
Hey Jon
try
Code:
=COUNTIF(A1:A1000,$A1)
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,516
Messages
5,511,759
Members
408,864
Latest member
cmajewsk

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top