+ Reply to Thread
Results 1 to 6 of 6

How to extract a portion of URL and merge it with a string

  1. #1
    Registered User
    Join Date
    12-14-2013
    Location
    edo,nigeria
    MS-Off Ver
    Excel 2007
    Posts
    85

    How to extract a portion of URL and merge it with a string

    Hello guys. I want to extract a portion of url and merge it with " @facebook.com" .
    For example , I put http://facebook.com/groups/1234456/ in cell A1 , then I have [email protected] in cell B1. If I have http://facebook.com/groups/christopher in cell A2 I should have [email protected] in cell B2.

    Thanks.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How to extract a portion of URL and merge it with a string

    =SUBSTITUTE(RIGHT(A1,LEN(A1)-27),"/","")&"@groups.facebook.com"
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: How to extract a portion of URL and merge it with a string

    If it is a one time thing you can use TextToColumns and break the cells out by "/"
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  4. #4
    Registered User
    Join Date
    12-14-2013
    Location
    edo,nigeria
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: How to extract a portion of URL and merge it with a string

    thanks @special-k . It worked!

  5. #5
    Registered User
    Join Date
    12-14-2013
    Location
    edo,nigeria
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: How to extract a portion of URL and merge it with a string

    A little prpblem though, when I paste https://www.facebook.com/groups/124178424281618/ , I get [email protected] instead of [email protected]

  6. #6
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How to extract a portion of URL and merge it with a string

    Try

    =SUBSTITUTE(RIGHT(A13,LEN(A13)-FIND("groups",A13)-6),"/","")&"@groups.facebook.com"

+ 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. Matching specific portion of a string and retrieving the whole string
    By mellowtang in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2015, 07:06 AM
  2. Extract data from different columns in an excel sheet and merge them as a string.
    By zrsansari in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-31-2012, 12:55 AM
  3. [SOLVED] How do I extract a portion of a string into an adjacent cell?
    By tura910 in forum Excel General
    Replies: 4
    Last Post: 03-26-2012, 08:40 AM
  4. Formula to extract a portion or url
    By maheshr68 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2012, 02:20 PM
  5. Extract a specific portion of a text string in Excel?
    By drawkcaB in forum Excel General
    Replies: 3
    Last Post: 05-18-2010, 01:48 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