=LOOKUP(-A1,{-2000,-1000,-500},{6,5,4})或:=IF(A1<=500,4,IF(A1<=1000,5,6))
=if(a1<=500,4,if(a1<=1000,5,if(a1<=2000,6,"大于2000要显示的值")))
在B1中输入如下:=IF(A1>2000,9,IF(A1>1000,6,IF(A2>500,5,4)))