COUNTIFS using multiple criteria in single formula

前端 未结 1 1708
无人共我
无人共我 2021-01-19 14:01

Column A has Apples,Oranges, Pears multiple times.
Column B has the

相关标签:
1条回答
  • 2021-01-19 14:07

    You need to use your formula in a sum function like this:

    =SUM(COUNTIFS(A1:A21,{"Apples","Oranges"},B1:B21,">0"))
    

    The reason is, that your function creates an array with the counts of apples and oranges respectively. You have to sum the elements in this array to get your desired result.

    0 讨论(0)
提交回复
热议问题