A and B column query to provide Sum of column C [Solved/Closed]

Report
-
Posts
11513
Registration date
Sunday June 8, 2008
Status
Contributor
Last seen
July 10, 2020
-
Hello and thank you for your help.

Please use this scenario for reference:
- A B C
1 abc x 1
2 abc y 2
3 def z 3
4 abc y 4
5 ghi x 5
6 ghi z 6
7 def x 7
8 abc y 8

What can I use to generate IF (A1:A8 = 'abc') AND (B1:B8 = 'y') THEN SUM of C column associated values? In this example the answer I'm looking to generate in a single cell is 14.

Thanks in advance!



1 reply

Posts
11513
Registration date
Sunday June 8, 2008
Status
Contributor
Last seen
July 10, 2020
4
Try this :
=SUMIFS(C1:C8;A1:A8;"abc";B1:B8;"y")