+ Reply to Thread
Results 1 to 6 of 6

Open space delimited text file and transpose

  1. #1
    Registered User
    Join Date
    05-22-2009
    Location
    Penang, Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Unhappy Open space delimited text file and transpose

    Hi,

    I have text with data in series of column as below:

    Column 1 2 3 4

    sample01 159.3 161.5 148.3 154.6

    sample02 160.0 155.5 149.9 160.1

    sample03 134.6 147.7 146,3 161.1

    The data in column can goes up to 10000 columns and the data in rows can goes up to 200 data.

    I want to open the text file and the data will look transpose as below:

    Column Sample01 Sample02 Sample03

    1 159.3 160.0 134.6

    2 161.5 155.5 147.7

    3 148.3 149.9 146,3

    4 154.6 160.1 161.1

    Since ms office 2003 can only show 256 column, can anyone have expertise in macro show me how to open the text file and automatically transpose it?

    Thank you.

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

    Re: Open space delimited text file and transpose

    cross posted on open office forum
    http://www.oooforum.org/forum/viewtopic.phtml?t=94058
    "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

  3. #3
    Registered User
    Join Date
    05-22-2009
    Location
    Penang, Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Unhappy Re: Open space delimited text file and transpose

    Meaning I don't get help? Waaa...

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

    Re: Open space delimited text file and transpose

    meaning rule 8!
    8. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!

  5. #5
    Registered User
    Join Date
    05-22-2009
    Location
    Penang, Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Open space delimited text file and transpose

    I'm sorry,

    I thought the VBA code for ms excel and oo calc not the same. Thank you for quoting. Better start reading the rule.

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

    Re: Open space delimited text file and transpose

    if you repost in the programming forum you probably will get a response byt include the link

+ 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