重新帮你描述一下问题:如果A列单元格数值小于等于5则B列显示5,如果A列数值大于5并小于等于15则显示10,否则如果大于15则显示0那么:B1=if(A1<=5,5,if(and(A1>5,A1<15),10,0))
在B1做公式 =IF(A1<5,5,IF(A1<15,10,"")),然后向下填充公式至全列。
=IF(A1<5,5,IF(A1<15,10,""))
=if(a1<5,"5",if(and(a1>5,a1<15),"10",""))
if(a1<5,5,10)