简体   繁体   English

Excel:嵌套if语句

[英]Excel: Nested if statement

Working in Excel 2011 and I can't seem to get a few nested if statements to work. 在Excel 2011中工作,我似乎无法嵌套一些if语句。 It is pretty straightforward: 这很简单:

What I'm trying to say, as also seen in the picture below, is: 正如下面的图片所示,我想说的是:

  • if a2 and b2 and c2 all have values then: Shared 如果a2和b2和c2都具有值,则:共享
  • if either a2 or b2 have values and c2 has a value then: Shared 如果a2或b2具有值且c2具有值,则:共享
  • if a2 and b2 are both #N/A then: CAN 如果a2和b2均为#N / A,则:CAN
  • if c2 if #N/A then: US 如果c2如果#N / A然后:US

my current if statement, shown in picture, is not completed but still doesn't work on the parts that are finished. 我当前的if语句(如图所示)尚未完成,但在已完成的零件上仍然不起作用。 For example, it does not list CAN for any outputs(rows 12-32). 例如,它没有列出任何输出(行12-32)的CAN。 The equation that is highlighted in the picture is for cell d4. 图片中突出显示的方程式适用于单元格d4。

Any help would be much appreciated. 任何帮助将非常感激。 Cheers 干杯 ![在此处输入图片描述 ] 1 ] 1

您需要先在IF语句中检查#N / A值,否则评估将停止并返回#N / A(如您的示例)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM