+ Reply to Thread
Results 1 to 2 of 2

Conversion Question

  1. #1
    Registered User
    Join Date
    10-01-2011
    Location
    Massachusetts
    MS-Off Ver
    Excel 2003
    Posts
    1

    Conversion Question

    Hello Everyone,

    Here is what I have:

    I use excel 2002.

    I have a csv file that has many fields.

    One of the fields is called "Description".

    The value in this field is formatted in text. The text was saved in this field with double quotes, one in the front of the text and one in the end. This allows the formatting of the text to remain within the excel file.

    For example, I will take everything that I have written so far above this line and put one double quote in front of the first word and the very last word used. So it would look like this.

    "Hello Everyone,

    Here is what I have:

    I use excel 2002.

    I have a csv file that has many fields.

    One of the fields is called "Description".

    The value in this field is formatted in text. The text was saved in this field with double quotes, one in the front of the text and one in the end. This allows the formatting of the text to remain within the excel file."
    Once this is entered into the cell, the double quotes are not visible, but the formatting stays exactly the way you see it above without the quotes.

    The Conversion Question:

    I would like to know how I can take this csv file and convert the field "Description" so that the values within the cells are formatted in HTML. Basically, the HTML would consist of line breaks using the <br>.

    The reason:

    I would like to import this file into a field in a database that is a HTML type field. I need to keep the formatting that is why I need to convert the values in this field into HTML.

    Attachments:

    I have attached an example of what I'm talking about. The first one labeled A is the file before conversion and just in text.

    The second one labeled B is the same file except the values in the field are in HTML.

    I have a feeling that this is something one of you excel masters knows how to do.

    Please let me know your thoughts and I thank who ever gives me a hand on this.

    Matt


    (i had to do the sample in excel format as csv files are not accepted as uploads)
    Attached Files Attached Files
    Last edited by Leith Ross; 10-01-2011 at 10:22 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Conversion Question

    Hello supplyman,

    Welcome to the Forum!

    It would have been better if file "A" contain the same text as in "B". I see what you want to do with the HTML but I need to see the raw text also. If you could provide a few samples that would be helpful as well.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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