当前位置:网站首页>【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,"男","女")
边栏推荐
- Explanation of message passing in DGL
- Deepfake tutorial
- PWA (Progressive Web App)
- Wechat nucleic acid detection appointment applet system graduation design completion (7) Interim inspection report
- LDAP overview
- [advertising system] incremental training & feature access / feature elimination
- Basic testing process of CSDN Software Testing Introduction
- Variables///
- Web Security
- Msfconsole command encyclopedia and instructions
猜你喜欢
关于vray 5.2的使用(自研笔记)
Question bank and answers of special operation certificate examination for main principals of hazardous chemical business units in 2022
Based on shengteng AI Aibi intelligence, we launched a digital solution for bank outlets to achieve full digital coverage of information from headquarters to outlets
Detailed explanation of MATLAB cov function
R3live series learning (IV) r2live source code reading (2)
谈谈对Flink框架中容错机制及状态的一致性的理解
Go language learning notes - first acquaintance with go language
修复动漫1K变8K
The first product of Sepp power battery was officially launched
R3Live系列学习(四)R2Live源码阅读(2)
随机推荐
uniapp
Go语言-1-开发环境配置
LSTM applied to MNIST dataset classification (compared with CNN)
C language current savings account management system
Node の MongoDB Driver
Nuxt//
PWA (Progressive Web App)
DDR4硬件原理图设计详解
How to close the log window in vray5.2
Function///
Explanation of full vulnerability script of network security C module of secondary vocational group script containing 4 vulnerabilities
Cross page communication
Process control
埋点111
小红书自研KV存储架构如何实现万亿量级存储与跨云多活
中职组网络安全C模块全漏洞脚本讲解包含4个漏洞的脚本
2022 chemical automation control instrument examination questions and online simulation examination
一次edu证书站的挖掘
关于vray 5.2的使用(自研笔记)
Web3 Foundation grant program empowers developers to review four successful projects