Sub IF条件判断() If Sheet1.Range("a1") >= 90 Then Sheet1.Range("b1") = "优秀" ElseIf Sheet1.Range("a1") >= 80 Then Sheet1.Range("b1") = "良好" Else Sheet1.Range("b1") = "较差" End If End Sub
<img src="http://img.blog.csdn.net/20150429233239811?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxMzUxMTY0Mg==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />
原文地址:http://blog.csdn.net/u013511642/article/details/45375615