+ Reply to Thread
Results 1 to 4 of 4

Easy way to remove domain names from a list

  1. #1
    Registered User
    Join Date
    11-25-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    82

    Easy way to remove domain names from a list

    Hi Guys,

    I basically have a list of URLs some of them are page URLs e.g. http://shop.davidjones.com.au/djs/en/davidjones/dresses

    And some are domains http://www.christinarossi.com/

    What i want to basically do is remove all domain names from the list.

    I've attached a sample.

    Any ideas if you can do this easily with excel?

    Thanks,
    Chris
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Easy way to remove domain names from a list

    What would a sample answer look like?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-25-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    82

    Re: Easy way to remove domain names from a list

    All the domain names would be removed e.g.:

    http://lisagowing.com/

    So anything which has nothing after the third /

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Easy way to remove domain names from a list

    In B2 and copy down,

    =(RIGHT(A2) = "/") * (LEN(A2) - LEN(SUBSTITUTE(A2, "/", "")) = 3)

    Autofilter on col B and clear or delete the rows with a 1.

    Row\Col
    A
    B
    1
    URLs
    Delete
    2
    http://www.myer.com.au/shop/mystore/designer-dresses
    0
    3
    http://shop.davidjones.com.au/djs/en/davidjones/designer-dresses
    0
    4
    http://shop.davidjones.com.au/djs/en/davidjones/dresses
    0
    5
    https://www.shopbop.com/clothing-dresses/br/v=1/2534374302063518.htm?all
    0
    6
    http://www.frockaholics.com/
    1
    7
    http://www.talulah.com.au/shop/talulah
    0
    8
    http://www.review-australia.com/shop/dresses
    0
    9
    http://www.asos.com/au/Women/Womens-Designer/Dresses/Cat/pgecategory.aspx?cid=6932
    0
    10
    http://www.bariano.com.au/estore/category/dresses.aspx
    0
    11
    http://www.tadashishoji.com/shop/dresses
    0
    12
    http://www.stevenalan.com/womens-clothing-dresses
    0
    13
    http://www.talulah.com.au/shop/talulah-swim-resort/resort-dresses-and-kimonos
    0
    14
    http://www.boutique1.com/womens/clothing/dresses
    0
    15
    http://www.christinarossi.com/
    1
    16
    http://www.tkmaxx.com/women/dresses/icat/3091
    0
    Last edited by shg; 09-08-2015 at 08:39 PM.
    Entia non sunt multiplicanda sine necessitate

+ 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. [SOLVED] Remove Duplicate DOMAIN name
    By cloydszcky in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-31-2014, 03:15 AM
  2. [SOLVED] Draw random names from list and then remove, carry on till no names left in list
    By dave1983 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-26-2014, 12:14 PM
  3. macro to detect domain names (in url's) ?
    By sami770 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 01-08-2013, 02:34 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. [SOLVED] Automatically Extracting the Domain Names from a list of Websites in Excel 2007
    By retardlike69 in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 10-18-2012, 09:43 AM
  6. [SOLVED] Tracking domain names
    By \(Joseph in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2006, 04:25 AM
  7. Help with macro to track domain names
    By \(Joseph in forum Excel General
    Replies: 0
    Last Post: 02-19-2006, 01:35 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