+ Reply to Thread
Results 1 to 10 of 10

How to extract data from txt (not the usual comma delimited) into excel

  1. #1
    Registered User
    Join Date
    05-02-2012
    Location
    Bangkok, Thailand
    MS-Off Ver
    Excel 2003
    Posts
    24

    How to extract data from txt (not the usual comma delimited) into excel

    I have a data in a txt file as follow. How do I extract them into excel column?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: How to extract data from txt (not the usual comma delimited) into excel

    Please reply and attach your text file
    - click Reply
    - click Go Advanced
    - look below for Manage Attachments
    - folllow screen instructions

    thanks
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Registered User
    Join Date
    05-02-2012
    Location
    Bangkok, Thailand
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: How to extract data from txt (not the usual comma delimited) into excel

    Here's the txt file. Thank you.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: How to extract data from txt (not the usual comma delimited) into excel

    deleted by Kev-
    jindon provided solution before I amended my code
    Last edited by kev_; 09-13-2017 at 06:52 AM.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: How to extract data from txt (not the usual comma delimited) into excel

    Try
    Please Login or Register  to view this content.
    or perhaps
    Please Login or Register  to view this content.
    Last edited by jindon; 09-13-2017 at 07:08 AM.

  6. #6
    Registered User
    Join Date
    05-02-2012
    Location
    Bangkok, Thailand
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: How to extract data from txt (not the usual comma delimited) into excel

    For the first one I get this result.
    Please Login or Register  to view this content.
    For the second one I get this. Only the Value column is missing. Probably because when it follows by number there is no quotation marks?

    This is the one I want. Thank you.
    Please Login or Register  to view this content.
    Last edited by hellowit; 09-13-2017 at 09:45 PM.

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: How to extract data from txt (not the usual comma delimited) into excel

    Change to
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-02-2012
    Location
    Bangkok, Thailand
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: How to extract data from txt (not the usual comma delimited) into excel

    It works perfectly. Thank you so much.
    Out of curiosity, if I want the result to be in an array instead of cells. Is there anyway to do that?

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: How to extract data from txt (not the usual comma delimited) into excel

    Variable a is a 2d array.
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    05-02-2012
    Location
    Bangkok, Thailand
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: How to extract data from txt (not the usual comma delimited) into excel

    Thank you.

+ 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. Replies: 1
    Last Post: 02-02-2015, 11:05 AM
  2. [SOLVED] Merging data vertically in Excel CSV (comma delimited)?
    By SteveJeffs in forum Excel General
    Replies: 4
    Last Post: 05-30-2013, 04:03 AM
  3. Replies: 2
    Last Post: 03-02-2013, 11:06 AM
  4. [SOLVED] Help needed on how to extract substrings from comma delimited text
    By kknb0800 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-18-2013, 03:18 PM
  5. [SOLVED] Pipe delimited vs comma delimited problem
    By theletterh in forum Excel General
    Replies: 4
    Last Post: 01-23-2013, 07:27 PM
  6. arranging external data delimited by comma
    By Cicada in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-20-2009, 01:13 PM
  7. Splitting Comma Delimited Data
    By yawnzzzz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-22-2008, 01:11 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