Here is a slightly tested you can use. Place it in a blank module and call it from the macros menu.
To do this, go to Tools, Macros, Visual Basic Editor. Click "Insert" >> "Module".
This will run through all lines and check for matches, and copy and paste appropriately. It may or may not work, but it works with the data above and is scalable to work with as many rows you have.
If you have header rows, just change the "1's" to 2's. This assumes all data is in the first two columns.
Copy it exactly:
Sub transport()
'You will need to set this up so both sheets are in the
'same book
'You can name the sheets how you want. The master sheet is
'the one WITHOUT the inventory.
'Send me a message if you need help.
'This script is without warranty or support.
Dim I As Integer
Dim J As Integer
Dim master As String
Dim subsheet As String
master = "master" 'Change this to the master worksheet.
subsheet = "subsheet" 'This is the one with both numbers
ActiveSheet.Range("A1").Select 'This selects the first cell
'in the Master column, assuming there is a header row
ActiveSheet.Range(ActiveCell, (Cells(65536, ActiveCell.Row).End(xlUp))).Select
'This finds the first blank cell in Master column, and selects
'everything before it
For J = 1 To Selection.Rows.Count
For I = 1 To Selection.Rows.Count
If Worksheets(master).Range("A" & J).Value = Worksheets(subsheet).Range("A" & I).Value Then
Worksheets(subsheet).Range("B" & I).Copy _
Destination:=Worksheets(master).Range("B" & J)
End If
Next
Next
End Sub