Option Explicit
Sub test()
Dim dic As Object
Dim myRange As Range
Dim r As Range
Dim j As Long
Dim cntr As Long
Set dic = CreateObject("Scripting.Dictionary")
Set myRange = Range("A2", Cells(Rows.Count, 1).End(xlUp))
For Each r In myRange
dic(r.Value) = dic(r.Value) & r.Offset(, 1).Value & ";"
Next
cntr = 1
For j = 2 To Cells(Rows.Count, 1).End(xlUp).Row
If Application.WorksheetFunction.CountIf(Range("A2:A" & j), Range("A" & j)) = 1 Then
Range("C" & j).Value = Mid(dic(cntr), 1, Len(dic(cntr)) - 1)
cntr = cntr + 1
End If
Next
End Sub