开发者

Excel - if and or function

开发者 https://www.devze.com 2023-04-07 14:33 出处:网络
The formula I\'m trying to write is CellACellBCellC Total PriceOrder status开发者_如何转开发Delivery Status**

The formula I'm trying to write is

CellA             CellB              CellC
Total Price       Order status       开发者_如何转开发Delivery Status**
Null              Authorised    
Null              Authorised         Null
$100              Authorised         Authorised

if cell A = Null and cell C = Null or blank... then "ERROR"

How would I write the formula?


Assuming CellA is A2 and CellC is C2, use this formula below

=IF(AND($A2="null",OR($C2="NULL",$C2="")),"ERROR","NoError")

if you have assigned variable name to each cell you can use CellA and CellC instead


Off the top of my head...

=IF(A2 == "NULL", IF(OR(C2 == "NULL", C2 == ""), "ERROR", ""), "")
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号