SUMIFS多重标准
我在责备自己。
我试图计算任务的总和,如果他们有状态“提交”和提交的日期是在3月,那么它会计算值。
目前它说的是“无法解析”
=SUMIFS([Submitted ($)]:[Submitted ($)], [Status]:[Status], "Submitted", [Date Submitted]:[Date Submitted], ">=03/01/17", [Date Submitted]:[Date Submitted], "<=03/31/17",)
任何帮助都将非常感激
评论
-
罗伯·哈根 ✭✭✭
嗨,尼克,
我看到在SUMIFS表达式的右括号之前有一个多余的逗号。那是小妖精吗?
欢呼,
抢劫
-
约翰Creason 员工
网卡,
我认为这个公式存在一些挑战。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
-
Kahart ✭
你好!我想我也有类似的问题,并试图模仿你上面的公式,但没有运气。本质上,我试图在一列中使用来自其他两列的2个标准来求和美元值。这些都是来自一个单独的表格(都在同一张表格上)所以不确定这是否会使事情复杂化?
这是我现在的公式
=sumifs({收益工作表范围3},{收益工作表范围1},"会计",和{收益工作表范围4},"否"
谢谢!
-
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.克雷格·威廉姆斯 ✭✭✭✭✭✭
艾格尼丝,
我假设你使用的是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")
看起来工作正常。
艾格尼丝
类别
@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":"