+ Reply to Thread
Results 1 to 4 of 4

removing duplicate values

  1. #1
    Registered User
    Join Date
    02-27-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    2

    Exclamation removing duplicate values

    Hey guys, I'm new here and I have something urgent that needs to be solved.
    I'm a webmaster and I received a real messy report from one of my staff.

    The goal here is to remove any duplicate "words" from one row to another.
    For instance:

    A1 | B1 | C1
    ------------------------------- |-------------------------------------|-------------------
    http://dir.yahoo.com |http://video.yahoo.com |http://www.google.com
    http://www.google.com|http://www.bing.com |http://www.bing.com
    http://excelforum.com/|http://lol.excelforum.com|
    http://www.excelforum.com/members/teylyn.html|http://www.excelforum.com/members/seng8.html|


    So I want C1 to have unique values only... omitting values that exist 2 times on A1 and B1 cells.
    Like for the case of the above illustration, because A2 has the word "yahoo" in it and so is A3... it won't be displayed in C1 cell.

    Is there a code in excel to do this? I tried using the "Filter" feature but it didn't help...
    Last edited by Seng8; 02-28-2010 at 12:25 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Urgent - removing duplicate values

    That's a tough call.

    If http://excelforum.com and http://excelforum8.com count as duplicates, that means you can't even take the domain name as a comparison value?

    What are your rules for items being duplicates?

  3. #3
    Registered User
    Join Date
    02-27-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: removing duplicate values

    Thanks teylyn!
    Sorry about that, there was an error... I've corrected it.

    I've also added another value to clarify my question even more.
    Last edited by Seng8; 02-28-2010 at 12:25 AM.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: removing duplicate values

    Hello Seng8,

    Welcome to the Forum!

    Since you are a webmaster, you are probably familiar with Regular Expressions (PHP, Java Script). VBA also makes use of Regular Expressions. So I leave it up to you which language you want to use. I only know VBA and can help you with that piece. See the use of "back references" to id words or patterns that repeat.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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