Sub 等级判断()
Dim i As Integer
For i = 1 To Range("A1").CurrentRegion.Rows.Count
If Range("A" & i).Value >= 90 Then
Range("B" & i).Value = "优秀"
Else
If Range("A" & i).Value >= 60 Then
Range("B" & i).Value = "及格"
Else
Range("B" & i).Value = "不及格"
End If
End If
Next i
End Sub