+ Reply to Thread
Results 1 to 8 of 8

Fast way to check if column contains duplicates

  1. #1
    Registered User
    Join Date
    11-14-2008
    Location
    Sweden
    Posts
    10

    Fast way to check if column contains duplicates

    Hello

    Im trying to create a fast way to check if my column contains duplicates of my value. If it contains a duplicate, i want to return "yes" and if not "no".

    I've managed to create a function like this but its to slow:
    Please Login or Register  to view this content.
    This will check if the numer in B2508 has a duplicate.

    Any way how to "improve" this?

    Best Regards
    /Richard
    Last edited by oldchippy; 11-21-2008 at 06:52 AM.

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Do you need to reference the whole column of B, or is the range smaller?
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    If you use the search facility within the forums, you will find that this question has been asked many times and that suggestions are available.
    Ed
    _____________________________
    Always learning, but never enough!
    _____________________________

  4. #4
    Registered User
    Join Date
    11-14-2008
    Location
    Sweden
    Posts
    10
    Quote Originally Posted by oldchippy View Post
    Hi,

    Do you need to reference the whole column of B, or is the range smaller?
    Hello!

    The whole column. There shoudn't be any duplicates in the column. (Well, it's only nessisary to check from the value i wish to check and above, if you know what i mean)

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    If you want to prevent duplicate entries, perhaps this

    http://www.cpearson.com/excel/NoDupEntry.aspx

  6. #6
    Registered User
    Join Date
    11-14-2008
    Location
    Sweden
    Posts
    10
    Quote Originally Posted by EdMac View Post
    If you use the search facility within the forums, you will find that this question has been asked many times and that suggestions are available.
    Tryed that but havn't found what i was looking for.

    Quote Originally Posted by oldchippy View Post
    If you want to prevent duplicate entries, perhaps this

    http://www.cpearson.com/excel/NoDupEntry.aspx
    I dont wish to prevent to enter duplicates, just know which value thats duplicated with a "yes" or a "no" value, so i could check them out later on. My formula works, its just thats its extremly slow when you have about 3k diffrent values at hand

  7. #7
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    How about this?

    =IF(COUNTIF(B:B,B2508)>1,"Yes","No")

  8. #8
    Registered User
    Join Date
    11-14-2008
    Location
    Sweden
    Posts
    10
    Quote Originally Posted by oldchippy View Post
    How about this?

    =IF(COUNTIF(B:B,B2508)>1,"Yes","No")
    worked like a charm! but its still as "slow" as my other function, guess there isn't any "fast" way to do this.

    Thanks anyway

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1