auto copying data from master tab to secondary tab based on column A values.

Musicfades1

New Member
Joined
Nov 25, 2016
Messages
3
Hi, I am trying to auto transfer data from my Master tab to a secondary tab based on the name in column A. So if I have tabs named "Staff 1" "Staff 2" and the value in column A states either, I want the row of data to auto duplicate onto the subsequent tab.

I am using Excel 2013
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Welcome to the Board!

Why do you need to duplicate it? If you want to summarize by group, then PivotTables will easily do what you want.

HTH
 
Upvote 0
[h=3]Hi there,

Using the + Symbol in Excel[/h]Start by selecting the target cell (in our case B1 of Sheet 2) and typing in the + symbol.

Next, right-click on the Sheet 1 label button to go back to your data. Select cell A1 and then pressEnter.

Your data will be automatically copied into cell B1.

If you performed the operation correctly, then upon selecting cell A1, you should have the following formula displayed in the formula bar: +Sheet1!A1.

[h=3]Using the +Sheet(X)!((XY) Formula[/h]
The second method will make use of the +Sheet(X)!(XY) formula.

Select the cell in which you would like to swap the data and type +Sheet(X)!(XY) into the formula bar.

Using the conditions above, the formula +Sheet2!B21 will copy data from cell B21 of Sheet 2.


 
Upvote 0
I understand how to use the + symbol to transfer the data but what i'm working with is a large work book and that seems to take an exorbitant amount of time. The master tab has over a 115 rows of data (client information) that is periodically reassigned to various staff members. I was hoping there'd be an easier way to have the rows duplicate to each staff persons tab by simply changing the staff name in column A on the master sheet.

And to answer the question of why I want it duplicated, the master sheet gives me a programmatic view of the entire client caseload for the program, and then each staff sheet will give me a view of each persons caseload of data.
 
Upvote 0
Try this:

This is an auto sheet event script
Your Workbook must be Macro enabled
To install this code:
Right-click on your Master sheet tab
Select View Code from the pop-up context menu
Paste the code in the VBA edit window

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A:A")) Is Nothing Then
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
On Error GoTo M
Dim Lastrow As Long
Dim ans As String
ans = Target.Value
Lastrow = Sheets(ans).Cells(Rows.Count, "A").End(xlUp).Row + 1
Rows(Target.Row).Copy Destination:=Sheets(ans).Rows(Lastrow)
End If
Exit Sub
M:
MsgBox "No Such Sheet Exist"
End Sub
When you enter a sheet name in column "A" of your Master sheet that row will be copied to the sheet name you entered into column "A"
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,565
Messages
6,114,338
Members
448,569
Latest member
Honeymonster123

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