EXcel表格中if函数如何用

如题所述

温馨提示:答案为网友推荐,仅供参考
第1个回答  2015-09-12

if函数 是个条件判断函数。

 

     语法:  if(条件,a,b)

     解释:    如果 条件成立,返回a 否返回b。


举例说明   


  在B1单元格 输入公式   =if(A1>5,"Y","N")  

 

  在这里就是要判断A1的单元格的值是否大于5,如果大于5(条件成立)就会返回Y   否则就返回N 


公式效果图

本回答被网友采纳
第2个回答  2018-05-07

IF函数有三个参数,语法如下:

=IF(条件判断, 结果为真返回值, 结果为假返回值)

第一参数是条件判断,比如说“A1="百度"”或“21>37”这种,结果返回TRUE或FALSE。如果判断返回TRUE那么IF函数返回值是第二参数,否则返回第三参数。

Excel自带解释:

IF function in Excel

SYNTAX :  IF(Something is True, then do this, otherwise do this)

Example: =IF(A1EXPLANATION : If the value in A1 is less than the value in B1, the value "OK" is returned, otherwise return a 0.

The IF function in Excel returns one value if a condition is true and another value if it's false. You can use up to 64 additional IF functions inside an IF function. Excel has other functions that can be used to analyze your data based on a condition like the COUNTIF or COUNTIFS worksheet functions.

本回答被网友采纳
第3个回答  2019-11-23
第4个回答  2012-01-08
根据对指定的条件计算结果为 TRUE 或 FALSE,返回不同的结果。
例题:
公式1
=IF(A2<=100,"预算内","超出预算")
公式说明:
如果上面的数字小于等于 100,则公式将显示“预算内”。否则,公式显示“超出预算”。

公式2
=IF(A2=100,SUM(B5:B15),"")
公式说明:
如果上面数字为 100,则计算单元格区域 B5:B15的和,否则返回空文本。本回答被网友采纳
相似回答