+ Reply to Thread
Results 1 to 6 of 6

txt to excel (rows instead of coloums)

Hybrid View

Miguel7799 txt to excel (rows instead of... 07-25-2013, 01:44 PM
mike65535 Re: txt to excel (rows... 07-25-2013, 01:53 PM
jhren Re: txt to excel (rows... 07-25-2013, 02:32 PM
jhren Re: txt to excel (rows... 07-25-2013, 04:39 PM
Miguel7799 Re: txt to excel (rows... 07-26-2013, 04:50 AM
jhren Re: txt to excel (rows... 07-26-2013, 03:29 PM
  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    2

    txt to excel (rows instead of coloums)

    Hi,

    I need to impot a huge amont of data from txt to excel.

    My problem is that I need to organize it in rows instead of coloums.

    I have information of a lot of profiles and I need to put it side by side :

    Actual output (importing from txt file):
    [profile 1 6x6]

    [profile 2 6x6]

    [profile 3 6x6]

    ....

    Wanted output:

    [profile 1 6x6] [profile 2 6x6] [profile 3 6x6] .....


    Regards,

    Miguel

  2. #2
    Registered User
    Join Date
    07-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: txt to excel (rows instead of coloums)

    Can you import it, then do a Copy then PasteSpecial using "Transpose" ? Does that work?

  3. #3
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: txt to excel (rows instead of coloums)

    Assuming you mean the profiles are in 6 cell x 6 cell data tables vertically, and you want them horizontally, you could use VBA to transpose... or, in cell G1 enter...

    Formula: copy to clipboard
    =INDEX($A:$F,INT((COLUMN()-1)/6)*6+ROW(),IF(MOD(COLUMN(),6)=0,6,MOD(COLUMN(),6)))


    ...then copy down and right 6 cells (inclusive), then use fill handle to copy 6x6 to right as far as needed (format as desired before doing this step). Once you have all the data horizontally, select it all, copy and paste values in place (or if you have to do this again for new data, paste values to new/blank sheet/workbook).
    Last edited by jhren; 07-25-2013 at 04:41 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: txt to excel (rows instead of coloums)

    Quote Originally Posted by jhren View Post
    ...in cell G7 enter...
    Edited G7 to G1.
    Last edited by jhren; 07-25-2013 at 04:42 PM.

  5. #5
    Registered User
    Join Date
    07-25-2013
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: txt to excel (rows instead of coloums)

    The problem is that the matrix data from profiles vary in dimensions (sometimes 8x6 others 7x6).

    I can't use transpose because I want the data oganized side by side (horizontally) with the same configuration for each profile.

  6. #6
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: txt to excel (rows instead of coloums)

    Quote Originally Posted by Miguel7799 View Post
    The problem is that the matrix data from profiles vary in dimensions (sometimes 8x6 others 7x6).

    ...
    Do you mean each data set has different profile dimensions? ...or within each data set each profile's dimensions vary?

    If the former, the formula can be changed to accomodate.

    If the latter, you will have to identify a unique characteristic which can be used to trigger the "offset". An example file would help (replace sensitive info with fake data)...

+ 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. Average of 2 coloums
    By kgkev in forum Excel General
    Replies: 10
    Last Post: 04-03-2008, 09:54 AM
  2. Migrating Coloums
    By vbehler in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2007, 08:39 PM
  3. How to match the Coloums
    By anshulgr8 in forum Excel General
    Replies: 1
    Last Post: 03-17-2006, 10:55 AM
  4. VBA Code Required to Get Data Which is In Coloums Into Rows
    By stublair in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2005, 12:40 PM
  5. [SOLVED] coloums comparison in excel
    By Tushar in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-25-2005, 06:24 AM

Tags for this Thread

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