+ Reply to Thread
Results 1 to 8 of 8

Excel importing text file as one long row

  1. #1
    Registered User
    Join Date
    03-02-2009
    Location
    Houston, Texas, USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Excel importing text file as one long row

    A (hopefully) quick question: I'm importing a text file into Excel 2003. The file has a few hundred text strings separated by semicolons. When I import it, I specify that the values are delimited by the semicolons, and Excel imports it as one long row with each value in a separate column. Is it possible for me to tell Excel to import the file so that each value is in the first column of a separate row? Thanks in advance to all who respond.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Excel importing text file as one long row

    So is just "one" column of data you are trying to import?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-02-2009
    Location
    Houston, Texas, USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Excel importing text file as one long row

    Quote Originally Posted by NBVC View Post
    So is just "one" column of data you are trying to import?
    Thanks for your response! Yes, the text file is one extremely long line of text, with semicolons separating the various strings in the line. I would like to import the data into a single column.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Excel importing text file as one long row

    I would suggest you delimit by semicolon into 1 row then copy that row go to the first cell you want to start the column in (can't overlap that original row, though) and do a Paste|Special >> Transpose... this will send it vertical.

  5. #5
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,500

    Re: Excel importing text file as one long row

    Or edit the text file and change the each semicolon to a carriage return & line feed.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    03-02-2009
    Location
    Houston, Texas, USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Excel importing text file as one long row

    Quote Originally Posted by NBVC View Post
    I would suggest you delimit by semicolon into 1 row then copy that row go to the first cell you want to start the column in (can't overlap that original row, though) and do a Paste|Special >> Transpose... this will send it vertical.
    Not a bad idea, but my text file is so large that it generates more than 8192 columns, or whatever the maximum is, so I end up losing data.
    Quote Originally Posted by shg View Post
    Or edit the text file and change the each semicolon to a carriage return & line feed.
    I hadn't thought of that approach; I could do that with vi, I suppose.

    Thanks for the suggestions!

  7. #7
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,321

    Re: Excel importing text file as one long row

    easiest way is to use word
    find ; replace with ^p then paste into excel
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  8. #8
    Registered User
    Join Date
    03-02-2009
    Location
    Houston, Texas, USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Excel importing text file as one long row

    Quote Originally Posted by martindwilson View Post
    easiest way is to use word
    find ; replace with ^p then paste into excel
    That worked like a charm! Thanks again!

+ 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