Extract all columns from the master sheet if the first element of the row matches with the worksheet

ssinha23

New Member
Joined
Aug 31, 2016
Messages
16
I have all the detailed information in the "Master sheet" which has serial numbers for systems in the Colomn A.

Now I have a "Worksheet" which has some of the serial numbers from the main "Mastersheet".

What it is required is to pull all the adjoining data from the MasterSheet from Column B to Column AK for every serial numbers in the worksheet.

So, it is like the first entry in the Worksheet can be the 82nd entry of the Mastersheet. Once these two serial number matches, it should pull up all the data from Column B to column AK from the Mastersheet and paste it on the Worksheet adjoining to the serial number.

This function should be repeated for all the serial numbers in the Worksheet. On a weekly basis these serial numbers on the worksheet changes and hence the relevant information needs to be refreshes once the list of new serial numbers are pasted on the Column A of the worksheet.

Do let me know if any more details needed. Thanks in advance for your help.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
How about
Code:
Sub FindNum_Copy()

    Dim Cl As Range
    Dim Fnd As Range
    Dim MstSht As Worksheet
    
    Set MstSht = Sheets("[COLOR=#ff0000]Details[/COLOR]")
    
    With Sheets("[COLOR=#ff0000]Sheet1[/COLOR]")
        For Each Cl In .Range("A2", .Range("A" & Rows.Count).End(xlUp))
            Set Fnd = MstSht.Columns(1).Find(What:=Cl.Value, After:=MstSht.Range("A1"), _
                LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, _
                SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False)
            If Fnd Is Nothing Then
                Cl.Offset(, 1).Value = "Nothing Found"
                Cl.Interior.Color = vbRed
            Else
                Fnd.Offset(, 1).Resize(, 36).Copy Cl.Offset(, 1)
            End If
        Next Cl
    End With

End Sub
Changing sheet names in red to suit
 
Upvote 0
Thanks @Fluff for your quick help on this. But really I was looking to do get this done with formulas.

Adding a code is not something I am very comfortable with and what makes me worry that it can impact the other formulas which are already in place.

thanks again for your help. If you can the formulas for me...I really will be debt.
 
Upvote 0
Unfortunately formulae aren't my thing.
I'll see if I can cook something up, but in the mean time lets hope that someone who knows formulae can step in.
 
Upvote 0

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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