=条件求和环比

aalang103696
aalang103696 ✭✭✭
编辑12/09/19 公式和函数

我试图为仪表板创建一个图表,该图表将显示每个月内批准的$$总额和每个月内拒绝的$$总额。我还需要一个滚动至今的总数。到目前为止,这个公式是这样的:

=SUMIFS({RSA Form Range 2}, {RSA Form Range 9}, "Green", {RSA Form Range 3}, DATE(2019,9,23))

我想不出一个日期范围,从2019年9月1日到2019年9月30日,来显示被拒绝/批准的总金额。

附件是表格,我正在获取要在仪表板上使用的表格指标的数据。

Capture5.PNG

捕捉6. png

评论

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

    不需要指定一个月的第一天和最后一天,只需指定月份即可。我还建议指定年份,以防您在一张表格上有多个年份。

    =SUMIFS({RSA表单范围2},{RSA表单范围9},"绿色",{RSA表单范围3},和(IFERROR(月(@cell), 0) = 9, iferror (@cell), 0) = 2019)

    thinkspi.com

  • 效果很好!我一直试图做一个日期范围,但总是返回# unparable或给我一个错误。所以我又回到了只指定一个特定的日期。

    非常感谢!

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

    我不太明白……

    使用月(@cell)= 9 and YEAR()@cell)= 2019是你的日期范围。它指定查看所有大于或等于月1号且小于或等于月末的日期(当然是在特定年份内)。你不需要在公式中输入一个特定的日期。

    thinkspi.com

  • 不,我是说你给我的配方对我要找的东西很有效。我在社区发布之前所做的是,试图将日期范围放入公式中,但它从未起作用,所以当我发布寻求帮助时,我已经恢复到特定的日期。

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

    哇哦。好的。哈哈。我很高兴能帮上忙。是的

    thinkspi.com

  • 我在想我到底做错了什么。我的目标是每个月得到开放和关闭项目的总数。下面是我使用的公式:

    =SUMIFS({全国联盟操作查询范围1},{全国联盟操作关闭查询范围1},AND(IFERROR(MONTH(@cell, 0) = 4, IFERROR(YEAR(@cell), 0) = 2020)))

    接收错误:#不正确的参数集

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

    @Beronica穆勒您将希望使用COUNTIFS,并删除第一个范围。在IFERROR(MONTH)部分中还缺少一个括号。试试这个…

    =COUNTIFS({全国联盟操作关闭查询范围1},AND(IFERROR(MONTH(@cell), 0) = 4, IFERROR(YEAR(@cell), 0) = 2020)))

    thinkspi.com

  • Beronica穆勒
    编辑04/21/20

    @Paul新来的我应该删除第一个范围吗?我想从两张单独的表格中得到开放和关闭项目的总数。谢谢你的协助。

    此外,当我输入你提供的公式时,我收到一个错误消息。

    =COUNTIFS({全国联盟操作关闭查询范围1},AND(IFERROR(MONTH(@cell), 0) = 4, IFERROR(YEAR(@cell), 0) = 2020)) #UNPARSEABLE

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

    如果要引用两个单独的表,则需要将两个单独的COUNTIFS加在一起。

    =条件统计({表1所示 }, .................) + 条件统计({表2所示 }, ...................)


    你如何创建你的交叉表参考?

    thinkspi.com

  • 如果方便的话,我们可以分开使用。一旦这个公式起作用,我就可以从一个单独的参考表中创建相同的公式。当我开始输入公式时,我通过从帮助卡中选择“引用另一个表”链接来创建交叉参考表。从那里,我选择要从中获取数据的列。

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

    好的。所以听起来你是按照正确的步骤来创建交叉表参考。

    我没有看到任何语法问题与公式你张贴。

    你能提供一份公式的截图吗,就像我下面的截图一样?能够在表格中看到公式可能会显示一些当你在这里输入时遗漏的东西。

    image.png


    thinkspi.com

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

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

请查看公式手册模板!
0))","categoryID":322,"dateInserted":"2023-06-07T01:39:34+00:00","dateUpdated":null,"dateLastComment":"2023-06-07T02:11:15+00:00","insertUserID":162138,"insertUser":{"userID":162138,"name":"Louis.Smith","url":"https:\/\/community.smartsheet.com\/profile\/Louis.Smith","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-07T02:12:04+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":122388,"lastUser":{"userID":122388,"name":"Matt Johnson","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Matt%20Johnson","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/ZX2A39HRG0VO\/nLJJDDQXUVD4H.JPG","dateLastActive":"2023-06-07T03:19:54+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":4,"countViews":46,"score":null,"hot":3372208249,"url":"https:\/\/community.smartsheet.com\/discussion\/106113\/how-to-count-how-many-times-a-cell-is-in-a-column","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106113\/how-to-count-how-many-times-a-cell-is-in-a-column","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":106113,"commentID":379191,"name":"Re: How to Count how many times a cell is in a column","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/379191#Comment_379191","dateInserted":"2023-06-07T02:11:15+00:00","insertUserID":122388,"insertUser":{"userID":122388,"name":"Matt Johnson","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Matt%20Johnson","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/ZX2A39HRG0VO\/nLJJDDQXUVD4H.JPG","dateLastActive":"2023-06-07T03:19:54+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\/XP9S1XCLFZD6\/image.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-07T01:53:43+00:00","dateAnswered":"2023-06-07T01:44:04+00:00","acceptedAnswers":[{"commentID":379188,"body":"

Hi @Louis.Smith<\/a> <\/p>

Maybe try this one:<\/p>

=COUNTIF(Client:Client, \"Delta\")<\/p>

I hope that helps.<\/p>

Matt<\/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":106091,"type":"question","name":"How to reference column name pulled from formula","excerpt":"I'm trying to pull a date from columns based on the number in the helper column. I know I can do this with nested IFs, but is there a way to change which column I'm pulling the value from? My column Start Date should be whatever the column is based on the Index. So for the first column below, since Index is 3, it should…","categoryID":322,"dateInserted":"2023-06-06T19:01:04+00:00","dateUpdated":null,"dateLastComment":"2023-06-06T19:24:57+00:00","insertUserID":162114,"insertUser":{"userID":162114,"name":"mwat4482","url":"https:\/\/community.smartsheet.com\/profile\/mwat4482","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-06T19:24:48+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":162114,"lastUser":{"userID":162114,"name":"mwat4482","url":"https:\/\/community.smartsheet.com\/profile\/mwat4482","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-06T19:24:48+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":30,"score":null,"hot":3372158761,"url":"https:\/\/community.smartsheet.com\/discussion\/106091\/how-to-reference-column-name-pulled-from-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106091\/how-to-reference-column-name-pulled-from-formula","format":"Rich","lastPost":{"discussionID":106091,"commentID":379133,"name":"Re: How to reference column name pulled from formula","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/379133#Comment_379133","dateInserted":"2023-06-06T19:24:57+00:00","insertUserID":162114,"insertUser":{"userID":162114,"name":"mwat4482","url":"https:\/\/community.smartsheet.com\/profile\/mwat4482","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-06T19:24: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\/EITIHXA4Y0I7\/image.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-06T19:24:45+00:00","dateAnswered":"2023-06-06T19:18:07+00:00","acceptedAnswers":[{"commentID":379128,"body":"

Are you trying to use that as a dynamic cell reference? If so, that is not possible. What it looks to me like you need is something more along the lines of<\/p>

=INDEX([1st Date Column]@row:[Last Date Column]@row, 1, Index@row)<\/p>


<\/p>

You are going to need to update the column names in the formula to match what you are using in your sheet.<\/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":106087,"type":"question","name":"Conditional Formatting Based on 2 Date Columns, with or without Helper Column","excerpt":"Hi! I've scoured the Community posts, and can't find exactly what I need. I am managing a membership list and need to flag when memberships expire before or on a specific date (06\/29\/2023) so I can contact those members. I have one column with their membership expiration dates, a second column with the 06\/29\/2023 deadline,…","categoryID":322,"dateInserted":"2023-06-06T18:29:42+00:00","dateUpdated":null,"dateLastComment":"2023-06-06T19:02:02+00:00","insertUserID":162111,"insertUser":{"userID":162111,"name":"Mlichtenstein","title":"Director","url":"https:\/\/community.smartsheet.com\/profile\/Mlichtenstein","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!BtDbwegK_WQ!wlnbvxwzuT4!fyPHolHHR0X","dateLastActive":"2023-06-06T18:55:36+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":162111,"lastUser":{"userID":162111,"name":"Mlichtenstein","title":"Director","url":"https:\/\/community.smartsheet.com\/profile\/Mlichtenstein","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!BtDbwegK_WQ!wlnbvxwzuT4!fyPHolHHR0X","dateLastActive":"2023-06-06T18:55:36+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":5,"countViews":57,"score":null,"hot":3372157304,"url":"https:\/\/community.smartsheet.com\/discussion\/106087\/conditional-formatting-based-on-2-date-columns-with-or-without-helper-column","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106087\/conditional-formatting-based-on-2-date-columns-with-or-without-helper-column","format":"Rich","tagIDs":[437],"lastPost":{"discussionID":106087,"commentID":379120,"name":"Re: Conditional Formatting Based on 2 Date Columns, with or without Helper Column","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/379120#Comment_379120","dateInserted":"2023-06-06T19:02:02+00:00","insertUserID":162111,"insertUser":{"userID":162111,"name":"Mlichtenstein","title":"Director","url":"https:\/\/community.smartsheet.com\/profile\/Mlichtenstein","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!BtDbwegK_WQ!wlnbvxwzuT4!fyPHolHHR0X","dateLastActive":"2023-06-06T18:55:36+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\/JWT4M72YQK8N\/screenshot-2023-06-06-142808.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"Screenshot 2023-06-06 142808.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-06T19:00:34+00:00","dateAnswered":"2023-06-06T18:52:14+00:00","acceptedAnswers":[{"commentID":379113,"body":"

@Mlichtenstein<\/a> <\/p>

@Eric Law<\/a> - you are speedy 😊<\/span><\/p>

Another option would be to us a Sheet Summary field for the Expiration Helper Column - Mtg Date instead of a column in the sheet.<\/p>

\n
\n \n \"Conditional<\/img><\/a>\n <\/div>\n<\/div>\n

Flag column formula: =IFERROR(IF([Membership Expiration]@row <= [Expiration Helper Column - Mtg Date]#, 1, 0), \"No Date\")<\/p>

Sheet Summary field (Expiration Helper Column - Mtg Date would equal 6\/29\/23<\/p>

Hope this helps. <\/p>

Thanks -Peggy<\/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":437,"urlcode":"conditional-formatting","name":"Conditional Formatting"}]}],"title":"Trending in Formulas and Functions ","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

公式和函数趋势