如何从计算中删除NA

你好,

我目前正在使用下面的公式来获得百分比完整计算,其中一个参数有NA的选项。我如何在公式中加入NA以使它不影响百分比?它是下面的粗体参数:


=SUM(IF([收到的文件]1 = "YES", 0.2, 0), IF([收到的样品]1 = "YES", 0.2, 0),IF([MEC HPLC Received]1 = "YES", 0.2, 0), IF(Hold1 = "YES", 0,0), IF([Micro Received]1 = "YES", 0.2, 0), IF(Discrepancies1 = "NO", 0.2, 0))

标签:

答案

  • 你能给我一个截图吗?哪些参数包括NA, [MEC HPLC Received]?

  • 是MEC HPLC Received有NA

  • 杰夫瑞斯曼
    杰夫瑞斯曼 ✭✭✭✭✭✭

    @tchav尝试添加下面的粗体。如果[MEC HPLC Received]1 <> "Yes",它将创建一个嵌套IF作为"value IF false",因此,如果[MEC HPLC Received]1 = "NA",它将使单元格空白,但如果它不是Yes或NA,它将单元格设置为0。

    =SUM(IF([收到的文书]1 = "YES", 0.2, 0), IF([收到的样品]1 = "YES", 0.2, 0), IF([MEC HPLC收到的样品]1 = "YES", 0.2, 0,IF[MEC HPLC Received]1 = "NA", "", 0)),IF(Hold1 = "YES", 0,0), IF([Micro Received]1 = "YES", 0.2, 0), IF(Discrepancies1 = "NO", 0.2, 0))

    问候,

    杰夫瑞斯曼IT业务分析师及项目协调员,三菱电机特灵美国

    链接:智能表功能帮助页面链接:Smartsheet公式错误信息

    如果我的回答帮助解决了您的问题,请将其标记为接受,以便其他用户稍后可以找到它。谢谢!

  • 保罗新来的
    保罗新来的 ✭✭✭✭✭✭

    试试OR语句。


    =SUM(IF([收到的文件]1 = "YES", 0.2, 0), IF([收到的样品]1 = "YES", 0.2, 0), IF(OR([MEC HPLC Received]1 = "YES", [MEC HPLC Received]1 = "N/A"), 0.2, 0),如果(Hold1 = " YES ", 0, 0),如果(微收到1 = " YES ", 0.2, 0),如果(Discrepancies1 = "不",0.2,0))

    thinkspi.com

  • 杰夫瑞斯曼
    杰夫瑞斯曼 ✭✭✭✭✭✭
    That didnt work. :(<\/p>","bodyRaw":"[{\"insert\":\"That didnt work. :( \\n\\n\"}]","format":"rich","dateInserted":"2023-03-27T04:04:39+00:00","insertUser":{"userID":159528,"name":"tchav","url":"https:\/\/community.smartsheet.com\/profile\/tchav","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-01T00:55:45+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"displayOptions":{"showUserLabel":false,"showCompactUserInfo":true,"showDiscussionLink":false,"showPostLink":false,"showCategoryLink":false,"renderFullContent":false,"expandByDefault":false},"url":"https:\/\/community.smartsheet.com\/discussion\/comment\/368981#Comment_368981","embedType":"quote"}"> https://community.smartsheet.com/discussion/comment/368981#Comment_368981

    我漏了一个括号如果[MEC HPLC Received]1 = "NA"。很抱歉:

    =SUM(IF([文书收到]1 = "YES", 0.2, 0), IF([样品收到]1 = "YES", 0.2, 0), IF([MEC HPLC收到]1 = "YES", 0.2, IF[MEC HPLC Received]1 = "NA", "", 0))IF(Hold1 = "YES", 0,0), IF([Micro Received]1 = "YES", 0.2, 0), IF(Discrepancies1 = "NO", 0.2, 0))

    问候,

    杰夫瑞斯曼IT业务分析师及项目协调员,三菱电机特灵美国

    链接:智能表功能帮助页面链接:Smartsheet公式错误信息

    如果我的回答帮助解决了您的问题,请将其标记为接受,以便其他用户稍后可以找到它。谢谢!

帮助文章参考资料欧宝体育app官方888

想要直接在智能表中练习使用公式吗?

请查看公式手册模板!
There are sometimes issues with data containing leading zeros. Try an @cell reference like so:<\/p>

=COUNTIFS({Range}, @cell =<\/strong> [Job Number]@row)<\/p>


<\/p>

Do you have any job numbers anywhere that do not have a leading zero?<\/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":106824,"type":"question","name":"pulling distinct data to another sheet","excerpt":"I have a worksheet which I am working metrics on a separate worksheet. I have a list of courses on the main sheet and they can be duplicates. What I am trying to do is pulling those distinct courses onto another worksheet and I can use count how many times they are used for, but I need to pull that distinct courses from a…","categoryID":322,"dateInserted":"2023-06-23T13:21:13+00:00","dateUpdated":null,"dateLastComment":"2023-06-23T13:54:22+00:00","insertUserID":160445,"insertUser":{"userID":160445,"name":"topazfae","title":"Project Manager","url":"https:\/\/community.smartsheet.com\/profile\/topazfae","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/AGNmyxbJ3U64IGvX8bmfaqFsly2Ax_danmhhYKsfmMgQsQ=s96-c","dateLastActive":"2023-06-23T17:00:58+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":45516,"lastUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-06-23T17:08:10+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":1,"countViews":20,"score":null,"hot":3375055535,"url":"https:\/\/community.smartsheet.com\/discussion\/106824\/pulling-distinct-data-to-another-sheet","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106824\/pulling-distinct-data-to-another-sheet","format":"Rich","lastPost":{"discussionID":106824,"commentID":381960,"name":"Re: pulling distinct data to another sheet","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/381960#Comment_381960","dateInserted":"2023-06-23T13:54:22+00:00","insertUserID":45516,"insertUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-06-23T17:08:10+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"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-23T14:47:10+00:00","dateAnswered":"2023-06-23T13:54:22+00:00","acceptedAnswers":[{"commentID":381960,"body":"

You would need a helper column on the metrics sheet (called \"Number\" in this example). You would manually enter the numbers 1 - whatever to cover the maximum number of possible unique classes. I also suggest a bit of a buffer just in case.<\/p>


<\/p>

Then the formula to pull in the distinct list would be<\/p>

=IFERROR(INDEX(DISTINCT({Course List}), Number@row), \"\")<\/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":106779,"type":"question","name":"Formula to collect the first and last values from children rows, but only if distinct.","excerpt":"Hello Community People, I'm working to create a report that will show a summary of the location where a person will be each day. The source sheet is set up with parent rows listing the date and child rows showing all the events scheduled for that date, and there is a single drop-down \"Location\" column to select the city in…","categoryID":322,"dateInserted":"2023-06-22T16:18:20+00:00","dateUpdated":null,"dateLastComment":"2023-06-23T16:57:43+00:00","insertUserID":38776,"insertUser":{"userID":38776,"name":"Lindsay P.","url":"https:\/\/community.smartsheet.com\/profile\/Lindsay%20P.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-23T17:02:06+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"updateUserID":null,"lastUserID":45516,"lastUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-06-23T17:08:10+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":5,"countViews":29,"score":null,"hot":3374993163,"url":"https:\/\/community.smartsheet.com\/discussion\/106779\/formula-to-collect-the-first-and-last-values-from-children-rows-but-only-if-distinct","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106779\/formula-to-collect-the-first-and-last-values-from-children-rows-but-only-if-distinct","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":106779,"commentID":382027,"name":"Re: Formula to collect the first and last values from children rows, but only if distinct.","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/382027#Comment_382027","dateInserted":"2023-06-23T16:57:43+00:00","insertUserID":45516,"insertUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-06-23T17:08:10+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"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-23T14:44:08+00:00","dateAnswered":"2023-06-23T13:01:32+00:00","acceptedAnswers":[{"commentID":381931,"body":"

Try something like this:<\/p>

=IF(Level@row = 0, INDEX(CHILDREN(Location@row), 1) + IF(COUNT(DISTINCT(CHILDREN(Location@row))) > 1, \" to \" + INDEX(CHILDREN(Location@row), COUNT(CHILDREN(Location@row)))))<\/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":[{"tagID":254,"urlcode":"Formulas","name":"Formulas"}]}],"initialPaging":{"nextURL":"https:\/\/community.smartsheet.com\/api\/v2\/discussions?page=2&categoryID=322&includeChildCategories=1&type%5B0%5D=Question&excludeHiddenCategories=1&sort=-hot&limit=3&expand%5B0%5D=all&expand%5B1%5D=-body&expand%5B2%5D=insertUser&expand%5B3%5D=lastUser&status=accepted","prevURL":null,"currentPage":1,"total":10000,"limit":3},"title":"Trending in Formulas and Functions ","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

公式和函数趋势