+ Reply to Thread
Results 1 to 6 of 6

Trim text

  1. #1
    Registered User
    Join Date
    02-26-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    8

    Trim text

    HI,

    I am stuck in a sheet if anyone can help me out i will be oblidged.

    I am attaching test file here,

    I have some data in E column with some formule, but I want a perticular text to next column

    Kindly help.

    Regards,
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Trim text

    =LEFT(RIGHT(E2,LEN(E2)-FIND("|",E2)),FIND("-",RIGHT(E2,LEN(E2)-FIND("|",E2)))-1)
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Trim text

    Probably better ways to do this, but this works...
    =LEFT(MID(E2,FIND("|",E2,1)+1,99),FIND("-",MID(E2,FIND("|",E2,1)+1,99),1)-1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Trim text

    use this formula

    =REPLACE(LEFT(RIGHT(E2,LEN(E2)-FIND("|",E2)),FIND("-",RIGHT(E2,LEN(E2)-FIND("|",E2)))),FIND("-",LEFT(RIGHT(E2,LEN(E2)-FIND("|",E2)),FIND("-",RIGHT(E2,LEN(E2)-FIND("|",E2))))),1,"")

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Trim text

    Happy to help, thanks for the feedback

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Trim text

    maybe also this??

    =MID(LEFT(E2,LEN(E2)-14),41,99)
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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. Text function will not TRIM!
    By Snaybot in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-29-2014, 11:48 AM
  2. [SOLVED] Trim text
    By rizmomin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-19-2013, 11:18 AM
  3. [SOLVED] Trim text
    By rizmomin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-15-2013, 02:34 PM
  4. Trim Text in VBA
    By Dracana in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-16-2010, 03:00 PM
  5. Trying to trim a trailing space char and the Trim function isn't working
    By Psychochook in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2007, 11:28 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