IF函数问题

来源:百度知道 编辑:UC知道 时间:2024/05/22 00:40:27
设定一列百分比值a,如果大于等于95%,得5分,如果大于90%小于95%,得100*a-90,如果小于90%,则得0分,写得公式总不能计算出中间一项,还请各位高手帮忙!!谢谢啦!
希望得到IF函数在EXCEL中的运用。谢谢各位了:)

在得分那列输入公式:
=IF(C9:C11>=0.95,5,IF(C9:C11>=0.9,100*(C9:C11)-90,0))

我这里的C9:C11是百分比那一列(从C9到C11),你换成你的就可以了

if a>=95% then
response.write "5"
elseif a>90% and a<95% then
response.write (100*a-90)
else
response.write"0"
end if

if cint(a)*100>=95 then
jf=5
elseif cint(a)*100>=90 and cint(a)*100<95 then\
jf=cint(a)*100-90
else
jf=0
end if

if cint(a)>=0.95 then
jf=5
elseif cint(a)>=0.90 and cint(a)<0.95 then\
jf=cint(a)*100-90
else
jf=0
end if