简体   繁体   English

Excel COUNTIFS单元格等于单元格范围,而范围内的单元格等于另一个范围

[英]Excel COUNTIFS cell equals range of cells AND cell from range equals another range

What formula can I use that will count the cells in my first sheet (ALL DATA) ... 我可以使用哪种公式来计算我的第一张表中的单元格(所有数据)...

  • where the cell in range 'ALL DATA'!C$10:C$1000 equals A2 (sheet: SUMMARY) 其中“ ALL DATA”范围内的单元格!C $ 10:C $ 1000等于A2(表格:SUMMARY)
  • and the cell in ALL DATA range N10:N1000 is equal to the range E2:E5 in sheet 'USERS' ? 并且“所有数据”范围N10:N1000中的单元格等于表“ USERS”中的范围E2:E5?

Thanks 谢谢

I'm assuming that for the second criterion you just want to count rows where the column N value is equal to one of E2:E5 我假设对于第二个条件,您只想对列N值等于E2:E5之一的行进行计数

Try this formula in Summary sheet 在摘要表中尝试此公式

=SUMPRODUCT(COUNTIFS('ALL DATA'!C:C,A2,'ALL DATA'!N:N,USERS!E2:E5))

COUNTIFS returns an array of 4 values, one each for E2:E5 , so SUMPRODUCT is used to sum that array to get the final result COUNTIFS返回一个包含4个值的数组,每个值对应E2:E5 ,因此SUMPRODUCT用于对该数组求和以得到最终结果

Assumes all values in E2:E5 are different, otherwise rows may be double counted 假设E2:E5中的所有值都不同,否则行可能会被重复计算

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如果单元格范围等于另一个工作表中的单元格范围,则添加注释 - Adds a comment if range of cell equals to range of cells in another worksheet Excel - 如果单元格范围等于列表中的值,我想填充另一个单元格的值 - Excel - if a range of cells equals a value from a list I want to populate the value of another cell Excel手动单元格值等于要与其他条件一起使用的单元格范围内 - Excel Manual Cell Value Equals to In Range of Cells to be Used With Other Condition 如果一个单元格等于范围内的任何单元格 - if a cell equals any cell in a range 当范围内的单元格周数等于某值时,对单元格求和 - Sum cells when week num of cell from range equals something 在一个范围内有单个单元格对应的COUNTIFS,在另一个范围内有多个单元格对应的 - COUNTIFS on one range with a single cell corresponding to another range with several cells 如果工作表名称等于命名范围内的单元格,则 - If sheet name equals to a cell from a named range then 计算单元格是否等于另一个范围内的值,并且该单元格右边的单元格等于TRUE - Count if cell is equal to a value in another range and the cell to the right of that equals TRUE 如果一个单元格等于条件,则查找范围内的单元格将其值复制到另一列 - Find cells within a range if one cell equals a criteria copy its value to another column 这个公式在excel中意味着什么? (一个单元格等于一个范围) - What does this formula mean in excel? (A cell equals a range)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM