+ Reply to Thread
Results 1 to 4 of 4

Advanced String Equation Needed

  1. #1
    Registered User
    Join Date
    09-17-2013
    Location
    Brookline, MA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Advanced String Equation Needed

    Hi,

    I am maxed out on my Excel capabilities trying to write an equation to remove one or more sets of html codes from a text field. I've tried various combinations of substitute and find codes to no avail. I want to remove all texts within carats "<" and ">", including the carats. I've pasted an example below:

    <P><EM>Use the pattern below to answer question 20.</EM></P><P><STRONG>1, 3, 7, 15, 31, 63</STRONG></P><P>The 14th term in this pattern is 16,383. What is the 15th term?</P>

    It should read:
    Use the pattern below to answer question 20. 1, 3, 7, 15, 31, 63 The 14th term in this pattern is 16,383. What is the 15th term?

    Thanks for any help you can provide. Kathy

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Advanced String Equation Needed

    Try this..

    - Ctrl+H (Find & replace)
    - Find field <*>
    - Replace field leave as blank
    - Replace all
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Advanced String Equation Needed

    You can do this in one operation using Find & Replace. Highlight the affected cells then CTRL-H to bring up the F&R dialogue box. Enter as follows:

    Find what: <*>
    Replace with: leave empty

    Click Replace All. The asterisk is the wildcard character, which means any characters between the angle brackets.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    09-17-2013
    Location
    Brookline, MA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Advanced String Equation Needed

    Thank you both! That is so simple and it works! Much appreciation, Kathy

+ 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. Weekly Sum Equation Needed
    By neelpatel in forum Excel General
    Replies: 5
    Last Post: 07-27-2012, 04:08 PM
  2. Randomizing equation help needed
    By skyping in forum Excel General
    Replies: 10
    Last Post: 08-11-2010, 07:34 PM
  3. Help needed while solving a power equation
    By Morgan Flint in forum Excel General
    Replies: 0
    Last Post: 08-14-2008, 06:29 AM
  4. Formula help needed to solve equation?
    By excel45 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-02-2008, 08:31 AM
  5. Replies: 2
    Last Post: 07-21-2006, 10: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