Option Base 1
Sub test()
Dim aNames, aOffsetNo, sName As String
Dim rCells As Range
Dim i As Long
'Capture inputs
aOffsetNo = Range("A2", Range("A" & Rows.Count).End(xlUp)).Value
aNames = Range("B2", Range("B" & Rows.Count).End(xlUp)).Value
'Clear Range
Range("B2", Range("B" & Rows.Count).End(xlUp)).ClearContents
For i = 1 To UBound(aOffsetNo)
Range("A" & i + 1).Offset(0, aOffsetNo(i, 1)) = aNames(i, 1)
Next i
End Sub