Sub prfSpM()
Dim i As Long
Dim x As Long
i = Cells(Rows.Count, 9).End(xlUp).Row
For x = 3 To i
If Cells(x, 13) <> "" Then
Cells(x, 9) = Cells(x, 13)
End If
Next x
End Sub
damit geht esDim i As Long
For i = 1 To 100
Select Case Cells(i, 9).Value
Case 2222
Cells(i, 9).Value = 0
Case 3333
Cells(i, 9).Value = 1
Case 4444
Cells(i, 9).Value = 2
Case 7777
Cells(i, 9).Value = 3
Case 9999
Cells(i, 9).Value = 4
End Select
Next
Start- und Enzeile musst du natürlich noch anpassen.Sub ersSpi()
Dim i As Long
Dim x As Long
Dim iWert As Variant
i = Cells(Rows.Count, 9).End(xlUp).Row
For x = 3 To i
iWert = Cells(x, 9)
Select Case iWert
Case 2222
Cells(x, 9) = 0
Case 3333
Cells(x, 9) = 1
Case 4444
Cells(x, 9) = 2
Case 7777
Cells(x, 9) = 3
Case 9999
Cells(x, 9) = 4
End Select
Next x
End Sub
müsste auch funktionieren