IF函数条件判断
时间:2023-12-15 22:57:25
在Excel中进行条件判断,大家第一个想到的肯定是IF函数,条件比较多的情况下,使用IF函数多层嵌套,容易出现错误。这里技巧小编跟大家分享另外3个函数公式,同样可以有效解决Excel中的条件判断问题。
如下图表格所示,根据销售额判断对应的提成比例,用IF函数多层嵌套公式:
=IF(B2>=100000,6%,IF(B2>=70000,4.5%,IF(B2>=50000,3%,IF(B2>=35000,2%,IF(B2>=20000,1.5%,1%)))))
接下来我们用其它函数公式解决这个问题。
01
VLOOKUP函数
用VLOOKUP函数代替IF函数提取对应的提成比例,输入公式:
=VLOOKUP(B2,$E$2:$F$7,2,1)
说明:公式中最后一个参数为1,代表模糊查找。
02
LOOKUP函数
同样,也可以用LOOKUP函数代替IF函数进行判断,输入公式:
=LOOKUP(B2,$E$2:$F$7)
很明显,用VLOOKUP函数或VLOOKUP函数来判断对应的提成比例,公式更加简洁。
03
CHOOSE函数
如果是根据销售金额的等级进行提成比例判断,也可以用CHOOSE函数来代替IF函数,如下图表格所示,先用IF函数多层嵌套,输入公式:
=IF(C2=1,1%,IF(C2=2,1.5%,IF(C2=3,2%,IF(C2=4,3%,IF(C2=5,4.5%,IF(C2=6,6%))))))
如果用CHOOSE函数,输入公式:=CHOOSE(C2,1%,1.5%,2%,3%,4.5%,6%)
标签:excel,if,if函数,wps,WPS
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win10怎么打开虚拟键盘
2023-12-13 07:06:34
![](https://img.aspxhome.com/file/2023/0/51250_0s.png)
Win10系统提示Logitech扬声器无法工作的解决方法
2022-08-23 03:17:29
![](https://img.aspxhome.com/file/2023/3/a296028_0s.jpg)
PS新手教程-如何使用PS把浑浊的海水照片变成清澈的蓝色效果
2023-11-06 16:53:44
![](https://img.aspxhome.com/file/2023/7/a201837_0s.jpeg)
石大师启动U盘重装Win10步骤
2023-07-08 17:04:15
![](https://img.aspxhome.com/file/2023/25/a217910_0s.gif)
Win7系统键盘无法输入文字怎么办?Win7键盘无法输入文字的解决办法
2022-02-14 08:42:02
![](https://img.aspxhome.com/file/2023/28/a245534_0s.jpg)
如何用Word2010文档打印背景颜色或图片
2023-06-16 11:09:56
![](https://img.aspxhome.com/file/2023/3/24583_0s.jpg)
WPS文字快速填写三联单据
2022-10-02 06:54:34
![](https://img.aspxhome.com/file/2023/1/a165021_0s.jpg)
Win10一周年更新系统中Windows Hello无需密码也能安全识别
2023-06-12 15:04:29
![](https://img.aspxhome.com/file/2023/28/a243994_0s.jpg)
win10开机慢怎么解决?
2022-05-23 18:20:38
![](https://img.aspxhome.com/file/2023/2/a285151_0s.png)
ThinkPad X1 Titanium笔记本安装win10系统教程
2023-02-13 08:37:26
![](https://img.aspxhome.com/file/2023/8/53178_0s.png)
word中设置列表样式方法大全
2022-11-30 05:05:02
技嘉(GIGABYTE)主板MuMu模拟器开启VT的方法
2022-08-09 23:58:09
![](https://img.aspxhome.com/file/2023/6/a323491_0s.png)
excel表格如何保留两位小数
2023-11-06 06:41:45
excel表格怎么设置平均分布各列
2022-08-24 08:58:49
怎样将PowerPoint2007背景另存为图片
2023-06-06 10:10:39
Win10怎么以管理员身份运行疑难解答?
2022-06-06 14:29:15
![](https://img.aspxhome.com/file/2023/26/a225303_0s.jpg)
Win7硬盘安装工具怎么使用?Win7硬盘安装工具使用方法
2023-07-18 13:03:41
![](https://img.aspxhome.com/file/2023/26/a229006_0s.png)
Win11更新失败并提示0xc1900101怎么解决?
2023-08-19 03:47:40
![](https://img.aspxhome.com/file/2023/1/a274633_0s.jpg)
升级Windows 10正式版后只有Edge可以上网该怎么办?
2022-01-20 10:00:46
![](https://img.aspxhome.com/file/2023/28/a249003_0s.jpg)
word文档总成绩如何实现升序和降序?
2023-03-19 20:15:09
![](https://img.aspxhome.com/file/2023/9/25729_0s.jpg)