简体   繁体   English

MS EXCEL SUMIF / SUMIFS日期和名称字段

[英]MS EXCEL SUMIF/SUMIFS Date and Name Fields

Here is the code i'm using: 这是我正在使用的代码:

=SUMIFS(E:E,B:B,">="&$D$1-DAY($D$1)+1,B:B, ">"&(EOMONTH($D$1,0)),D:D, "SAVEDEB")

I'm trying to grasp exactly what's happening with this script. 我正在尝试准确掌握此脚本的情况。

Below are the columns and the info in the columns. 下面是列和列中的信息。 Ultimately what i'm trying to do is say, bring me all the "Savedeb" for the Current Month by looking column B. D1 is where todays() is located. 最终,我想说的是,通过查看B列,将本月的所有“ Savedeb”都带给我。D1是todays()所在的位置。

So.. Bring me the current month savedeb amount. 所以..给我带来当月的节约额。

A         B              C                 D        E
2017_01 01/12/17    Savings Transfer    SAVEDEB  $150.00 
2017_01 01/26/17    Savings             SAVEDEB  $150.00 
2017_01 01/27/17    Savings             SAVEDEB  $25.00 
2017_09 09/21/17    Savings Transfer    SAVEDEB  $150.00 

Try, 尝试,

=SUMIFS(E:E, A:A, TEXT(D1, "yyyy_mm"), D:D, "SAVEDEB")

I think you had a > where you should have had a <= in your original formula. 我认为您在原始公式中应该有一个> ,而在该位置应有一个<= eg B:B, "<="&EOMONTH($D$1,0) . 例如B:B, "<="&EOMONTH($D$1,0)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM