|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
- Sub 结果()
- Dim m, i As Integer
- For i = 1 To 12
- a = Cells(i + 1, 4).Value
- For m = 1 To 6
- Select Case a
- Case Is >= Worksheets("销售考核标准").Cells(i + 1, 9)
- Cells(i + 1, 5) = Worksheets("销售考核标准").Cells(1, 9)
- Exit For
- Case Worksheets("销售考核标准").Cells(i + 1, 9 - m) To Worksheets("销售考核标准").Cells(i + 1, 10 - m) - 1
- Cells(i + 1, 5) = Worksheets("销售考核标准").Cells(1, 9 - m)
- End Select
- Next
- If Cells(i + 1, 5) = "" Then
- Cells(i + 1, 5) = "低于评级标准"
- End If
- Next
- End Sub
复制代码
|
|