+ Reply to Thread
Results 1 to 4 of 4

Text Extraction

  1. #1
    Registered User
    Join Date
    07-31-2014
    Location
    Livermore, CA
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Text Extraction

    Hi All,

    I have thousands of cells containing text. Some of those cell have a common thread...Person 2 stated:

    I would like to delete that phrase and any other text that follows.

    Thanks for any help you can provide.

    Jorge

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Text Extraction

    You didn't attach an example, so we can pretend you data is in Column A.

    Then in B1:

    =IF(ISNUMBER(SEARCH("Person 2 stated:",A1)),MID(A1,1,SEARCH("Person 2 stated:",A1)-1),A1)

    and copy downwards
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Text Extraction

    Or maybe this one

    =IFERROR(TRIM(REPLACE(A1,SEARCH("Person",A1),LEN(A1),"")),A1)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    07-31-2014
    Location
    Livermore, CA
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Re: Text Extraction

    Thank you very much daffodil11, solved my issue 100%.

+ 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 extraction using numbers MID()
    By heatwave in forum Excel General
    Replies: 4
    Last Post: 04-03-2011, 11:34 PM
  2. Text extraction and re-combination
    By slittlepage in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-06-2009, 03:45 PM
  3. Text Extraction
    By newbie13 in forum Excel General
    Replies: 4
    Last Post: 10-15-2008, 10:11 AM
  4. Complicated extraction of text
    By lohwk in forum Excel General
    Replies: 10
    Last Post: 08-31-2006, 01:37 AM
  5. [SOLVED] text extraction
    By Matt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-03-2006, 01:23 AM

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