+ Reply to Thread
Results 1 to 5 of 5

Remove a pattern of text from cells

  1. #1
    Registered User
    Join Date
    03-21-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    19

    Remove a pattern of text from cells

    Hi,

    Looking for some help on cleaning up data...

    I have a large amount of data that looks like this, here are 4 rows.

    I'd like to automatically remove all the "Borrower added on XX/XX/XX > " text and "XXXXXX added on XX/XX/XX > " text.

    The dates and special ID number change depending on the cell.

    ------------


    Borrower added on 01/19/10 > I plan to refinance a loan I had previously taken out several years ago. This loan still has 40 months left with a monthly payment of $537. I plan to reduce the monthly payment so I can put more money on a car loan to pay off quicker.<br/>

    Borrower added on 03/15/11 > Using to payoff high interest rate credit card<br/> Borrower added on 03/16/11 > I have no late payments listed on my credit report (ever).<br/>Using this loan will reduce my financial burden and increase my spare funds.<br/>My job is a fully funded government contract.<br/>

    589166 added on 12/11/09 > Trying to get my debt under control so I can give my daughters what they deserve.<br/>

    588059 added on 12/09/09 > I have two other sources of income which amout to $1500 per month.<br/> 588059 added on 12/10/09 > I have been with my current employer for 23 years. There is an error on the details page.<br/>

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Remove a pattern of text from cells

    Assuming your data starts in A1 (change reference to suit your needs), put this in the cell next to it:

    =SUBSTITUTE(MID(A1,FIND(">",A1)+2,LEN(A1)),"<br/>","")

    This will get rid of the "Borrower added..." and "xxxxx added..." parts, as well as the <br/> html on the end, leaving you with only the text desired.

    - Moo

    P.S. - If you don't need to remove the "<br/>" then just use:

    =MID(A1,FIND(">",A1)+2,LEN(A1))

  3. #3
    Registered User
    Join Date
    03-21-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Remove a pattern of text from cells

    Thanks for the guidance!

    It's looking good and am glad to learn more functions.

    I didn't fully mention that the text to delete could be mentioned in the beginning, middle, end, and several times in a cell. I attached an example spreadsheet. Current formula cuts off too much text on some cells...
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-21-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Remove a pattern of text from cells

    I will ask commercial services and report back.

  5. #5
    Registered User
    Join Date
    03-21-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Remove a pattern of text from cells

    Solved here

    Please Login or Register  to view this content.

+ 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. [SOLVED] Remove pattern from cells only if another cell has a specific selection from dropdown list
    By mook25 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 08-16-2013, 07:32 AM
  2. [SOLVED] Search text in cells, find matching text based on list, remove all but one entry
    By adam_mc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2013, 12:50 PM
  3. If any cell in range is changed to a certain value/text, fill cells to right with pattern
    By suzanchesson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2012, 09:47 AM
  4. [SOLVED] VBA to add and remove text within cells
    By Annie in forum Excel General
    Replies: 2
    Last Post: 05-29-2006, 07:15 PM
  5. Remove variable text in cells
    By BHalberstater in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 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