简体   繁体   English

计算单元格是否等于另一个范围内的值,并且该单元格右边的单元格等于TRUE

[英]Count if cell is equal to a value in another range and the cell to the right of that equals TRUE

How would I count all the jobs (represented by letters) that John has done in the Table 1 only if the job is listed in the table 2 as a job to count (ie jobs F and G). 仅当表2中列出该工作作为要计数的工作(即工作F和G)时,我才能计算约翰在表1中完成的所有工作(用字母表示)。 Therefore for John the total should be 2 ( 2 * F ) and for Peter it would be 2 as well ( 1*G and 1*F ). 因此,对于约翰总应该是22 * F )和彼得这将是2 ,以及( 1*G and 1*F )。

Excel屏幕截图

As an array formula with CSE. 作为CSE的数组公式。

=SUM(COUNTIF(C5:G5, IF(D$12:D$14="y", C$12:C$14)))

在此处输入图片说明

暂无
暂无

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

相关问题 如果一个单元格值等于该值,则另一个单元格等于 - If a cell value equals this, another cell equals that Excel - 如果另一个单元格 IF 等于 true,则使用一个值 - Excel - use one value if another cell IF equals true 如果单元格等于另一个单元格中的值,则cellX - If cell equals with a value in another cell then cellX 如果第 7 列中的一个单元格等于另一个单元格中的值,则更改为另一个单元格中的值 - If a cell in Column 7 equals the value in another cell change to the value in another cell Excel - 如果行的第一个单元格等于值/字符串,然后计算行中的单元格是否等于值/字符串 - Excel - if first cell of row equals a value/string and then count if cells in row equal a value/string Excel:如果范围等于上方的单元格,则对范围内的单元格进行计数 - Excel: Count cells in range if they are equal to cell above 如果一个单元格等于范围内的任何单元格 - if a cell equals any cell in a range Excel COUNTIFS单元格等于单元格范围,而范围内的单元格等于另一个范围 - Excel COUNTIFS cell equals range of cells AND cell from range equals another range 如何将一个单元格与一个范围进行比较,如果为 TRUE - 从正确的单元格复制内容? - How to compare one cell with a range and if TRUE - copycontent from the right cell? 如何计算值小于excel中另一个单元格的范围内的单元格? - How to count cells in a range with a value less than another cell in excel?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM