+ Reply to Thread
Results 1 to 7 of 7

Extracting substring

  1. #1
    Registered User
    Join Date
    06-07-2016
    Location
    Richmond, VA
    MS-Off Ver
    365 Apps for business
    Posts
    82

    Extracting substring

    I have this copy in cell A1.

    https://www.test.org/sample/text/

    I'm struggling to extract only "text" from this string.

    Can anybody help please?

  2. #2
    Valued Forum Contributor unit285's Avatar
    Join Date
    10-29-2015
    Location
    TN
    MS-Off Ver
    Office 365
    Posts
    358

    Re: Extracting substring

    Your link is broken. Try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-07-2016
    Location
    Richmond, VA
    MS-Off Ver
    365 Apps for business
    Posts
    82

    Re: Extracting substring

    It's a dummy link, not real.

    I should've stated, I need a formula for this, not a VBA solution.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,498

    Re: Extracting substring

    You probably should post a sample workbook with examples of what you have and the results you want. It only Hass to be 15 to 20 rows. See the instructions in the yellow banner at the top of the post.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,663

    Re: Extracting substring

    Try this:

    =TRIM(RIGHT(SUBSTITUTE(A1,"/",REPT(" ",99)),198))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Extracting substring

    Please try,

    =TRIM(MID(SUBSTITUTE(A1,"/",REPT(" ",LEN(A1))),LEN(A1)*(LEN(A1)-LEN(SUBSTITUTE(A1,"/",""))-1),LEN(A1)))

    Regards

  7. #7
    Registered User
    Join Date
    06-07-2016
    Location
    Richmond, VA
    MS-Off Ver
    365 Apps for business
    Posts
    82

    Re: Extracting substring

    Quote Originally Posted by AliGW View Post
    Try this:

    =TRIM(RIGHT(SUBSTITUTE(A1,"/",REPT(" ",99)),198))
    This worked. Thank you so much.

+ 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. Extracting a substring
    By travelfreakg2g in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-13-2021, 12:00 PM
  2. [SOLVED] Extracting data after 2nd substring instance
    By cavhar1998 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-01-2019, 06:57 PM
  3. Need help in extracting substring from string
    By juixyy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-14-2016, 05:28 AM
  4. Replies: 4
    Last Post: 03-20-2014, 01:39 PM
  5. [SOLVED] Extracting a Substring Between Second and Third Delimiters
    By MrGadget6977 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-18-2013, 05:54 PM
  6. Extracting substring function VBA
    By friko16 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2013, 06:04 PM
  7. Extracting Substring from Column of Data
    By Narmerguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2011, 10:34 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