Compare numbers

A

Alan

I am using excel 2004 and have a column with many simple numbers [1045,
1234, 5432. etc.] What is the easiest way to identify duplicates, or the
overall number of duplicates in the column? there must be an easy way.

Thank you !

Alan
 
T

Trevor Shuttleworth

Alan

select the column, for example, column A. Then select

Format | Conditional formatting ... | Condition 1 | Formula is:
=COUNTIF(A:A,A1)>1
and choose an appropriate format, Format ... | Font | Font style = bold, for
example

If you need to count them as well as highlight them, you could use an
advanced filter to select the unique entries from the list and then use a
COUNTIF similar to the statement above to count the values with one or more
duplicates.

Regards

Trevor
 
A

Aladin Akyurek

the overall number of duplicates in the column [...]

=SUMPRODUCT((Range<>"")-(Range<>"")/COUNTIF(Range,Range&""))

This gives you Number of Tokens minus Number of Types in Range where empty
cells and formula-blanks are excluded.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top