嵌套Ifs用于个人会计表


0

我有一个5列的个人会计表。 C是借方,D是贷方,E是余额。我想做三件事,但过去一小时我一直在困惑自己。

如果C5和D5都为空白,则在E5中返回空白。

如果C5包含数字,则从E4中减去C5并在E5中显示值

如果D5包含数字,请将其添加到E4并在E5中显示值

Answers:


0

enter image description here

公式是: =IF(COUNT(C5:D5)=0,"",IF(ISNUMBER(C5),E4-C5,E4+D5))
正如你在问题中写的那样,即使C5和D5都包含数字,它也只进行减法。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.