欢迎来到Smartsheet论坛档案


在这个论坛的帖子不再被监控的准确性和他们的内容可能不再是最新的。如果这里有你感兴趣的讨论,你想找到(或创建)一个更最新的版本,请访问当前论坛。

SUMIFS多重标准

网卡
网卡
编辑12/09/19 2017年发布的文章

我在责备自己。

我试图计算任务的总和,如果他们有状态“提交”和提交的日期是在3月,那么它会计算值。

目前它说的是“无法解析”

=SUMIFS([Submitted ($)]:[Submitted ($)], [Status]:[Status], "Submitted", [Date Submitted]:[Date Submitted], ">=03/01/17", [Date Submitted]:[Date Submitted], "<=03/31/17",)

任何帮助都将非常感激

标签:

评论

  • 嗨,尼克,

    我看到在SUMIFS表达式的右括号之前有一个多余的逗号。那是小妖精吗?

    欢呼,

    抢劫

  • 约翰Creason
    约翰Creason 员工
    编辑03/09/17

    网卡,

    我认为这个公式存在一些挑战。SUMIFS中的多个标准是一个挑战,直到你得到它的变化。除了将所有逗号和父括号放在正确位置的语法之外,您还需要考虑如何引用日期。

    请记住,用引号括起来的文本将被视为字符串,这意味着小于和大于操作并不总是按照您的期望进行。最好是写清楚日期的公式。

    看看下面的公式是否能满足你的需求:

    =SUMIFS([Submitted ($)]:[Submitted ($)], Status:Status, "Submitted", [Date Submitted]:[Date Submitted], AND(MONTH())@cell)= 3, year ()@cell)= 2017)

    还要注意的是,我使用了@cell操作符,以保存为Date Submitted列添加重复数据和标准对的操作—关于for的帮助文章@cell可以在这里找到:

    https://help.smartsheet.com/articles/775363-using-formulas#at_cell

  • 你好!我想我也有类似的问题,并试图模仿你上面的公式,但没有运气。本质上,我试图在一列中使用来自其他两列的2个标准来求和美元值。这些都是来自一个单独的表格(都在同一张表格上)所以不确定这是否会使事情复杂化?

    这是我现在的公式

    =sumifs({收益工作表范围3},{收益工作表范围1},"会计",和{收益工作表范围4},"否"

    谢谢!

  • J.克雷格·威廉姆斯
    J.克雷格·威廉姆斯 ✭✭✭✭✭✭

    =SUMIFS({增益工作表范围3},

    {收益工作表范围1},"会计",

    {增益工作表范围4},"否")

    a.{增益工作表范围3}-是要求和的列。

    b.你不需要“AND”

    c. Smartsheet将添加右括号。如果没有,那就有问题了。

    我希望这对你有帮助。

    克雷格

  • 你好,

    我将第一步放在smartsheet中,并尝试使用sumifs公式,该公式每周从另一个表中按产品代码求和销售额,这在excel中非常简单,但在smartsheet中不起作用。ob欧宝娱乐app手机下载

    在一张纸上我有:

    A栏-日期

    B栏-产品代码ob欧宝娱乐app手机下载

    C栏-体积

    在第二张表格中,我试图计算每种产品每周的总销量:ob欧宝娱乐app手机下载

    A栏-产品代码ob欧宝娱乐app手机下载

    B栏-第一周(01/01/18 - 08/01/18)

    C栏-第二周(08/01/18 - 15/01/18)

    我将感激你的帮助。

    艾格尼丝

  • J.克雷格·威廉姆斯
    J.克雷格·威廉姆斯 ✭✭✭✭✭✭

    艾格尼丝,

    我假设你使用的是ISO 8601或欧盟日历,从周一开始你的周。

    一周只有7天,所以

    第一周:第1至第7周

    第二周:8日至14日。

    我会在顶部加一行,表示周数(1-53)——尽管今年你只需要52周。

    如果你的公式是在一个单独的工作表中,那么它看起来像这样:

    =SUMIFS(Volume:Volume, Date:Date, WEEKNUMBER)@cell)= [ColumnB]$1, [ob欧宝娱乐app手机下载Product Code]:[Product Code], [Product Code]23)

    对于第23行和每个周数列

    将它们替换为X-Sheet引用将看起来像这样

    =SUMIFS({Volume}, {Date}, WEEKNUMBER()@cell)= [ColumnB]$1, {ob欧宝娱乐app手机下载Product Code}, [Product Code]23)

    在为第一个X-Sheet设置了引用之后,可以将公式复制到所有的周列及其行(在第1行下面)。

    克雷格

  • 你好,

    谢谢你的帮助。

    与此同时,我试图解决这个问题,我在第一张表格中使用WEEKNUMBER在单独的列中转换日期,在第二张表格中使用这个公式

    =SUMIFS({Volume}, {Code}, $Code1, {Week}, "1")

    看起来工作正常。

    艾格尼丝

  • 我试图在参考表中使用这种逻辑,我提出了错误的值。只有当供应商与母公司匹配(在本例中为供应商1),并且月份和年份与我目前工作的列对应时,我才要求表格对“PO上的数量”进行汇总。

    公式返回的是1,但我认为应该是1000。

    =SUMIFS({订单上的数量},{供应商},=PARENT(),{月},月()@cell)= 1,{年},年(@cell= 2019)

    什么好主意吗?

    源数据3.PNG

    3.PNG

这次讨论已经结束了。
You da man, @Paul Newcome<\/a>! That works perfectly. Thank you!!!<\/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"}]},{"discussionID":106766,"type":"question","name":"How to write formula for?","excerpt":"When Crew column is either LT_PAP_010\/LT_ELK_006 I'd like to have the Coord\/ Appt Status column present 🟢 for LT_PAP_010 and ✅ for LT_ELK_006 when Coord\/ Appt Date contains a DATE or Order Type column contains READY. Thanks","categoryID":322,"dateInserted":"2023-06-22T13:36:01+00:00","dateUpdated":null,"dateLastComment":"2023-06-23T13:37:43+00:00","insertUserID":158055,"insertUser":{"userID":158055,"name":"mromaire","url":"https:\/\/community.smartsheet.com\/profile\/mromaire","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-23T13:37:49+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":158055,"lastUser":{"userID":158055,"name":"mromaire","url":"https:\/\/community.smartsheet.com\/profile\/mromaire","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-23T13:37:49+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":28,"score":null,"hot":3374969624,"url":"https:\/\/community.smartsheet.com\/discussion\/106766\/how-to-write-formula-for","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106766\/how-to-write-formula-for","format":"Rich","lastPost":{"discussionID":106766,"commentID":381951,"name":"Re: How to write formula for?","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/381951#Comment_381951","dateInserted":"2023-06-23T13:37:43+00:00","insertUserID":158055,"insertUser":{"userID":158055,"name":"mromaire","url":"https:\/\/community.smartsheet.com\/profile\/mromaire","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-23T13:37:49+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\/X8SERNMINLGS\/image.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-23T13:37:47+00:00","dateAnswered":"2023-06-22T19:27:19+00:00","acceptedAnswers":[{"commentID":381834,"body":"

@mromaire<\/a> See if this formula works out. You can search for the emoji's online to change the ones I've used.<\/p>

=IF(AND(Crew@row = \"LT_PAP_010\", OR(NOT(ISBLANK([Coord\/ Appt Date]@row)), [Order Type]@row = \"Ready\")), \"🟢\", IF(AND(Crew@row = \"LT_ELK_006\", OR(NOT(ISBLANK([Coord\/ Appt Date]@row)), [Order Type]@row = \"Ready\")), \"✔️\", \" Neither\"))<\/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":106751,"type":"question","name":"Creating a Group via API","excerpt":"I've searched the API Documentation, as well as github and I'm not seeing anything that allows someone to create a Smartsheet Group via the API - is that possible and I'm just not looking at the right thing? We are trying to set up automation with a multi-tier solution, and have others who are submitting project requests…","categoryID":320,"dateInserted":"2023-06-22T02:44:29+00:00","dateUpdated":null,"dateLastComment":"2023-06-23T13:30:01+00:00","insertUserID":161991,"insertUser":{"userID":161991,"name":"isabonita","title":"Smartsheet Administrator","url":"https:\/\/community.smartsheet.com\/profile\/isabonita","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-23T13:38:16+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":161991,"lastUser":{"userID":161991,"name":"isabonita","title":"Smartsheet Administrator","url":"https:\/\/community.smartsheet.com\/profile\/isabonita","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-23T13:38:16+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":30,"score":null,"hot":3374930070,"url":"https:\/\/community.smartsheet.com\/discussion\/106751\/creating-a-group-via-api","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106751\/creating-a-group-via-api","format":"Rich","tagIDs":[227,442],"lastPost":{"discussionID":106751,"commentID":381947,"name":"Re: Creating a Group via API","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/381947#Comment_381947","dateInserted":"2023-06-23T13:30:01+00:00","insertUserID":161991,"insertUser":{"userID":161991,"name":"isabonita","title":"Smartsheet Administrator","url":"https:\/\/community.smartsheet.com\/profile\/isabonita","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-23T13:38:16+00:00","banned":0,"punished":0,"private":false,"label":"✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"API & Developers","url":"https:\/\/community.smartsheet.com\/categories\/api-developers"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-23T13:29:35+00:00","dateAnswered":"2023-06-22T21:15:53+00:00","acceptedAnswers":[{"commentID":381854,"body":"

@isabonita<\/a> <\/p>

See below link:<\/p>

https:\/\/smartsheet.redoc.ly\/tag\/groups#operation\/add-group<\/a><\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":320,"name":"API & Developers","url":"https:\/\/community.smartsheet.com\/categories\/api-developers","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":227,"urlcode":"api-and-developers","name":"API and Developers"},{"tagID":442,"urlcode":"groups-and-group-management","name":"Groups and Group Management"}]}],"initialPaging":{"nextURL":"https:\/\/community.smartsheet.com\/api\/v2\/discussions?page=2&includeChildCategories=1&type%5B0%5D=Question&excludeHiddenCategories=1&siteSectionID=0&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 Posts","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

热门文章