Hi @Muhammad Asif ,
Do you want to SUM the values in cell B?
You can try this formula:
=SUMPRODUCT(($A$1:$A$3=C1)*($B$1:$B$3))
If you want to Count the values in cell B, try this formula:
=SUMPRODUCT(($A$1:$A$3=C1)*(B1:B3>0)*1)
Just checking in to see if the information was helpful. Please let us know if you would like further assistance.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.