Results 1 to 26 of 26

macro to detect domain names (in url's) ?

Threaded View

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    145

    macro to detect domain names (in url's) ?

    Hello friends,
    I have an excel file with a single column, this column has 32 rows, each row has a url in it
    If you look at column A you will see that sometimes the same domain name appear more than a single time (for example: domain1.com/kjh54asfdasd.html, domain1.com/asd.html, and so on...) while some other times the domain name appear only once (for example: domain3.com/kjhgfjasfdasd.html).


    My question:

    Is there a way to make a macro that will do the following 2 things:

    1. Detect all domain names on column A from within the url's (for example: if the url is example.net/aaaaa.asp - then the macro detect example.net as the domain of the url), the detection should support the following domain type: .com, .net, .info, .org, .edu

    2. Extract the first 3 instances of each domain name on column A (together with the entire url) and copy them to column B
    If some domains has less than 3 instances - the macro will copy them as well


    Please see file attached so you see what I mean.
    Attached Files Attached Files
    Last edited by sami770; 01-07-2013 at 06:18 AM.

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