下拉多选择计数-如何计数时,超过一个下拉呈现?
我试图使用一个countifs,以创建一个总结的东西,使用一个值从一列(有一个单一的选择下拉)作为限定符来计数行,如果另一列有一个特定的值,“dropdownvalue_2”。
我遇到的问题是,当我在多选列中有多个值时,结果它找不到匹配,因为那里有两个值(从下拉菜单中选择一个或多个)。为了正确地计数,它必须包含“dropdownvalue_2”,我不关心它是否也有其他值,如“dropdownvalue_1”和“dropdownvalue_3”。
=COUNTIFS([first_column]:[first_column], "status", [second_column]:[second_column], "dropdownvalue_2")
有什么解决办法吗?
答案
-
darrink ✭
谢谢杰夫……我把它放进去,看起来我可能还遗漏了一些东西。
=COUNTIFS([引用验证步骤]:[引用验证步骤],"已批准/已验证",[符合条件的交易类型]:[符合条件的交易类型],HAS(cell = "托管服务(建议&报价)"))
我得到#无法解析
0 -
杰夫瑞斯曼 ✭✭✭✭✭
您错过了cell=前面的“@”
=COUNTIFS([引用验证步骤]:[引用验证步骤],"已批准/已验证",[符合条件的交易类型]:[符合条件的交易类型],HAS(@cell = "托管服务(提议和引用)"))
0 -
darrink ✭
谢谢杰夫。我现在得到#不正确的参数集
0 -
杰夫瑞斯曼 ✭✭✭✭✭
对不起,这是我的错!我想我说得太快了。
HAS函数中的=号应该有一个逗号。=号是导致错误的原因。顺便说一句,我签名中的链接指向函数列表和帮助页面,以及公式错误消息及其解释列表。这些非常有用。
=COUNTIFS([引用验证步骤]:[引用验证步骤],"已批准/已验证",[合格的交易类型]:[合格的交易类型],HAS(@cell,“托管服务(建议和引用)”))
1 -
darrink ✭
谢谢杰夫,是的,这个公式现在起作用了!
非常感谢!
0
帮助文章资源欧宝体育app官方888
类别
You need to create a NEW reference, with a different reference name, for the Status Column. <\/p>
To do this, edit your COUNTIF formula, and completely delete \"Account Profile - Lafayette Square Range 2\". Then select Reference Another Sheet, and define a new reference being sure to give it a new name and highlight the proper column.<\/p> As a best practice, you should give your reference names more meaningful names to help in your troubleshooting.<\/p> e.g. \"Dollar Values\" and \"Status\" instead of \"Range 2\"<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-09-15 23:02:36","updateUser":{"userID":118935,"name":"Christina Reid","url":"https:\/\/community.smartsheet.com\/profile\/Christina%20Reid","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2022-09-15T23:02:41+00:00","banned":0,"punished":0,"private":false,"label":"✭"}}},"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":95396,"type":"question","name":"Incorrect Arguement","excerpt":"Hi all, last ditch effort here to help me keep my sanity. I have a formula that is working in one sheet. I've copied the formula and updated the references (as needed) but the formula on the new sheet returns an #INCORRECT ARGUEMENT error. Original formula (that works) =IFERROR(IF(WEEKDAY(TODAY()) = 1, COUNTIFS({Activity…","categoryID":322,"dateInserted":"2022-09-15T14:38:01+00:00","dateUpdated":"2022-09-15T14:53:13+00:00","dateLastComment":"2022-09-15T17:07:46+00:00","insertUserID":4350,"insertUser":{"userID":4350,"name":"Eric W.","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Eric%20W.","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!psnB6d7cvTw!wiNAd2boODQ!oitY5juQe8u","dateLastActive":"2022-09-15T17:18:18+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"updateUserID":4350,"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":"2022-09-15T17:07:10+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":33,"score":null,"hot":3326516147,"url":"https:\/\/community.smartsheet.com\/discussion\/95396\/incorrect-arguement","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/95396\/incorrect-arguement","format":"Rich","lastPost":{"discussionID":95396,"commentID":343690,"name":"Re: Incorrect Arguement","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/343690#Comment_343690","dateInserted":"2022-09-15T17:07:46+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":"2022-09-15T17:07: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":"2022-09-15T16:17:08+00:00","dateAnswered":"2022-09-15T16:03:19+00:00","acceptedAnswers":[{"commentID":343679,"body":" Double check your ranges. It looks like the syntax is correct, so the only thing left is that your range shape\/sizes don't match somewhere or two different ranges within the same function are referencing two different sheets.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question","log":{"dateUpdated":"2022-09-15 16:17:08","updateUser":{"userID":4350,"name":"Eric W.","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Eric%20W.","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!psnB6d7cvTw!wiNAd2boODQ!oitY5juQe8u","dateLastActive":"2022-09-15T17:18:18+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}}},"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":95394,"type":"question","name":"Need formula help.","excerpt":"I have the following formula: =IFERROR(IF([Date Complete]@row = [Due Date]@row, 0, IF([Date Complete]@row > [Due Date]@row, NETWORKDAYS([Due Date]@row, [Date Complete]@row) - 1, IF([Date Complete]@row < [Due Date]@row, NETWORKDAYS([Due Date]@row, [Date Complete]@row) + 1, \"//www.santa-greenland.com/community/discussion/90737/\"))), \"//www.santa-greenland.com/community/discussion/90737/\") How do I add a contingency for if the…","categoryID":322,"dateInserted":"2022-09-15T14:30:27+00:00","dateUpdated":null,"dateLastComment":"2022-09-15T15:07:10+00:00","insertUserID":152014,"insertUser":{"userID":152014,"name":"Anne BWarren","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Anne%20BWarren","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/YOZTR02C9N57\/nR5KGZ2674DHO.jpg","dateLastActive":"2022-09-15T16:34:45+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":152014,"lastUser":{"userID":152014,"name":"Anne BWarren","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Anne%20BWarren","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/YOZTR02C9N57\/nR5KGZ2674DHO.jpg","dateLastActive":"2022-09-15T16:34:45+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":26,"score":null,"hot":3326507857,"url":"https:\/\/community.smartsheet.com\/discussion\/95394\/need-formula-help","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/95394\/need-formula-help","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":95394,"commentID":343665,"name":"Re: Need formula help.","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/343665#Comment_343665","dateInserted":"2022-09-15T15:07:10+00:00","insertUserID":152014,"insertUser":{"userID":152014,"name":"Anne BWarren","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Anne%20BWarren","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/YOZTR02C9N57\/nR5KGZ2674DHO.jpg","dateLastActive":"2022-09-15T16:34:45+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":"2022-09-15T15:07:14+00:00","dateAnswered":"2022-09-15T14:52:00+00:00","acceptedAnswers":[{"commentID":343662,"body":"=COUNTIF( {Account Profile - Lafayette Square STATUS<\/strong>}, \"Complete\")<\/code><\/p>