+ Reply to Thread
Results 1 to 4 of 4

Cell with HTML Code

  1. #1
    Registered User
    Join Date
    01-18-2008
    Location
    Minnesota
    MS-Off Ver
    2003 and 2007
    Posts
    6

    Cell with HTML Code

    I have a spreadsheet that is the result of an export from another system. All of the cells export cleanly except for the description field, which exports as HTML code within the cell value. Within this HTML code is the actual text that should be the final value of the field, but I am unsure if there is a quick and easy way to clean up the cell value to be just the text. Here is a sample of one of the cell values:

    "<HTML><HEAD><TITLE>HtmlEditor</TITLE>
    <STYLE type=text/css>BODY {
    PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: 400; FONT-SIZE: 10pt; PADDING-BOTTOM: 0px; MARGIN: 0px; COLOR: #000000; PADDING-TOP: 0px; FONT-FAMILY: Microsoft Sans Serif
    }
    </STYLE>
    </HEAD>
    <BODY><SPAN
    style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">Review
    over states that have enforced Rule 14 to ensure that anyone who works in the
    state and makes over a specified amount of money during their stay must file a
    state tax return.</SPAN></BODY></HTML>"


    The text that is needed is the part at the end that says "Review over states..." Does anyone know an easy way to extract this information from each of the cells, or will we just have to manually do so each time we run the report.

    Let me know if you need further deatils.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Hi Bnkeane,

    I'm guessing it's not going to be this simple, but is the code leading up to the text you need always AR-SA"> ? And is the code afterward always </SPAN> ?

    If so, you could use:
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    I'm sure there are other ways. If your data is not always consistent like that, it can be done, but would probably be a bit more complex.

  3. #3
    Registered User
    Join Date
    01-18-2008
    Location
    Minnesota
    MS-Off Ver
    2003 and 2007
    Posts
    6
    Unfortunately that is not the case. The HTML code in each cell is different depending on what the formatting was for that text in the program it was exported from.

    Any other suggestions would be appreciated. I can posd a sample of the cells if that would make it easier to examine.

    Thanks for the response!

  4. #4
    Registered User
    Join Date
    01-18-2008
    Location
    Minnesota
    MS-Off Ver
    2003 and 2007
    Posts
    6

    Bump

    Bump please...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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