50 sets of data in sheet1 , need to create 50 new sheets and pull in 1 set of data for each

Peptide

Board Regular
Joined
Apr 12, 2016
Messages
224
Office Version
  1. 365
Platform
  1. Windows
Hello
Are there formulas that could be placed in Sheet2-4 to pull in data from sheet1 all at once? This example shows 3 sheets, but in reality I have 50 sets of data in sheet1 and would need 50 separate sheets populated

Data Sheet1 - A1:A3
Set1 Set2 Set3
Bob Tom Bill
Nuts Berry Soda
5 10 15

Sheet2 A1:A4
Set1
Bob
Nuts
5

Sheet3 A1:A4
Set2
Tom
Berry
10

Sheet4 A1:A4
Set3
Bill
Soda
15
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
If you are willing to use VBA, try the below code

Code:
Sub sets()

Dim Rg As Range, lRow As Long, Ws As Worksheet

Set Ws = ActiveSheet
Set Rg = Ws.UsedRange

For x = 1 To Rg.Columns.Count
    y = y + 1
    lRow = Ws.Cells(Rows.Count, y).End(xlUp).Row
    Sheets.Add After:=Sheets(Sheets.Count)
    Sheets(Sheets.Count).Range("A1:A" & lRow) = Ws.Range("A1:A" & lRow).Offset(0, y - 1).Value
Next x

End Sub
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,685
Members
448,977
Latest member
dbonilla0331

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