2017-04-12 75 views
-1
IF A2>=25 { 

    IF B2>=17 then print("Bad Product") 
    IF B2<17 then print("FALSE") 

} ELSE IF A2<25 { 

    IF B2>=6 then print("Bad Product") 
    IF B2<6 then print("FALSE") 

} else print "Withous Value" 
+1

不知道这应该是哪种语言定制的Excel公式。但如果你正在寻找相当于Excel的公式,那么这可能会起作用:'= IF(A2> = 25,IF(B2> = 17,“Bad Product”),IF(B2> = 6,“Bad Product”)) '。请注意,我消除了'False',因为这是'IF'没有达到'True'时的默认值。另外,由于'A2> = 25'和'A2 <15'已经被处理,所以我无法理解你的文章中最后的'else'。所以,你可能想详细说明应该是什么。 – Ralph

回答

0
=IF(A2 >= 25, IF(B2 >=17, "Bad Product", "FALSE"), IF(A2 < 25, IF(B2 >= 6, "Bad Product", "FALSE"), "Withous Value")) 
+0

您是否知道您的配方中永远无法达到'Withous Value',并且(如此)过时? – Ralph

+0

我知道这个事实,但问题特别要求这种情况 – namsnath

+0

@Ralph,如果A2是虚构的呢? –