+ Reply to Thread
Results 1 to 9 of 9

Remove Duplicate DOMAIN name

  1. #1
    Registered User
    Join Date
    10-30-2014
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    7

    Remove Duplicate DOMAIN name

    Hi there,

    I have a excel file with 3 columns:

    Column A - Title
    Column B - URL/Domain
    Column C - PageRank

    I want to remove all the duplicates domain name in Column B.

    Let's say,

    I want to keep the first URL along with the Column A and C and remove the following URLs below.

    http://accesswinnipeg.com/2013/11/20...rican-apparel/
    http://accesswinnipeg.com/2014/01/va...r-hm-location/
    http://accesswinnipeg.com/2014/05/an...opping-centre/
    http://accesswinnipeg.com/2014/10/an...park-now-open/

    Thanks in advance!!

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Remove Duplicate DOMAIN name

    Try this:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    10-30-2014
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    7

    Re: Remove Duplicate DOMAIN name

    Hi Olly ,

    Thanks for the response, but the code didn't keep the unique domain
    I want to keep only one website/domain, Let's say if there are 5 post from huppingtonpost.com

    huppingtonpost.com/blog1
    huppingtonpost.com/blog2
    huppingtonpost.com/blog3
    huppingtonpost.com/blog4
    huppingtonpost.com/blog5

    I want to keep the first one.

    May I attach the file so you can check it?
    Help.xlsx

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Remove Duplicate DOMAIN name

    Hi cloydszcky,

    Welcome to the forum!!

    Try this - just change any code lines that I've marked 'change to suit' to match your own needs (if required):

    Please Login or Register  to view this content.
    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  5. #5
    Registered User
    Join Date
    10-30-2014
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    7

    Re: Remove Duplicate DOMAIN name

    Hi Trebor76,

    Thanks for the code, I appreciate your help.

    But that's not what I want to happen

    huppingtonpost.com/blog1
    huppingtonpost.com/blog2
    huppingtonpost.com/blog3
    huppingtonpost.com/blog4
    huppingtonpost.com/blog5

    I want to keep the first URL without cutting the /blog1 (not only the domain name huffingtonpost.com) and also include the Column A - Title and Column C - Pagerank

    Thanks!

  6. #6
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Remove Duplicate DOMAIN name

    Try this:

    Please Login or Register  to view this content.
    Robert

  7. #7
    Registered User
    Join Date
    10-30-2014
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    7

    Re: Remove Duplicate DOMAIN name

    Trebor76 Awesome!!! Great!!! Thank You!!!

  8. #8
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Remove Duplicate DOMAIN name

    Trebor76 Awesome!!! Great!!! Thank You!!!
    You're welcome

    If you could mark the thread as solved it would be appreciated

    Regards,

    Robert

  9. #9
    Registered User
    Join Date
    10-30-2014
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    7

    Re: Remove Duplicate DOMAIN name

    Done! Thanks again

+ 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. find specific domain name in a cell and remove it
    By mumsys in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-08-2014, 10:26 AM
  2. How to Remove Duplicate Domain Based URL in excel sheet.
    By mikebudhani in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-05-2014, 02:28 AM
  3. Replies: 0
    Last Post: 09-16-2013, 04:16 AM
  4. Sort Email by domain and move domain group to new list
    By grandparocks in forum Excel General
    Replies: 4
    Last Post: 01-06-2013, 09:04 PM
  5. Replies: 0
    Last Post: 06-03-2006, 12:10 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