+ Reply to Thread
Results 1 to 4 of 4

How To Remove Everything After website url

  1. #1
    Registered User
    Join Date
    08-01-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question How To Remove Everything After website url

    Hi,

    I have large number of urls in following format

    http://www.abcd.com/rt33.html

    http://www.xyz.org/4rrr/test.html

    I want to remove everything after / i.e from the above urls i want to remove /rt33.html and /4rrr/test.html so that i get the unique urls only i.e http://www.abcd.com and http://www.xyz.org.

    Please help.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: How To Remove Everything After website url

    Hi and welcome to the forum,
    Assuming all URLs start with http://, try this formula :
    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,426

    Re: How To Remove Everything After website url

    Hi. Here's one way:

    =LEFT(A1,FIND(CHAR(1),SUBSTITUTE($A1,"/",CHAR(1),3))-1)

    Drag down.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    08-01-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: How To Remove Everything After website url

    Thanks very much..all worked.

+ 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. email validation/verification from website ( remove non-existing valid emails )
    By raj soni in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-18-2014, 08:26 PM
  2. Averageif WILDCARD for website.com AND EXCLUDE website.com.xx
    By Gerhard.Angeles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-14-2014, 09:12 AM
  3. Help with formula (remove text for say blog.website.com)
    By dominikm in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-12-2013, 07:05 AM
  4. Opening website, getting data, closing website
    By beta_leonis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2012, 03:50 AM
  5. HYPERLINK("website/"Cell.Text"website, A4)
    By keepstar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-17-2010, 05:17 PM

Tags for this Thread

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