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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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