• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

SUM If based on unknown unique values and criteria

Bipin619

Member
Hello Experts,

PFA

How To Sum (Column "D") Based On two conditions i.e. Unique Values (Column "A") And Criteria "C" in (Column "C")?
Unique Values Of Column "A" Are Not Known. It May Be Anything i.e. Text, Number Etc.


Thanks
Bipin
 

Attachments

  • Task.xlsx
    19.4 KB · Views: 5
Hello Experts,

PFA

How To Sum (Column "D") Based On two conditions i.e. Unique Values (Column "A") And Criteria "C" in (Column "C")?
Unique Values Of Column "A" Are Not Known. It May Be Anything i.e. Text, Number Etc.


Thanks
Bipin


You can use sumproduct

SUMPRODUCT(($A$5:$A$8 = A13) * ($C$5:$C$8 = B13),$D$5:$D$8)
 

Attachments

  • Task.xlsx
    19.8 KB · Views: 7
Thank you for your reply but I didn't get the result I wanted.

I want sum of column "D" in such a way that it sums only those values which are unique based on column "A" and criteria "C" from column "C"

Result expected in cell D3=700 (500+200)

I hope I explained it properly.
 
Back
Top