Making a useful sheet

rhino4eva

Active Member
Joined
Apr 1, 2009
Messages
262
Office Version
  1. 2010
Platform
  1. Windows
So i have a sheet 40 rows Long. Line 1 to 20 data from my first client. Client 2 is from 21 to 40 client 3 is 41 to 60. So primely i want convert 20 rows of data into 20 cols of data with the same headers


Has anyone got any ideas
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Are you looking for something like this?
Excel Formula:
=VSTACK(TRANSPOSE(CHOOSEROWS($A$1:$B$60,SEQUENCE(20))),TRANSPOSE(CHOOSEROWS($A$1:$B$60,SEQUENCE(20,,21))),TRANSPOSE(CHOOSEROWS($A$1:$B$60,SEQUENCE(20,,41))))

You would have to adjust the "$A$:$B$60" for your range, but without example info, it's hard to know whether this is what you need.
 
Upvote 0
Im on a phone so forgive me

Head
Will
Address 9
Head
Tom
Address 7

Tansposed....ish to
Name. Addr1
Will. 9
Tom. 8
 
Upvote 0
For 20 consecutive rows per client. Change 20 to however many rows per client you actually have.
Check references like sheet names and change as required
Code:
Sub Like_So()
Dim i As Long
Dim ws1 As Worksheet, ws2 As Worksheet
Set ws1 = Worksheets("Sheet1")    '<----- Sheet with all data. Change as required
Worksheets.Add(After:=Sheets(Sheets.Count)).Name = "Transposed_Clients"
Set ws2 = Worksheets("Transposed_Clients")
    For i = 1 To ws1.Cells(ws1.Rows.Count, 1).End(xlUp).Row Step 20
        ws2.Cells(ws2.Rows.Count, 1).End(xlUp).Offset(1).Resize(, 20).Value = Application.Transpose(ws1.Cells(i, 1).Resize(20).Value)
    Next i
End Sub
 
Upvote 0
No more answers so nothing must have worked.
 
Upvote 0

Forum statistics

Threads
1,221,501
Messages
6,160,175
Members
451,629
Latest member
MNexcelguy19

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