Using “INDIRECT” function in the “SUMPRODUCT” formula for True/False Cell Reference

前端 未结 2 1629
灰色年华
灰色年华 2021-01-29 00:42

This is the formula that I am currently using:

=SUMPRODUCT((INDIRECT(\"A2\"):INDIRECT(\"A\"&(ROW()-1))=A359)*1)

It works great, but I would

2条回答
  •  渐次进展
    2021-01-29 01:14

    Try this one:

    =SUMPRODUCT((($A$2:INDEX($A:$A,ROW()-1))=INDEX($A:$A,ROW()))*1)
    

    it gives you the same result.

    But above formula is volatile. Instead I would use next one, say in B3 :

    =SUMPRODUCT((($A$2:$A2)=$A3)*1)
    

提交回复
热议问题