当前位置:首页>维修大全>生活>

当excel表格中大于等于某个数值或小于等于某个数值时 要显示我所要的固定数值 如何设定公式的条件

当excel表格中大于等于某个数值或小于等于某个数值时 要显示我所要的固定数值 如何设定公式的条件

更新时间:2023-06-28 18:17:11

当excel表格中大于等于某个数值或小于等于某个数值时 要显示我所要的固定数值 如何设定公式的条件

使用if嵌套语句,公式如下:=if(B2>=10, 1, if(5<B2<10, 0.8, if(5<=B2,0,3, "NA")))返回“NA”表示这个数值不存在。

excel自带的if函数解释:IF function in Excel SYNTAX :  IF(Something is True, then do this, otherwise do this)Example: =IF(A1 EXPLANATION : If the value in A1 is less than the value in B1, the value "OK" is returned, otherwise return a 0.

更多栏目