+ Reply to Thread
Results 1 to 7 of 7

Help with formula (remove text for say blog.website.com)

  1. #1
    Registered User
    Join Date
    06-12-2013
    Location
    PErth
    MS-Off Ver
    Excel 2003
    Posts
    3

    Help with formula (remove text for say blog.website.com)

    Hi,

    I need some help with a question. I found an add in online that uses a formula that would take a list of URL's like this:

    http://www.reddit.com/r/datasets/
    http://www.di.unipi.it/~gulli/AG_cor..._articles.html
    https://555.explore.data.gov/Other/D...alog/pyv4-fkgv

    Down to this:

    reddit.com
    di.unipi.it
    555.explore.data.gov

    The nexzt step is to that the list down to this


    reddit.com (no change)
    di.unipi.it (remove di.)
    data.gov (remove 555.explore)

    So in the end I just want to end up with what is before the first period and what is after the last period.

    I found out that if you do a Find and Replace with .* or *. it gives me the text after the last period or the text before the last period. This still doesn't suit what I need.

    In the end say blog.dominik.com is the site. Then the blog part is called a subdomain of a website and I just want to filter the results of the 50,000 urls I have in a spreadsheet to just the main website and the extension of say .com. Somt he dn result should be dominik.com

    Is there a formula for this? Or is there some way to filter how many periods are in a set of data so the site that are just website.com for example are at the top and the next set of date is like blog.wesbite.com and if there is a 3rd period the next set would be all the sites that would be 1.blog.dominik.com

    Any help would be greatly appreciated!

    Dominik

    P.S. I know I can use Date > Text to colums and I setup a template for this with a copy and paste but it's still quite time consuming so that's not waht I'm looking for

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Help with formula (remove text for say blog.website.com)

    try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Help with formula (remove text for say blog.website.com)

    Here.. Try to enter more web's for testing
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-12-2013
    Location
    PErth
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Help with formula (remove text for say blog.website.com)

    Quote Originally Posted by zbor View Post
    Here.. Try to enter more web's for testing
    Love it! Zorb you don't understand how much time you just saved me man! Seriously I sincerely appreciate it man!

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Help with formula (remove text for say blog.website.com)

    well i suppose what i posted is not working then?

  6. #6
    Registered User
    Join Date
    06-12-2013
    Location
    PErth
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Help with formula (remove text for say blog.website.com)

    Quote Originally Posted by martindwilson View Post
    well i suppose what i posted is not working then?
    It just came back with that error where it says VALUE. All is good though, sharing is caring, thanks for replying also

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Help with formula (remove text for say blog.website.com)

    i don't see that from your example it works fine
    Attached Files Attached Files

+ 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