+ Reply to Thread
Results 1 to 9 of 9

Thread: cut information on rows and traspose paste to columns

  1. #1
    Registered User
    Join Date
    01-13-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    cut information on rows and traspose paste to columns

    I need to very quickly re arrange the information on the attached worksheet (I have more, thousands more entries).
    For eg rows transpose paste A1, A2, A3,A4,A5,A6,A7 TO B1,C1, D1, E1, F1, G1, H1 and then A8, A9, A10, A11, A12, A13, A14 TO B2, C2, D2, E2, F2, G2, H2 and so on and so forth.
    i tried using the array formula but i the original information has to stay, if i delete the original, i lose the transpose information.
    Currently, i am copying and paste special and then deleting the original and then deleting the excess rows. too time consuming.

    Help!!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - Guimba-Nueva Ecija
    MS-Off Ver
    2010
    Posts
    779

    Re: cut information on rows and traspose paste to columns

    sorry i have problems on connections recently.
    try this one. macro.

    select 7 rows then transpose by 7

    excel forum whstvlady(3).xlsxs


    tell me if it solve your problem.ok.

    thanks..
    Last edited by vlady; 01-19-2012 at 01:27 AM.
    Contributors to this forum do not get paid. They give their valuable time to help you solve your problem. That's why feel free to CLICK their STAR icon to say thank you -even the given idea/solution didn't really solve your queries. The time given to you deserves a small gratitude anyway.

    Dare to give a pencil to a child. http://www.blackpencilproject.org/

  3. #3
    Valued Forum Contributor
    Join Date
    03-13-2004
    Location
    Gothenburg/Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and reluctantly Excel 2007
    Posts
    631

    Re: cut information on rows and traspose paste to columns

    Hi Mengtzee

    Your data is not 100 % consistent so it’s a bit difficult to write a macro. Still I had a go at it. As there is some manual adjustment you have to do I recommend that you take a look at sheet "info" in the file “exce forum whst_mod.xlsm” before you run the macro.

    To test run macro “transpose_row”

    Alf
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-13-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: cut information on rows and traspose paste to columns - SOLVED!! THANK YOU!!!

    Thanks a bunch!!!

  5. #5
    Valued Forum Contributor
    Join Date
    03-13-2004
    Location
    Gothenburg/Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and reluctantly Excel 2007
    Posts
    631

    Re: cut information on rows and traspose paste to columns

    Glad you liked it.

    Just so you don't misunderstand me. If you add number and letters to rows that is missing a number when you do a "Find" and Replace part you don't write anything in the "Replace" part. My explanation in the file was a bit muddeled I think.

    To get rid of blank row you could add this macro
    Sub delete_empty_rows()
    
    Dim lastrow As Integer
    Dim i As Integer
    
    lastrow = Range("A" & Rows.Count).End(xlUp).Row
    
    For i = lastrow To 1 Step -1
    
        If Cells(i, 1) = "" Then
                Rows(i).EntireRow.Delete
        End If
        
    Next i
    
    End Sub
    Perhaps you could run this macro first and then the "transpose_row" macro. As this will reduce the number of "Check for ...." messages.

    After fixing rows with missing number and removing the number and letters you added delete column A and run "delete_empty_rows"

    If you liked my solution you can click on the star in my post and give a rating to my answer.

    Alf

    Ps I liked you problem it was quite a bit of fun working with it!
    Last edited by Alf; 01-19-2012 at 04:45 PM.

  6. #6
    Registered User
    Join Date
    01-13-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: cut information on rows and traspose paste to columns

    i recorded my macro but cant seem to repeat the action. I did it yesterday and it worked fine but today....

    my steps: click on record macro, perform the task, click stoep recording.

    yesterdays results: awesome
    todays results in new worksheet: record a new macro in a new wksht but when i try to repeat the action using the shortcut key, the cursow returns to the original spot and nothing happens.

    i am so confused!!

  7. #7
    Valued Forum Contributor
    Join Date
    03-13-2004
    Location
    Gothenburg/Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and reluctantly Excel 2007
    Posts
    631

    Re: cut information on rows and traspose paste to columns

    Hi Mengtzee

    I'm a bit confused myself. To whom are addressing your question? vlady or me? Your question indicates that you went for vlady's solution and if so vlady will give you the best answer.

    Alf

  8. #8
    Registered User
    Join Date
    01-13-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: cut information on rows and traspose paste to columns

    ok, i went with vlady first but i think your way is going to cut down the process even faster. let me have a go at it. it all seem sdaunting but i think i can take it one step at a time and try to figure everything out. Thanks again for your help Alf. I will update you guys on how I am progressing.

  9. #9
    Valued Forum Contributor
    Join Date
    03-13-2004
    Location
    Gothenburg/Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and reluctantly Excel 2007
    Posts
    631

    Re: cut information on rows and traspose paste to columns

    No problem. Take your time and do not hesitate to ask for more information if you feel that you need it.

    Alf

+ 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.2.0