That didn't work for me, did you mean =SUMPRODUCT(($B$1:$B$50="Bar")*($A$1:$A$50))Hello,
I think you have to use following formula for the same :-
=SUMPRODUCT(($A$1:$A$50&$B$1:$B$50="Bar")*1)
Put this formula in that column where you want your answer.