+ Reply to Thread
Results 1 to 7 of 7

export txt to excel

  1. #1
    Registered User
    Join Date
    05-26-2023
    Location
    india
    MS-Off Ver
    2016
    Posts
    3

    export txt to excel

    in the attached .txt as we open in excel it comes in 1 row all
    can someone tell me how to import to excel so that when the figures start with xxx... IT begins in new row and i can differentiate my data
    like in this if you open txt new you can see all in new lines but when we export to excel all the data comes in 1
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,410

    Re: export txt to excel

    If you open it using Get Data (Data ribbon), you can get it into columns using the Custom option. You could then transform the columns to rows with a formula or VBA.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-26-2023
    Location
    india
    MS-Off Ver
    2016
    Posts
    3

    Re: export txt to excel

    thank you madam but can it be possible to share formula as it is still coming in 1 row
    thanking you
    regards

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,410

    Re: export txt to excel

    You can use PowerQuery - when you import the .txt file with Get Data, choose the Transform Data option (button at the bottom).

    I can't post the code (it's too long), but it's all done with UI clicks - see the workbook and launch the query to see the steps taken.
    Attached Files Attached Files

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,410

    Re: export txt to excel

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  6. #6
    Registered User
    Join Date
    05-26-2023
    Location
    india
    MS-Off Ver
    2016
    Posts
    3
    Am extremely extremely sorry for not replying as had some personal problem due to which could not try it bit you have explained beautifully and i very well hope it will get solved
    Thank you and if i require may trouble you again
    With folded hands accept my apology for replying late
    Thanks
    Regards

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,410

    Re: export txt to excel

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. Export worksheets to new file VBA to 'Break Links' on export?
    By Spoonman667 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-18-2021, 03:13 AM
  2. Replies: 0
    Last Post: 11-10-2016, 10:18 AM
  3. [SOLVED] Data Export Macro works in Excel 2013 but not Excel 2007
    By margentieri in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-27-2016, 10:49 AM
  4. Taking data from CSV to Excel (Filter & Sort), then export to new excel file
    By tmhall in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-08-2014, 11:26 AM
  5. Replies: 0
    Last Post: 02-20-2013, 09:57 AM
  6. I would need a macro to export data from base example workbook to export worbook
    By slato8 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-01-2012, 11:21 AM
  7. Replies: 2
    Last Post: 07-18-2012, 11:17 PM

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