Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Finding duplicate value

Does anyone know of, or as any idea, a code that find duplicate values in a
range and then tells you the rows, or columns, where those duplicates are?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Finding duplicate value

If your values with potential duplicates are in Col A then enter this in Col B
=Sumproduct(--(A1:A$1000=A1))
and copy down

If any cell has value greater than one it means that there is at least one
more value which is same in the column from that point onwards...

So if you have three "ABC" in Col A, you will get 3 against the first one, 2
against the second and 1 against the third.

You can keep the rows with 1 and delete all others to get uniqe values.
"Ayo" wrote:

Does anyone know of, or as any idea, a code that find duplicate values in a
range and then tells you the rows, or columns, where those duplicates are?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default Finding duplicate value

Hi,

2007 - one thing you could do is choose Home, Conditional Formatting,
Highlight Cells Rules, Duplicate Values.

2003 - select the range and choose Format, Conditional Formatting, pick
Formula is from the first drop down, enter the following formula in the
second box
=COUNTIF($A$1:$A$100,A1)1
click the Format button and on the Patterns tab pick a color.

Both of these techniques provide a visual indicator of your duplicates. The
down side of a formula is that one formula can return only one result that
you can see, so to find all duplicates and indicate their location is
problematic.

If this helps, please click the Yes button
--
Thanks,
Shane Devenshire


"Ayo" wrote:

Does anyone know of, or as any idea, a code that find duplicate values in a
range and then tells you the rows, or columns, where those duplicates are?

Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding duplicate records Susan Excel Worksheet Functions 4 March 10th 08 10:07 PM
Finding Duplicate Values Scott Halper Excel Worksheet Functions 5 March 28th 07 05:43 PM
Finding duplicate serial #s Dgwood90 Excel Discussion (Misc queries) 2 October 17th 06 09:41 PM
Finding Duplicate Entries ConfusedNHouston Excel Discussion (Misc queries) 2 October 11th 06 04:01 AM
Finding duplicate data Eric Stoakes Excel Worksheet Functions 3 December 9th 04 04:33 PM


All times are GMT +1. The time now is 04:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"