在字段可能为空的地方进行乘法运算
嗨!
我用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> ✅Did my post(s) help or answer your question or solve your problem? Please support the Community by <\/em>marking it Insightful\/Vote Up, Awesome, or\/and as the accepted answer<\/em><\/strong>. It will make it easier for others to find a solution or help to answer!<\/em><\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":106314,"type":"question","name":"Flexible Duration value when calculating scheduling dates","excerpt":"I have a Smartsheet which is a project plan with the Dependencies and Duration columns is being used in scheduling calculations to automatically deriving the start\/end dates for each task. However, I need the Duration to be dynamic e.g. linking cell to a cell in another sheet or to contain a formulae.. However, I cannot…","categoryID":322,"dateInserted":"2023-06-12T12:39:46+00:00","dateUpdated":null,"dateLastComment":"2023-06-13T11:22:45+00:00","insertUserID":162290,"insertUser":{"userID":162290,"name":"Mark Duddy","title":"Program Manager","url":"https:\/\/community.smartsheet.com\/profile\/Mark%20Duddy","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-13T11:41:04+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":91566,"lastUser":{"userID":91566,"name":"Genevieve P.","title":"Community Manager","url":"https:\/\/community.smartsheet.com\/profile\/Genevieve%20P.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/KHY4Y67W0VRX\/nF76D5N9MFB28.png","dateLastActive":"2023-06-13T12:58:09+00:00","banned":0,"punished":0,"private":false,"label":"Employee Admin"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":56,"score":null,"hot":3373230151,"url":"https:\/\/community.smartsheet.com\/discussion\/106314\/flexible-duration-value-when-calculating-scheduling-dates","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106314\/flexible-duration-value-when-calculating-scheduling-dates","format":"Rich","lastPost":{"discussionID":106314,"commentID":380264,"name":"Re: Flexible Duration value when calculating scheduling dates","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/380264#Comment_380264","dateInserted":"2023-06-13T11:22:45+00:00","insertUserID":91566,"insertUser":{"userID":91566,"name":"Genevieve P.","title":"Community Manager","url":"https:\/\/community.smartsheet.com\/profile\/Genevieve%20P.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/KHY4Y67W0VRX\/nF76D5N9MFB28.png","dateLastActive":"2023-06-13T12:58:09+00:00","banned":0,"punished":0,"private":false,"label":"Employee Admin"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-13T11:24:19+00:00","dateAnswered":"2023-06-13T11:22:45+00:00","acceptedAnswers":[{"commentID":380264,"body":"