在COLLECT中使用OR
你好,
我试图在收集函数的标准中使用OR操作符。当前返回一个#INCORRECT ARGUMENT SET:
=IFERROR(INDEX(COLLECT({WAP存款号},{WAP日期},Date147, {WAP类型},OR("CHECK", "CREDIT"), 1), ""))))
如果日期匹配并且类型是“支票”或“信用”,我试图返回存款号{WAP存款号}
可能是我错过了什么很愚蠢的东西……
什么好主意吗?
谢谢,
安迪
评论
-
她名叫Stara ✭✭✭✭✭✭
智能表专家顾问兼合伙人
W:www.workbold.com| E:(电子邮件保护)| p: +46 (0) - 72 - 510 99 35
请随时与我联系,了解有关Smartsheet,集成,一般工作流建议或其他方面的帮助。
-
Andy_DAI ✭
嗨,安德里。
谢谢——不幸的是,collect函数的语法有点不同。
它是COLLECT(RANGE, Criterion_range1, criterion1,等等)
-
保罗新来的 ✭✭✭✭✭✭
thinkspi.com
-
她名叫Stara ✭✭✭✭✭✭
很乐意帮忙!
我知道,但是我之前没有时间写出来。
智能表专家顾问兼合伙人
W:www.workbold.com| E:(电子邮件保护)| p: +46 (0) - 72 - 510 99 35
请随时与我联系,了解有关Smartsheet,集成,一般工作流建议或其他方面的帮助。
-
保罗新来的 ✭✭✭✭✭✭
我刚刚又看了一遍,我发现你的括号也有点偏离……
.
这是你的原始公式:
=IFERROR(INDEX(COLLECT({WAP存款号},{WAP日期},Date147, {WAP类型},OR("CHECK", "CREDIT"), 1), ""))))
.
“CREDIT”后面的括号是关闭OR。
这意味着1实际上包含在COLLECT语句中(作为一个不起作用的范围,并且碰巧缺少一个标准)。这将“”推到INDEX函数中的行号,这意味着没有为IFERROR语句的第二部分指定任何内容。
所有这些事情本身都会导致#INCORRECT ARGUMENT SET错误。
在“CREDIT”后面添加一个右括号,并在公式末尾删除一个。
这个和@cellOR函数中的引用应该清除所有内容。
=IFERROR(INDEX(COLLECT({WAP存款号},{WAP日期},Date147, {WAP类型},OR())@cell=“检查”,@cell=“信贷”)), 1), ")
thinkspi.com
-
保罗新来的 ✭✭✭✭✭✭
编辑到上面(又是cloudfare阻塞问题):
我还想为之前错过这个道歉。我太专注于你的帖子的标题,试图在COLLECT中使用OR,我没有把公式作为一个整体来参考你得到的错误信息。
让我们知道这是否有帮助。
thinkspi.com
-
保罗新来的 ✭✭✭✭✭✭
@Ross Novotny试试这个……
=IFERROR(INDEX(COLLECT({主城市名称}),{位置状态},或者(@cell = "位置推荐",@cell = "位置批准")), 1),“”
thinkspi.com
-
ssagers ✭✭
@Paul新来的&@Andree Stara-只是想感谢你的帮助这么多在这些论坛!你又给了我一个答案。<3
帮助文章参考资料欧宝体育app官方888
类别
=IFERROR(DATE(YEAR([Date Completed]@row) + 3, MONTH([Date Completed]@row), DAY([Date Completed]@row)), \"//www.santa-greenland.com/community/discussion/53521/\")<\/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":219,"urlcode":"Sheets","name":"Sheets"},{"tagID":254,"urlcode":"Formulas","name":"Formulas"},{"tagID":324,"urlcode":"community-platform","name":"Community Platform"},{"tagID":485,"urlcode":"community-champions","name":"Community Champions"}]},{"discussionID":106206,"type":"question","name":"Pie Chart breaks when values are zero","excerpt":"In a dashboard, pie charts are breaks the reference and shows as Unable to display chart when reference values are changed to zero as these vales calculated via formula. Only Bar charts are showing as No data to display. My end goal is to show as No data to display when values are zero. Kindly help me out here.","categoryID":322,"dateInserted":"2023-06-08T15:21:25+00:00","dateUpdated":null,"dateLastComment":"2023-06-08T18:01:33+00:00","insertUserID":162199,"insertUser":{"userID":162199,"name":"Gajapathi R M","title":"Mr","url":"https:\/\/community.smartsheet.com\/profile\/Gajapathi%20R%20M","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-08T17:37:33+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-08T18:05:48+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":6,"countViews":24,"score":null,"hot":3372488578,"url":"https:\/\/community.smartsheet.com\/discussion\/106206\/pie-chart-breaks-when-values-are-zero","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106206\/pie-chart-breaks-when-values-are-zero","format":"Rich","tagIDs":[292],"lastPost":{"discussionID":106206,"commentID":379679,"name":"Re: Pie Chart breaks when values are zero","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/379679#Comment_379679","dateInserted":"2023-06-08T18:01:33+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-08T18:05:48+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,"image":{"url":"https:\/\/us.v-cdn.net\/6031209\/uploads\/7KSJLJBZG3GE\/only-bar-chart-png.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"Only Bar Chart.PNG"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-08T17:37:29+00:00","dateAnswered":"2023-06-08T17:12:16+00:00","acceptedAnswers":[{"commentID":379665,"body":"
So is it a sheet that has the calculations on it or a row report? If it is a sheet then you can add 0.00001 to all calculations and decrease the shown decimals. This will maintain some data greater than zero but only display 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":[{"tagID":292,"urlcode":"Dashboards","name":"Dashboards"}]},{"discussionID":106211,"type":"question","name":"SUMIFS and CONTAINS or MAX","excerpt":"Here's a fun one that's got me scratching my head. So I am trying to add the rows that contain the terms Agile Kanban and waterfall. SUM works, =SUMIF((Variable$2:Variable$9), HAS((Variable$2:Variable$9), (Variable@row)), (A$2:A$9)) returns a 0 and =SUMIF(Variable$2:Variable$9, CONTAINS(Variable@row,…","categoryID":322,"dateInserted":"2023-06-08T16:00:30+00:00","dateUpdated":"2023-06-08T16:04:20+00:00","dateLastComment":"2023-06-08T16:54:43+00:00","insertUserID":160886,"insertUser":{"userID":160886,"name":"Nicole V","title":"Financial Projects Manager","url":"https:\/\/community.smartsheet.com\/profile\/Nicole%20V","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!eiPlp6_hG7I!7GDve_5PRfo!yeqJFAgg3ow","dateLastActive":"2023-06-08T16:37:31+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":91566,"lastUserID":15741,"lastUser":{"userID":15741,"name":"ker9","url":"https:\/\/community.smartsheet.com\/profile\/ker9","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-08T18:55:12+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":4,"countViews":20,"score":null,"hot":3372485713,"url":"https:\/\/community.smartsheet.com\/discussion\/106211\/sumifs-and-contains-or-max","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106211\/sumifs-and-contains-or-max","format":"Rich","lastPost":{"discussionID":106211,"commentID":379659,"name":"Re: SUMIFS and CONTAINS or MAX","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/379659#Comment_379659","dateInserted":"2023-06-08T16:54:43+00:00","insertUserID":15741,"insertUser":{"userID":15741,"name":"ker9","url":"https:\/\/community.smartsheet.com\/profile\/ker9","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-08T18:55:12+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,"image":{"url":"https:\/\/us.v-cdn.net\/6031209\/uploads\/3BDTJOPMXHWQ\/image.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-08T16:49:15+00:00","dateAnswered":"2023-06-08T16:36:32+00:00","acceptedAnswers":[{"commentID":379652,"body":"