越是碎片化时代,越是系统化学习!今日学习主题:逻辑函数
001逻辑值true,false
逻辑函数:AND(串联)、OR(并联)、NOT(黑白颠倒)
002基本用法
=IF(B2>=60,"及格")
=AND(B2>=60,C2>=60)
=OR(B2>=60,C2>=60)
003进阶用法
=IF(B2>=60,"及格","不及格")
=IF(判断条件,符合条件时返回的值,不符合条件时返回的值)
=IF(AND(B2>=90,C2>=90),"优秀","")
=IF(OR(B2=100,C2=100),"满分","")
004IF函数多条件判断
=IF(OR(B2=100,C2=100),"满分","")
=IF(B30="A1",5000,IF(B30="A2",8000,IF(B30="A3",10000)))
005多条件区间判断
=IF(B2<60,"不及格",IF(B2<70,"及格",IF(B2<85,"良好","优秀")))
006返回区域
=SUM(IF(A2="销售1部",B5:B9,E5:E9))
007.IFERROR函数
=IFERROR(C2/B2,"错误")
008实战应用
009拓展用法
=IF(B5>=2000,2000,B5)
=MIN(B5,2000)
=IF(B20=C20,"正确",IF(B20>C20,"少"&(B20-C20),"多"&(C20-B20)))
=TEXT(C20-B20,"少#;多#;正确")
=VLOOKUP(B47,$B$35:$C$43,2)
=LOOKUP(B47,$B$35:$B$43,$C$35:$C$43)
=IF(A63=101,"总办",IF(A63=102,"销售",IF(A63=103,"财务",IF(A63=104,"客服",IF(A63=105,"人事")))))
=CHOOSE(A63-100,"总办","销售","财务","客服","人事")
010画个笑脸
步骤一:选中A1:CN95单元格区域
步骤二:在公式编辑栏输入以下公式,然后注意,按结束
70)^2))=10)*(ROW()<30)+(INT(SQRT((ROW()-15)^2+(COLUMN()-30)^2))=10)*(ROW()<14)+(INT(SQRT((ROW()-15)^2+(COLUMN()-70)^2))=10)*(ROW()<14)+(INT(SQRT((ROW()-50)^2+(COLUMN()-50)^2))=30)*(ROW()>50)+((ROW()=50)*(COLUMN()>21)*(COLUMN()<79)),"█","")
步骤三:把行、列的高度与宽度拉小到一个合适的范围,这样的一个笑脸就在你的Excel表格中出现了。
网友评论