+ Reply to Thread
Results 1 to 5 of 5

Excel to text file transfer of data.

  1. #1
    Registered User
    Join Date
    02-09-2010
    Location
    Dayton
    MS-Off Ver
    Excel 2007
    Posts
    23

    Excel to text file transfer of data.

    I have a data in excel sheet which I would like to convert into a text file. In the text file, the data format should be with the brackets and comma separated.

    For example:
    In excel sheet:

    12 2 45 25
    23 1 35 50
    24 1 21 23



    In text file the same data should be in the following format:

    (12,2,45)[25]
    (23,1,35)[50]
    (24,1,21)[23]

    The above is for one data set . In other data set, the brackets may change places for example:
    (1,23)[12,34,56]

    I have many data sets in which I would like to put brackets at the necessary places according to the requirement. Kindly help

    Thanking you,
    Ramanan
    Attached Files Attached Files
    Last edited by rylo; 02-11-2010 at 01:39 AM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Excel to text file transfer of data.

    Hi

    Here's one quick way.

    Please Login or Register  to view this content.
    rylo

  3. #3
    Registered User
    Join Date
    02-09-2010
    Location
    Dayton
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Excel to text file transfer of data.

    Hi Rylo,
    In the text file I am getting the data within quotes which I would like to avoid. I am not able to find out how to modify your code to eliminate those double quotes in the text file. Kindly help
    Ramanan

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Excel to text file transfer of data.

    Hi

    Had a funny feeling that may be an issue. Try this one.

    Please Login or Register  to view this content.
    rylo

  5. #5
    Registered User
    Join Date
    02-09-2010
    Location
    Dayton
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Excel to text file transfer of data.

    Thanks for the help..I finally got it..
    Ramanan

+ 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