无法将字符串连接成 excel 个计数或条件
Unable to concatenate strings into excel countifs OR criteria
我正在尝试使用 OR
的语法,例如 Excel 中 COUNTIFS
函数的标准。但是,当尝试使用单元格引用时,它只是告诉我
There is a problem with this formula
函数:=SUM(COUNTIFS(rosterTable[lastDayWithClient], {">="&A7,""}))
特别是如果我尝试使用 &A7
将条件与单元格值连接起来,它会失败。
">="&A7
不是数组常量中允许的条目。
根据 Excel 帮助:Array constants can contain numbers, text, logical values (such as TRUE and FALSE), and error values.
正如@ScottCraner 所指出的,您可以通过对单独的 COUNTIF 函数求和来实现相同的目的。 AGGREGATE
函数或各种类型的 SUMPRODUCT
实现也可能提供解决方案。
我正在尝试使用 OR
的语法,例如 Excel 中 COUNTIFS
函数的标准。但是,当尝试使用单元格引用时,它只是告诉我
There is a problem with this formula
函数:=SUM(COUNTIFS(rosterTable[lastDayWithClient], {">="&A7,""}))
特别是如果我尝试使用 &A7
将条件与单元格值连接起来,它会失败。
">="&A7
不是数组常量中允许的条目。
根据 Excel 帮助:Array constants can contain numbers, text, logical values (such as TRUE and FALSE), and error values.
正如@ScottCraner 所指出的,您可以通过对单独的 COUNTIF 函数求和来实现相同的目的。 AGGREGATE
函数或各种类型的 SUMPRODUCT
实现也可能提供解决方案。