Search code examples
if-statementgoogle-sheetssumgoogle-sheets-formula

Sum the Column A Only if Column B contains?


I have the table in google-sheets which looks:

enter image description here

I need to sum sums according to the Card = "HDFC"

i.e need to display in cell 1408.8

I tried:

=COUNTIF(C3:C1000,"HDFC")

but its give count only not sure how to use to get sumif on column B if matches column C


Solution

  • Simple SUMIFS() must work. Try-

    =SUMIFS(B4:B,C4:C,E4)
    

    enter image description here