如何使用Countifs(Excel 2007)返回符合“文字”的数据。特定月份的标准?

发布于 2025-02-09 12:42:45 字数 417 浏览 1 评论 0原文

我是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.

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南街女流氓 2025-02-16 12:42:45

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))

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文