当前位置:网站首页>【Office】Excel中IF函数的8种用法
【Office】Excel中IF函数的8种用法
2022-07-05 10:52:00 【姜太小白】
今天咱们来学习一下IF函数的几个典型用法,看完你会觉得,原来IF函数竟然也这么高深!
1.简单判断
根据成绩是否达到60分判断是否及格。公式:IF(B2>=60,"及格","不及格")
2.多重条件判断
男性大于等于60岁时,退休;女性大于等于55岁时,退休。公式:IF(B2="男",IF(C2>=60,"退休",""),IF(C2>=55,"退休",""))
3.多区间判断
成绩小于60分的等级是C,大于等于60并小于等于80的等级是B,大于80分是C。公式:IF(B2<60,"C",IF(B2>80,"A","B"))
4.与and函数组合
除了财务部员工的A类报销费是200,其它全部是150。公式:IF(AND(B2="财务部",C2="A"),200,150)
5.与or函数组合
财务部员工或者A类员工的报销费都是200,其它全部是150。公式:IF(OR(B2="财务部",C2="A"),200,150)
6.与sum函数组合
所有女生的成绩之和。公式:SUM(IF(B2:B9="女",C2:C9,""))
7.与vlookup函数组合
根据姓名查找对应的公司名称。公式:VLOOKUP(F2,IF({1,0},C:C,B:B),2,0)
8.根据身份证号判断
性别身份证号的第17位数字是偶数时,性别是女;奇数时,性别是女。公式:IF(MOD(MID(B2,17,1),2)=1,"男","女")
边栏推荐
- Web Components
- Based on shengteng AI Yisa technology, it launched a full target structured solution for video images, reaching the industry-leading level
- 九、磁盘管理
- When using gbase 8C database, an error is reported: 80000502, cluster:%s is busy. What's going on?
- Web Components
- 一次edu证书站的挖掘
- R3live series learning (IV) r2live source code reading (2)
- Network security of secondary vocational group 2021 Jiangsu provincial competition 5 sets of topics environment + analysis of all necessary private messages I
- 数据库三大范式
- regular expression
猜你喜欢
Wechat nucleic acid detection appointment applet system graduation design completion (8) graduation design thesis template
九、磁盘管理
Wechat nucleic acid detection appointment applet system graduation design completion (7) Interim inspection report
关于vray 5.2的使用(自研笔记)(二)
Talk about the understanding of fault tolerance mechanism and state consistency in Flink framework
关于vray 5.2的使用(自研笔记)
Detailed explanation of MATLAB cov function
[JS learning notes 54] BFC mode
【广告系统】增量训练 & 特征准入/特征淘汰
Some understandings of heterogeneous graphs in DGL and the usage of heterogeneous graph convolution heterographconv
随机推荐
Wechat nucleic acid detection appointment applet system graduation design completion (7) Interim inspection report
Go-3-第一个Go程序
Web Components
Based on shengteng AI Yisa technology, it launched a full target structured solution for video images, reaching the industry-leading level
Beego cross domain problem solution - successful trial
go语言学习笔记-初识Go语言
磨礪·聚變|知道創宇移動端官網煥新上線,開啟數字安全之旅!
使用GBase 8c数据库过程中报错:80000502,Cluster:%s is busy,是怎么回事?
埋点111
32: Chapter 3: development of pass service: 15: Browser storage media, introduction; (cookie,Session Storage,Local Storage)
2021年山东省赛题库题目抓包
R3Live系列学习(四)R2Live源码阅读(2)
In the last process before the use of the risk control model, 80% of children's shoes are trampled here
Codeforces Round #804 (Div. 2)
How to close the log window in vray5.2
Bracket matching problem (STL)
DDRx寻址原理
websocket
基于昇腾AI丨以萨技术推出视频图像全目标结构化解决方案,达到业界领先水平
Scaffold development foundation