+ Reply to Thread
Results 1 to 9 of 9

Transpose from row to column with spaces in between the rows

  1. #1
    Registered User
    Join Date
    05-07-2013
    Location
    U.S.A
    MS-Off Ver
    Excel 2007
    Posts
    6

    Transpose from row to column with spaces in between the rows

    I have a set of data: example
    Colum1 Column2 Column3 Column4
    1 2 3 4
    1 2 3 4
    1 3 4 5


    1 2 3 4
    1 2 3 4
    1 2 3 4

    1 2 3 4
    1 2 3 4
    1 2 3 4

    I need to transpose but the spaces in between the rows are causing trouble. How can I do this in macros. I attached the data also. AHU 06_05-06-13_13-59.csv

    and need to look llike this
    AHU 06_05-06-13_13-59.new.xlsm
    any help is great. Thank You

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Transpose from row to column with spaces in between the rows

    why did you attach csv file ? you need to import it ?
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    05-07-2013
    Location
    U.S.A
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Transpose from row to column with spaces in between the rows

    Quote Originally Posted by patel45 View Post
    why did you attach csv file ? you need to import it ?
    Wat u mean by importing. I imported into excel I can transpose it. I had to do it manually.

  4. #4
    Registered User
    Join Date
    05-07-2013
    Location
    U.S.A
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Transpose from row to column with spaces in between the rows

    Correction cant transpose it

  5. #5
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Transpose from row to column with spaces in between the rows

    attach please a sample file with initial data and desired result

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Transpose from row to column with spaces in between the rows

    patel,

    Check post 1 for files.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Transpose from row to column with spaces in between the rows

    fubini,

    You need to tell us what data goes where. There are many columns in your xlsm file.

  8. #8
    Registered User
    Join Date
    05-07-2013
    Location
    U.S.A
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Transpose from row to column with spaces in between the rows

    Dear Patel45,

    Here is original data
    original.xls


    And this how I want the data to look like
    results.xls

    Thanks again

  9. #9
    Registered User
    Join Date
    05-07-2013
    Location
    U.S.A
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Transpose from row to column with spaces in between the rows

    Quote Originally Posted by arlu1201 View Post
    fubini,

    You need to tell us what data goes where. There are many columns in your xlsm file.
    Okay so the original data has, about 19 to 25 sets of 300 to 500 rows from column 1 to 4, each divided by blanks cells to show when a new set starts.
    1) I need the entire column 4 to be deleted for all the sets.
    2) Starting from set 2 (name is JJCEX. AHU.07. #number:DISCH STAT) I need the entire first column (name is point system) deleted all the way to last set.
    3)Then after each blanks cells starting from set 1. I need it to be copy and pasted to new sets columns lining up with set 1.
    I need code that will copy each set after a blank cell to new sets of columns.

    Thanks

+ 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