COUNTA(按月),但不包括在Google表格中 [英] COUNTA by month and by exclusion in Google Sheets
问题描述
这里是带有解决方案的示例表格: 我有一个Google表格,其中有一些来自Google表单的注册表,用于某种类型的Help Desk注册表。我正在尝试制作一个常规报告选项卡,其中统计了总数以及当月的事物。 例如,我计算的是分类的条目数为开放和终止 对于全球开放注册管理机构,我有: 对于封闭式/终止注册管理机构,我有: 那很好。列 B是时间戳记,列 N仅将状态列为已结束或其他。但是,当我尝试按月计数时,它会失败。我正在尝试使用: 有人可以查明公式中的错误吗? 我也检查了这些,但仍然不知道确切的位置错误是:( Google表格,按月递增单元格) 尝试如下: HERE IS A SAMPLE SHEET WITH SOLUTION WORKING: I have a Google Sheet where I have registries that come from a Google Forms for some sort of Help Desk registry. I'm trying to make a general report tab where things are count, in total and for the current month. For example, I'm counting how many entries are classified as 'open' and 'ended' For the global total of 'open' registries I have: And for the closed/ended registries I have: That works fine. Column "B" is a timestamp and Column "N" just lists the status as "Ended" or something else. But when I try to count by month it fails. I'm trying to use: Can anyone pinpoint the error in the formula? I also checked these but still no idea where exactly the error is: (Google Sheets, increment cell by month)
(Sum by month in Google Sheet)
(Google Sheets =MONTH works but MONTH in QUERY does not)
(Calculate number of rows with current month & year in Google Sheets or Excel) try like this:
这篇关于COUNTA(按月),但不包括在Google表格中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
> https://docs.google.com/spreadsheets/d/1Twc9i7D5rDvT_Q88thrwjV6E>
= COUNTA(QUERY(INDIRECT( Respons!$ N2:$ N),其中N不包含'Ended',0))
= COUNTIF(INDIRECT( Respons!$ N2:$ N), Ended)
= COUNTA(QUERY(INDIRECT( Responses!$ N2:$ N),
其中N不包含Finalizado',
INDIRECT(响应!$ B2:$ B),
>& EOMONTH(TODAY(),-1),INDIRECT ( Respons!$ B2:$ B),
< =& EOMONTH(TODAY(),0))))
( Google表格中按月总计)
( Google表格= MONTH有效,但QUERY中的MONTH无效 )
(计算当前月份的行数& Google表格或Excel中的年份)
= COUNTA(IFERROR(QUERY(INDIRECT( Responses!B2:N));
选择N
,其中notlow(N)包含'finalizado'
和月份(B)+1 =& MONTH(TODAY()); 0))))
https://docs.google.com/spreadsheets/d/1Twc9i7D5rDvT_Q88thrwjV8E58Ja7c-ifdlCZDwu6Ok/edit?usp=sharing
=COUNTA(QUERY(INDIRECT("Responses!$N2:$N"), "where not N contains 'Ended'", 0))
=COUNTIF(INDIRECT("Responses!$N2:$N"),"Ended")
=COUNTA(QUERY(INDIRECT("Responses!$N2:$N"),
"where not N contains Finalizado'",
INDIRECT("Responses!$B2:$B"),
">"&EOMONTH(TODAY(),-1),INDIRECT("Responses!$B2:$B"),"
<="&EOMONTH(TODAY(),0))")")
=COUNTA(IFERROR(QUERY(INDIRECT("Responses!B2:N");
"select N
where not lower(N) contains 'finalizado'
and month (B)+1 = "&MONTH(TODAY()); 0)))