Excel - Using COUNTIF/COUNTIFS across multiple sheets/same column

后端 未结 4 1915
甜味超标
甜味超标 2020-12-03 12:28

I am trying to \"COUNT\" the number of a certain object in column I (in this instance) across multiple sheets. That value in column I is the result of a formula (if it matte

4条回答
  •  遥遥无期
    2020-12-03 13:13

    This could be solved without VBA by the following technique.

    In this example I am counting all the threes (3) in the range A:A of the sheets Page M904, Page M905 and Page M906.

    List all the sheet names in a single continuous range like in the following example. Here listed in the range D3:D5.

    enter image description here

    Then by having the lookup value in cell B2, the result can be found in cell B4 by using the following formula:

    =SUMPRODUCT(COUNTIF(INDIRECT("'"&D3:D5&"'!A:A"), B2))
    

提交回复
热议问题