+ Reply to Thread
Results 1 to 9 of 9

Need formula for removing words from a cell.

  1. #1
    Registered User
    Join Date
    11-05-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Need formula for removing words from a cell.

    I need a formula for removing the first few words from a cell.

    For example, i need to take "5th dimension" from "5th dimension one less bell to answer"

    and seperately to take "one less bell to answer" away.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Need formula for removing words from a cell.

    In A1 cell
    5th dimension one less bell to answer

    In B1 cell
    5th dimension

    In C1 cell
    =TRIM(SUBSTITUTE(A1,B1,""))

    Change the cell reference to your desired cell.

    Hope this helps!


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    11-05-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Need formula for removing words from a cell.

    In cell B1, would i have to manually type that in? or could i work around the formula you put in C1?

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Need formula for removing words from a cell.

    Quote Originally Posted by Luke Andrews View Post
    In cell B1, would i have to manually type that in? or could i work around the formula you put in C1?
    Replace the B1 with your text like the below
    =TRIM(SUBSTITUTE(A1,"5th dimension",""))

    Hope this helps!

  5. #5
    Registered User
    Join Date
    11-05-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Need formula for removing words from a cell.

    that worked fine, but i have another 497 of these to do i need something that as a general rule would take out the first couple of words, after that i could go down and make slight amendments

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need formula for removing words from a cell.

    Or do you need in B1, the first 2 words of any string in A1?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  7. #7
    Registered User
    Join Date
    11-05-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Need formula for removing words from a cell.

    Fotis, thats what im looking for

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Need formula for removing words from a cell.

    Quote Originally Posted by Luke Andrews View Post
    that worked fine, but i have another 497 of these to do i need something that as a general rule would take out the first couple of words, after that i could go down and make slight amendments
    If you are comfortable in using User Defined Function or VBA Macro then post a sample data with the criteria's needs to be removed.

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need formula for removing words from a cell.

    In B1

    =LEFT(A1,FIND(" ",A1,FIND(" ",A1,1)+1)-1)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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