A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

script or format to identify duplicate data



 
 
Thread Tools Display Modes
  #1  
Old April 19th, 2010, 07:14 PM posted to microsoft.public.excel.misc
jeremy
external usenet poster
 
Posts: 265
Default script or format to identify duplicate data

Is there a way I can write a script or conditional format to identify
duplicate data. The data can be marked by highlight if need be.

Ex
Since A1 and A3 are both the same numbers both locations become highlighted.
I have a large range of data to perform this in. The numbers being
identified are lager than 2 digits.
A
1 12
2 13
3 12


Thank you
  #2  
Old April 19th, 2010, 07:19 PM posted to microsoft.public.excel.misc
Luke M[_4_]
external usenet poster
 
Posts: 451
Default script or format to identify duplicate data

Conditional format would work fine:
With cell A1:
Formula is,
=COUNTIF(A:A,A1)1
Note that if you put this formula in the column next to your data, you could
copy it down and then AutoFilter based on TRUE and whatever value is in
column A to find all the duplicates.
--
Best Regards,

Luke M
"Jeremy" wrote in message
...
Is there a way I can write a script or conditional format to identify
duplicate data. The data can be marked by highlight if need be.

Ex
Since A1 and A3 are both the same numbers both locations become
highlighted.
I have a large range of data to perform this in. The numbers being
identified are lager than 2 digits.
A
1 12
2 13
3 12


Thank you



  #3  
Old April 19th, 2010, 07:25 PM posted to microsoft.public.excel.misc
Bernard Liengme
external usenet poster
 
Posts: 516
Default script or format to identify duplicate data

Conditional Formatting
a) all version of Excel;
Select the column of numbers (I will assume this is column A) and open the
Conditional Formatting dialog. The formula you want to use is
=COUNTIF(A:A,A1)1 and give a suitable format (light red fill, for example)
b) in Excel 2007: select the column of data, open the Conditional Formatting
dialog and locate "Format unique/duplicate..." and proceed from there.
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Jeremy" wrote in message
...
Is there a way I can write a script or conditional format to identify
duplicate data. The data can be marked by highlight if need be.

Ex
Since A1 and A3 are both the same numbers both locations become
highlighted.
I have a large range of data to perform this in. The numbers being
identified are lager than 2 digits.
A
1 12
2 13
3 12


Thank you


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.