excel函数if-countif

if用于判断,countif用于数数

1
2
if(logical_test,value_is_true,value_is_false)
if(怎么样,则怎么样,否则怎么样)

if中if的嵌套

1
if(logical_teat,value_is_ture,if(logical_is_true,value_is_true,value_is_false))

if与and/or/not的配合使用

1
2
3
4
5
IF(AND(Something is True, Something else is True), Value if True, Value if False)

IF(OR(Something is True, Something else is True), Value if True, Value if False)

IF(NOT(Something is True), Value if True, Value if False)
1
2
countif()函数用于有条件的数数
countif(区间,条件)

countif只能数小于15位的字符串
如果字符串值大于15位,则

1
countif(区间,值&"*")