Change the data arrangement from (Current) to (Required)

MayHmne

New Member
Joined
Sep 3, 2020
Messages
26
Office Version
  1. 2019
Platform
  1. Windows
BOOK1.png
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hello,

wouldn't surprise me, if someone came up with a formula to do this, but with VBA:

VBA Code:
Sub SORT_ROWS_TO_COLS()
    For MY_ROWS = 1 To Range("A" & Rows.Count).End(xlUp).Row
        If Not (IsEmpty(Range("A" & MY_ROWS))) Then
            Range("A" & MY_ROWS & ":G" & MY_ROWS).Copy
            Range("K" & MY_ROWS).PasteSpecial Operation:=xlNone, SkipBlanks:= _
        False, Transpose:=True
        End If
    Next MY_ROWS
End Sub
 
Upvote 0
Hi & welcome to MrExcel.
Another option
VBA Code:
Sub MayHmne()
   Dim Rng As Range
   
   For Each Rng In Range("A:A").SpecialCells(xlConstants)
      Rng.Offset(, 10).Resize(7).Value = Application.Transpose(Rng.Resize(, 7).Value)
   Next Rng
End Sub
 
Upvote 0
Welcome back,
In fact, that was my first post in this forum and I am happy that I was the first one to respond to after you came back and by the way, your VBA code was a great helper
Thank you
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,716
Messages
6,126,417
Members
449,314
Latest member
MrSabo83

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