0

I'm trying get a SUM of values in column C only if value in cell A doesn't match any values in column B:

    |   A    |   B   |  C  |
    |--------|-------|-----|
  1 |  Tom   |       | 1   |
  2 |  Mary  |       | 2   |
  3 |  Kevin | Mary  | 4   |
  4 |  Susan | Test  | 8   |
  5 |  Bob   | Eve   | 16  |
  6 |  Eve   | Blah  | 32  |
  7 |  Kat   |       | 64  |

In this example the result would be 93, because Mary and Eve present in column B and ignored

2 Answers 2

2

You can use the following, entered as an array formula with CTRL+SHIFT+ENTER:

=SUM(IF(COUNTIF(B1:B7,A1:A7)=0,C1:C7))

enter image description here

(Thanks to @JNevill)

0

Try this formula:

=SUM(SUMIF(A1:A7,B1:B7,C1:C7))

Type Ctrl+Shift+Enter

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .