Extracting info from master sheet to multiple sheets in same workbook

Warrior1975

New Member
Joined
Nov 16, 2016
Messages
9
Hello. I am using Office 365 and I am trying to figure out how to extract information from my master sheet and have it populate in other sheets in the same workbook. I would like to do it automatically as the master sheet is updated and it has to be for a certain criteria.

My master sheet has the following fields:

[TABLE="width: 5094"]
<colgroup><col><col><col><col span="25"><col><col><col span="2"><col><col><col><col span="2"><col><col><col><col span="2"><col><col><col><col span="23"></colgroup><tbody>[TR]
[TD]Supplier [/TD]
[TD]Exam Date[/TD]
[TD]Exam Posted Date[/TD]
[TD]Exam Completed Date[/TD]
[TD]Exam Deleted Date[/TD]
[TD]Exam Status[/TD]
[TD]Exam Issue Id[/TD]
[TD]First Name[/TD]
[TD]Middle Name[/TD]
[TD]Last Name[/TD]
[TD]Suffix[/TD]
[TD]DOB[/TD]
[TD]Sex[/TD]
[TD]Height Inches[/TD]
[TD]Weight Lbs[/TD]
[TD]Address 1[/TD]
[TD]Address 2[/TD]
[TD]City[/TD]
[TD]State[/TD]
[TD]Zip[/TD]
[TD]Home Phone[/TD]
[TD]Work Phone[/TD]
[TD]Cell Phone[/TD]
[TD]Email[/TD]
[TD]Contact Person[/TD]
[TD]Contact Person Phone[/TD]
[TD]Primary Care Physician Name[/TD]
[TD]Primary Care Physician Phone[/TD]
[TD]Has Insurance[/TD]
[TD]Medicare Number[/TD]
[TD]Medicaid Plan[/TD]
[TD]Medicaid Number[/TD]
[TD]Other Insurance Plan 1[/TD]
[TD]Other Insurance Number 1[/TD]
[TD]Other Insurance Group Number 1[/TD]
[TD]Other Insurance Phone 1[/TD]
[TD]Other Insurance Rx Bin 1[/TD]
[TD]Other Insurance Pcn 1[/TD]
[TD]Other Insurance Plan 2[/TD]
[TD]Other Insurance Number 2[/TD]
[TD]Other Insurance Group Number 2[/TD]
[TD]Other Insurance Phone 2[/TD]
[TD]Other Insurance Rx Bin 2[/TD]
[TD]Other Insurance Pcn 2[/TD]
[TD]Notes For Clinician[/TD]
[TD]Clinician Id[/TD]
[TD]Clinician Name[/TD]
[TD]Practice Name[/TD]
[TD]Supplier Id[/TD]
[TD]Supplier Name[/TD]
[TD]Intake Id[/TD]
[TD]Intake Name[/TD]
[TD]Marketer Id[/TD]
[TD]Marketer Name[/TD]
[TD]Agent Name[/TD]
[TD]Telemed[/TD]
[TD]Verification[/TD]
[TD]Shipping[/TD]
[TD]DME[/TD]
[TD]Back[/TD]
[TD]Right Shoulder[/TD]
[TD]Left Shoulder[/TD]
[TD]Right Knee[/TD]
[TD]Left Knee[/TD]
[TD]Right Ankle[/TD]
[TD]Left Ankle[/TD]
[TD]Right Wrist[/TD]
[TD]Left Wrist[/TD]
[/TR]
</tbody>[/TABLE]

I would like to extract the information based upon the supplier and have the entire row copied for each patient with said supplier. I would like to have sheets for each supplier. I need this to automatically populate each time the master sheet is updated. I tried using the advanced filter, which works perfectly, however we would have to do that manually in order to keep the sheets updated. Any advice would be greatly appreciated.
 
In your original post, you had the supplier name in column A. In your file there is no supplier name associated with each patient. Does your actual file have the supplier name in column A? We need the supplier name for each patient, otherwise we have no way of linking patient to supplier name. Perhaps you could post an updated file. Please post the Excel file not the zipped version. It makes things easier.
 
Upvote 0

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Start by entering a header such as "Updated" in cell BR9 of the "Master List" sheet. Next, copy and paste the macro below into the worksheet code module. Do the following: right click the tab for your "Master List" sheet and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. Place an "x" in any row with data in column BR and exit the cell. That row will be copied to the appropriate sheet. Please note that the supplier name in column A must be exactly the same as the supplier name in the sheet name. In your sample file, you have "Neil" in column A and "Neal" in the sheet name.
Code:
Option Compare Text
Private Sub Worksheet_Change(ByVal Target As Range)
    If Intersect(Target, Range("BR:BR")) Is Nothing Then Exit Sub
    Application.ScreenUpdating = False
    Dim ws As Worksheet
    If Target = "x" Then
        For Each ws In Sheets
            If ws.Name Like "*" & Cells(Target.Row, 1) & "*" Then
                Range("B" & Target.Row & ":BQ" & Target.Row).Copy ws.Cells(Rows.Count, "A").End(xlUp).Offset(1, 0)
            End If
        Next ws
    End If
    Application.ScreenUpdating = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,201
Members
453,022
Latest member
RobertV1609

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