如何使用Countifs(Excel 2007)返回符合“文字”的数据。特定月份的标准?
我是Microsoft Excel的初学者,我的情况是使用IFCounts在表上返回数据集,目标是返回所有符合特定月份“文本”标准的数据。
让我说,我想显示所有这些数据MEET CRITERIAIA 1(1。新的)和标准2是一个月(06 /6月)。我尝试过
=COUNTIFS('FIRST SHEET'!D2:D35,"1. New",RESULT SHEET!A2:L31,MONTH('FIRST SHEET'!C2:C30)=06)
我根本没有结果
是任何更好的方法来做这种情况,
谢谢
im beginner with microsoft excel , my case is to return set of data on the table using ifcounts, the objective is return all data that meet "text" criteria on specific month.
let say , i want to show all data that meeet criteria 1 ( 1. New ) and criteria 2 is month (06 / june ). i have tried with
=COUNTIFS('FIRST SHEET'!D2:D35,"1. New",RESULT SHEET!A2:L31,MONTH('FIRST SHEET'!C2:C30)=06)
i got no result at all
is any better way to do this case
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
countifs逻辑工作如
(范围,条件)
,而不是(array =条件)
,就像您在:月('first Sheet'!c2:c30)所示一样= 06)
。但是,sumproduct可以处理数组:
= sumproduct(((“1。new” ='first effer'!d2:d32)*(isnumber(search(“*”&“/amp;”/06/06/“&“*”, '第一张纸'!c2:c32))))))
编辑:如果日期列是实际日期值,则计算大于本月的实例,并且小于下个月的第一个实例(而不是等于或小于本月的最后一个日期,因为如果日期列也具有时间值,则它将被Excel识别为大于该日的时间值):
= countifs('第一张纸'!d2:d35:d35 ,“1。new”,'第一张纸'!c2:c30,> =“ date(2022,6,1),'第一张纸'!c2:c30,“<”& date(2022 ,7,1))
Countifs logic works like
(range,condition)
, not(array=condition)
, like you demonstrated at:MONTH('FIRST SHEET'!C2:C30)=06)
.SUMPRODUCT however can handle arrays:
=SUMPRODUCT(("1. New"='FIRST SHEET'!D2:D32)*(ISNUMBER(SEARCH("*"&"/06/"&"*",'FIRST SHEET'!C2:C32))))
Edit: if the date column are actual date values than you need to count the instances greater than the first of the month and smaller than the first of the next month (rather than equal to or smaller than the last date of the month, because if the date column also has time value it would be recognized as greater than that day by Excel):
=COUNTIFS('FIRST SHEET'!D2:D35,"1. New",'FIRST SHEET'!C2:C30,">="&DATE(2022,6,1),'FIRST SHEET'!C2:C30,"<"&DATE(2022,7,1))