+ Reply to Thread
Results 1 to 5 of 5

Extract part of text from one cell with a long URL with folders - help!

  1. #1
    Registered User
    Join Date
    01-06-2015
    Location
    Demi
    MS-Off Ver
    2013
    Posts
    2

    Question Extract part of text from one cell with a long URL with folders - help!

    Hi!

    I've got a tricky question, I've got a list of URL from a big website in a single cell, eg:
    http://aaa.111.pl/cms/portal/brand/c.../product_name/

    This is for a few brands, product categories, etc. - so please bear in mind that the number of letters between each /xxxxxxx/ are dynamic.

    From the one cell that I have I need to extract to B column the first part so the domain, so a few examples below based on columns:

    A: http://aaa.111.de/cms/portal/brand/c.../product_name/

    B: aaa.111.de

    C: brand

    D: country

    E: EU-category

    F: prod-information

    etc.

    But keep in mind that sometimes the name of the domain is insted of aaa.111.de different BB.33333.eu.
    So the numbers of letters are different but we can 'catch' the part in between two / / but... I don't know how to make it work.

    Please help.

  2. #2
    Registered User
    Join Date
    01-06-2015
    Location
    Demi
    MS-Off Ver
    2013
    Posts
    2

    Re: Extract part of text from one cell with a long URL with folders - help!

    Any ideas? I wasted 3 hours looking for this and nothing :/

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extract part of text from one cell with a long URL with folders - help!

    Try this one in B1 and pull formula to the right until you see blanks

    =TRIM(MID(SUBSTITUTE(SUBSTITUTE($A1,"http:/",""),"/",REPT(" ",255)),255*COLUMNS($A:A),255))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract part of text from one cell with a long URL with folders - help!

    Hi,

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract part of text from one cell with a long URL with folders - help!

    @Alkey,

    Much neater. I like it

+ 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. Extract and Copy Part of Text String From one cell to another
    By Chica SM in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-22-2014, 10:39 AM
  2. Extract number out of long text
    By tantcu in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-18-2013, 07:23 PM
  3. Extract only certain part of text from a cell
    By Dimitripros in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-13-2013, 03:05 AM
  4. what formula to extract text from a long string?
    By SEMMatt in forum Excel General
    Replies: 5
    Last Post: 10-07-2012, 10:23 PM
  5. Replies: 2
    Last Post: 01-11-2011, 07:02 AM

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