+ Reply to Thread
Results 1 to 6 of 6

=trim ???

  1. #1
    Registered User
    Join Date
    04-28-2011
    Location
    St. Louis
    MS-Off Ver
    Excel 2007
    Posts
    21

    =trim ???

    I've seen this asked on the forum before and I've done some researching, but those questions/answers are more complex than my simple need.

    I have a string of characters that I need to 'trim' to the far left and the far right of the desired data.

    Example: blahblah.jpg ( https://busyevent.thingy.com/yupyup/...D/blahblah.jpg )

    I would like to remove all of the data in bold/red and put the remaining string/URL in the target cell.

    Your help is appreciated.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: =trim ???

    Hi BusyEvent,

    I am not able to view the link, could you upload the sample workbook. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: =trim ???

    You can use TextToColumns with delimited ( and ). So basically, do TextToColumns twice to capture everything in between ( and )

  4. #4
    Registered User
    Join Date
    04-26-2012
    Location
    Norwalk, CT
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: =trim ???

    are they all in this format? whatever.jpg (the stuff you want ) ?

    if so, highlight the column of cells, and select Data -> Text to columns. Select delimited, and use "(" (without the quotes) as your delimiter. This will split up your data between two columns (or more if you have multiple "("'s )

    Let me know if this helps!

  5. #5
    Registered User
    Join Date
    04-28-2011
    Location
    St. Louis
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: =trim ???

    Thanks all...the link is unimportant...all I really need is an =trim formula that will remove the 'red' stuff and paste the remaining url/string into the target cell.

    I've tried the data > text but that isn't working.

    ???

  6. #6
    Registered User
    Join Date
    04-26-2012
    Location
    Norwalk, CT
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: =trim ???

    Try this (assuming it's in cell D4). Note that this formula will only work assuming they are all in the same format you provided in original post

    =MID(D4,FIND("(",D4,1)+2,LEN(D4)-(FIND("(",D4,1)+2))

+ 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