当前位置:网站首页>【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,"男","女")
边栏推荐
- Crawler (9) - scrape framework (1) | scrape asynchronous web crawler framework
- Review the whole process of the 5th Polkadot Hackathon entrepreneurship competition, and uncover the secrets of the winning projects!
- SQL Server monitoring statistics blocking script information
- [TCP] TCP connection status JSON output on the server
- Wechat nucleic acid detection appointment applet system graduation design completion (7) Interim inspection report
- 【DNS】“Can‘t resolve host“ as non-root user, but works fine as root
- Scaffold development foundation
- 关于vray 5.2的使用(自研笔记)(二)
- [JS] extract the scores in the string, calculate the average score after summarizing, compare with each score, and output
- 图片懒加载的方案
猜你喜欢
matlab cov函数详解
LSTM applied to MNIST dataset classification (compared with CNN)
7.2每日学习4
Crawler (9) - scrape framework (1) | scrape asynchronous web crawler framework
关于 “原型” 的那些事你真的理解了吗?【上篇】
Web3基金会「Grant计划」赋能开发者,盘点四大成功项目
2022 mobile crane driver examination question bank and simulation examination
小红书自研KV存储架构如何实现万亿量级存储与跨云多活
Wechat nucleic acid detection appointment applet system graduation design completion (6) opening defense ppt
DDR4硬件原理图设计详解
随机推荐
A usage example that can be compatible with various database transactions
About the use of Vray 5.2 (self research notes)
DDR4的特性与电气参数
[advertising system] incremental training & feature access / feature elimination
2022 t elevator repair operation certificate examination questions and answers
DOM//
Intelligent metal detector based on openharmony
DDR4硬件原理图设计详解
关于vray5.2怎么关闭日志窗口
Wechat nucleic acid detection appointment applet system graduation design completion (8) graduation design thesis template
如何将 DevSecOps 引入企业?
2021 Shandong provincial competition question bank topic capture
Four departments: from now on to the end of October, carry out the "100 day action" on gas safety
Web3基金会「Grant计划」赋能开发者,盘点四大成功项目
第五届 Polkadot Hackathon 创业大赛全程回顾,获胜项目揭秘!
PWA (Progressive Web App)
Function///
regular expression
Nuxt//
Paradigm in database: first paradigm, second paradigm, third paradigm