在SUMIFS档案中使用月份资格 [英] Using month qualification in SUMIFS statment

查看:135
本文介绍了在SUMIFS档案中使用月份资格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我正在寻找的...
尝试总结工作表结果2013​​列G项目

Here's what I'm looking for.... Trying to Sum the count of worksheet 'Results 2013' column G items

IF Cell A matches "Canada"
IF Cell E (date) is July

在下面的SUMIFS语句的日期部分出现问题。

Having trouble with the date portion of the SUMIFS statement below.

SUMIFS('Results 2013'!$G$2:$G$510,'Results 2013'!$A2:$A$510
    ,"=Canada",'Results 2013'!$E2:$E510,MONTH('Results 2013'!$E2:$E510)=7)

结果2013​​的示例值$ E $ 480是

Example value of "Results 2013"$E$480 is

我尝试这个公式,它提供了1月这显然是不正确的。

I try this formula, and it provides back "January" which is obviously incorrect.

=TEXT(MONTH('Results 2013'!$E$480),"mmmm")

然而,这个公式,结果为TRUE或1

However, this formula, results in TRUE or 1

=IF(MONTH('Results 2013'!$E$480)=7,1,0)


推荐答案

你可以使用数组公式,可以使用 一个月的整个列:

You could use an array formula , then you can use month on the entire column:

{SUM(if('Results 2013'!$A2:$A$510="Canada",1,0)*if(MONTH('Results 2013'!$E2:$E510)=7,'Results 2013'!$G$2:$G$510,0))}

只要记住使用ctrl + shift + enter,而不是通常的输入来完成公式

just remember to use ctrl+shift+enter rather than the usual enter to finish the formula

这篇关于在SUMIFS档案中使用月份资格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆