+ Reply to Thread
Results 1 to 4 of 4

Trim Specific Values and Remove last right space

  1. #1
    Forum Contributor
    Join Date
    01-18-2009
    Location
    Montreal
    MS-Off Ver
    MS Office 2016
    Posts
    111

    Question Trim Specific Values and Remove last right space

    Hello everyone,

    Would appreciate if you can help me out on the below.

    I have a data extract that depicts the company info as this:

    Company [1]

    Can you let me know how I can delete:
    1. [
    2. ]
    3. Last right space

    Right now I'm doing the above manually and then afterwards I have my formula as: =LEFT(B2,FIND(" ",B2,LEN(B2)-1)) but is taking too long

    Final value should be:
    Company

    Thank you for your guidance.
    Last edited by jantonio; 05-02-2012 at 08:38 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,576

    Re: Trim Specific Values and Remove last right space

    Here, try this: =LEFT(F2,FIND(" [",F2&" ["))

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

    Re: Trim Specific Values and Remove last right space

    =trim(left(b2,find("[",b2)-1))

  4. #4
    Forum Contributor
    Join Date
    01-18-2009
    Location
    Montreal
    MS-Off Ver
    MS Office 2016
    Posts
    111

    Re: Trim Specific Values and Remove last right space

    Thank you...simple and efficient solution.

+ 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