+ Reply to Thread
Results 1 to 7 of 7

Remove Duplicates With Unique Values

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    15

    Remove Duplicates With Unique Values

    I have a problem recently that is quite challenging.

    My spreadsheet has about 54 worksheets. Each worksheet has 4 columns and it organized by a category I picked.

    Column A = Url
    Column B =Random number
    Column C = Website Name

    Ideally my goal is to check every single url and make sure they are not duplicated in any other worksheet, but that might not be possible. For now, I'm sticking to checking each worksheet one by one.

    I tried conditional formatting and it works great to isolate and color code the duplicates, but there is a problem. Sometimes the url has a / at the end and sometimes it doesn't, so the software will not recognize it.

    Example
    A B C
    https://www.websiteurlhere.com 48965 Website Name
    https://www.websiteurlhere.com/ 85794 Website Name

    I have no idea how to get Excel to recognize the two url examples above as duplicates and highlight them. I suppose I could attach a / to every cell that doesn't have the symbol, but I don't think that is feasible given the number of urls in each spreadsheet.

    Does anybody have any suggestions or recommendations?

    Thanks.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Remove Duplicates With Unique Values

    Software? Current macro?

    TestURL =SUBSTITUTE(A1,"/","",3)
    Ben Van Johnson

  3. #3
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Remove Duplicates With Unique Values

    This is just a left field suggestion. Add formula to Column D to 'clean' the URL value from Column A. Then check Column D for duplicates.

    e.g. Cell D2 would be something like
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You will need to tweak the formula with TRIM if any of your URLs have trailing spaces
    *******************************************************

    HELP WANTED! (Links to Forum threads)
    Trying to create reusable code for Custom Events at Workbook (not Application) level

    *******************************************************

  4. #4
    Registered User
    Join Date
    10-02-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Remove Duplicates With Unique Values

    Where exactly do I put TestURL =SUBSTITUTE(A1,"/","",3) ?

    I am not using a macro, but I'm open to ideas.

  5. #5
    Registered User
    Join Date
    10-02-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Remove Duplicates With Unique Values

    This formula worked great. Thank you.

  6. #6
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Remove Duplicates With Unique Values

    Glad to help. And thank you for the rep

  7. #7
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Remove Duplicates With Unique Values

    If you had to use a macro to remove the "/" at the end try next code:
    It can be included in another one
    Please Login or Register  to view this content.
    Last edited by PCI; 09-26-2015 at 02:47 AM.
    - Battle without fear gives no glory - Just try

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 05-26-2015, 10:36 AM
  2. Formula to create a list of unique values / remove duplicates
    By TicklyTigger in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-12-2014, 08:39 AM
  3. [SOLVED] Trying to find duplicate, copy and paste certain unique values, and remove the duplicates
    By adamstarr12 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-24-2014, 04:21 AM
  4. [SOLVED] Remove duplicates to create list of unique values?
    By hulayogi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-17-2013, 01:46 PM
  5. [SOLVED] Unique Values Without Remove Duplicates
    By Camel in forum Excel General
    Replies: 25
    Last Post: 07-20-2012, 04:17 AM
  6. Replies: 1
    Last Post: 05-24-2011, 04:04 AM
  7. Macro to remove duplicates values and keep unique values bases on multiple criteria
    By Ricker090 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2011, 04:37 PM

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