简体   繁体   中英

Excel: Nested if statement

Working in Excel 2011 and I can't seem to get a few nested if statements to work. 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
  • if either a2 or b2 have values and c2 has a value then: Shared
  • if a2 and b2 are both #N/A then: CAN
  • if c2 if #N/A then: US

my current if statement, shown in picture, is not completed but still doesn't work on the parts that are finished. For example, it does not list CAN for any outputs(rows 12-32). The equation that is highlighted in the picture is for cell d4.

Any help would be much appreciated. Cheers ![在此处输入图片描述 ] 1

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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