IF函数问题 江浙沪 1 0<w≤
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/13 07:04:45
IF函数问题
江浙沪
1 0<w≤10 1.5
2 10<w≤50 (w-10)*0.1+1.5
3 50<w≤99999 w*1+1.5
江浙沪外
0<w≤5 1
5<w≤50 (w-5)*0.2+1
50<w≤99999 w*1+1
这是我写的错误函数,IF(AND(E2=“江浙沪”,ROUNDUP(F2,2)<=10,2,ROUNDUP(F2,2)>50,2)*1+1.5,OR(ROUNDUP(F2,2)-10,2)*0.1+1.5),AND(E2=“江浙沪外”,ROUNDUP(F2,2)<=5,2),ROUNDUP(F2,2)>50,2)*1+1,OR(ROUNDUP(F2,2)-5,2)*0.2+1)),
江浙沪
1 0<w≤10 1.5
2 10<w≤50 (w-10)*0.1+1.5
3 50<w≤99999 w*1+1.5
江浙沪外
0<w≤5 1
5<w≤50 (w-5)*0.2+1
50<w≤99999 w*1+1
这是我写的错误函数,IF(AND(E2=“江浙沪”,ROUNDUP(F2,2)<=10,2,ROUNDUP(F2,2)>50,2)*1+1.5,OR(ROUNDUP(F2,2)-10,2)*0.1+1.5),AND(E2=“江浙沪外”,ROUNDUP(F2,2)<=5,2),ROUNDUP(F2,2)>50,2)*1+1,OR(ROUNDUP(F2,2)-5,2)*0.2+1)),
G2公式下拉填充:
=IF(E2="","",IF(E2="江浙沪外",IF(F2>50,F2+1,IF(F2>5,(F2-5)*0.2+1,1)),0)+IF(E2="江浙沪",IF(F2>50,F2+1.5,IF(F2>10,(F2-10)*0.1+1.5,1.5)),0))
或者:
=IF(E2="","",IF(E2="江浙沪",IF(F2
=IF(E2="","",IF(E2="江浙沪外",IF(F2>50,F2+1,IF(F2>5,(F2-5)*0.2+1,1)),0)+IF(E2="江浙沪",IF(F2>50,F2+1.5,IF(F2>10,(F2-10)*0.1+1.5,1.5)),0))
或者:
=IF(E2="","",IF(E2="江浙沪",IF(F2