在字段可能为空的地方进行乘法运算
嗨!
我用3列乘以后面的3列得到总成本的和。然而,这里有一个实例,其中“1455 REP加仑使用”是空白的。我现在得到旧的无效操作。
“if error”会解决这个问题吗?如果是,它会去哪里?
=IF(ISBLANK([使用的1455亩加仑]@row), "", IF([使用的1455亩加仑]@row = 0, "",([每加仑1455亩磅]@row *[使用的1455亩加仑]@row *[每磅1455亩价格($)]@row) +([每加仑1455磅]@row *[使用的1455亩加仑]@row *[每磅1455磅价格($)]@row)))
答案
-
Hollie绿色 ✭✭✭✭✭
这取决于您希望在这些类型的场景中得到什么样的结果。您可以很容易地使总成本栏是空白的使用。
=IFERROR(IF(ISBLANK([使用的1455亩加仑]@row), "", IF([使用的1455亩加仑]@row = 0, "",([每加仑1455亩磅]@row *[每磅1455亩加仑]@row *[每磅1455亩价格($)]@row) +([每加仑1455磅]@row *[每磅1455亩加仑使用]@row *[每磅1455亩价格($)]@row)),""))
-
伊丽莎白Aird ✭✭
当我加上这个时,它给了我一个“无效论证”。
-
吉纳维芙P。 员工管理
试试这个:
=IF(OR([使用的1455亩加仑]@row = "",[使用的1455亩加仑]@row = 0), 0,([每加仑1455亩磅]@row *[使用的1455亩加仑]@row *[每磅1455亩价格($)]@row)) +([每加仑1455磅]@row *[使用的1455亩加仑]@row *[每磅1455磅价格($)]@row)
它会查看加仑使用量是空的还是0,如果是,则将其设为0 +剩下的公式.否则,如果它不是空的或0,它就做乘法剩下的公式.
欢呼,
吉纳维芙
-
伊丽莎白Aird ✭✭
仍然得到一个错误的论点…
-
吉纳维芙P。 员工管理
-
伊丽莎白Aird ✭✭
我终于把它修好了。谢谢你! !
帮助文章参考资料欧宝体育app官方888
类别
I hope you're well and safe!<\/p>
Yes, absolutely.<\/p>
Here's the structure.<\/p>
=INDEX({ColumnWithTheValueYouWantToShow}, MATCH(CellThatHaveTheValueToMatch@row,{ColumnWithTheValueToMatchAgainsTheCell}, 0))<\/p>
I hope that helps!<\/p>
Be safe, and have a fantastic week!<\/p>
Best,<\/p>
Andrée Starå<\/strong><\/a> | Workflow Consultant \/ CEO @ WORK BOLD<\/strong><\/a><\/p>
If you're using dependencies in a Project Sheet, then the Duration column is not able to be updated via formulas <\/a>or cell links. This is because it's used in combination with the Start and Finish dates in your sheet to automatically generate data (e.g. if you add the Start date and a Duration, the Finish date populates. If you add the Start date and Finish date, the Duration automatically populates).<\/p>