Transpose 2nd line, 3 cells, to first open column - thend elete all 2nd blank rows

Wizerd

New Member
Joined
Aug 11, 2017
Messages
27
All,

I have a sheet that contains content in the first/odd rows from A1 to M1. The second/even rows have content from A2 to C2. I wish to transpose A2 > N1, B2 > O1 and C2 >P1.

Any help would be appreciated.
11BD1209715 18030914:37181156095162012P84 6GC69 GAN126
POST90SP*DVTGSIP
21BP1242049 18030108:42181154414160466P84 1GZ69 GAN1314
POST90SP*DVTGSIP
31BP1242423 18030212:00181154842160797P84 6GC69 GBA1213
POST90SP*DVTGSIP

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
then do you want the empty rows deleting. also what is the very first line, is it 1 or 2 dont want to run on the wrong line.
 
Upvote 0
Code:
Dim i As Long
Dim lastrow As Long


    lastrow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
    
    For i = lastrow To 2 Step -1
        If Cells(i, 4) = "" Then
            Cells(i, 1).Resize(1, 3).Copy Cells(i - 1, 14)
            Cells(i, 1).EntireRow.Delete
        End If
    Next i
        
End Sub
 
Upvote 0
Solution
‘1’ is in A1. And yes’ after the transpose I need the blank line deleted. Thanks for the quick responses.
 
Upvote 0
Works great. If I wanted to start this transpose at A6 instead of A1 (different worksheet...same principle)
 
Upvote 0
yes, it runs backwards though so where I say For i = lastrow To 2 Step -1 you change the 2 to what ever row number you want to finish on working from bottom to top
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top