+ Reply to Thread
Results 1 to 7 of 7

Thread: Convert special characters

  1. #1
    Registered User
    Join Date
    11-12-2010
    Location
    uae
    MS-Off Ver
    Excel 2003
    Posts
    21

    Thumbs up Convert special characters

    Hi,

    I have a txt file which has a special characters. I use text to column option in excel to sepearte it . Is there any other easy way to copy it in the excel please.. My sample txt file is attached herewith.


    regards,

    ravi
    Attached Files Attached Files

  2. #2
    Forum Moderator dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003 & 2007
    Posts
    3,714

    Smile Re: Convert special characters

    Good morning raviexcel

    It appears ot be a .csv file.
    What is the question?
    Is th attached correct?

    DominicB
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-12-2010
    Location
    uae
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Convert special characters

    Hi Domini,

    Thanks! This what i need it. I dont know how to do it. I need also the column no C to be in the txt format since the number appers as scientific format.


    Regards,

    ravi

  4. #4
    Forum Moderator dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003 & 2007
    Posts
    3,714

    Smile Re: Convert special characters

    Hi raviexcel

    Copy your text file and paste it into Excel.
    Go to Data > Text to Columns
    Choose Delimited and click Next.
    Make sure that only Comma is selected and select the column you want to create as text and clcik on the text button. Then click Finish.

    HTH

    DominicB

  5. #5
    Registered User
    Join Date
    11-12-2010
    Location
    uae
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Convert special characters

    Hi,

    I have been using the same option (Text to Column). Is there any other solutions to do it?

    I know also other option that open a txt file through excel & do the same.


    regards,

    ravi

  6. #6
    Forum Moderator dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003 & 2007
    Posts
    3,714

    Smile Re: Convert special characters

    Hi raviexcel

    If you attempt to open the file in Excel you will be presented with the same wizard. I didn't save your attachment, just opened it so opted for the copying route - and also you mentioned the text to columns feature by name rather than import.

    HTH

    DominicB

  7. #7
    Forum Guru snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,151

    Re: Convert special characters

    Sub snb()
      Open "E:\OF\a[1].txt" For Input As #1
        sq = Split(Replace(Replace(Input(LOF(1), #1), ",", ",'"), vbCrLf, vbCrLf & "'"), vbCrLf)
      Close
    
      For j = 0 To UBound(sq)
        Cells(j + 1, 1).Resize(, 7) = Split(sq(j), ",")
      Next
    End Sub



+ 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.2.0