-2

I'm trying to sum values in column B if:

  • First 2 charactersin column A = "ZZ"
  • Last 2 characters column A = "CA"
  • 3rd character in column A = 4

Tried using sumproduct but no sucess!

Seva
  • 57
  • 10

2 Answers2

2

This formula should work for you:

=SUMIF(A:A,"ZZ4*CA",B:B)

tigeravatar
  • 26,199
  • 5
  • 30
  • 38
0

Found it:

=SUMPRODUCT(--(LEFT(A1:A10,2)="ZZ"),--(RIGHT(A1:A10,2)="CA"),--(MID(A1:A10,3,1)="4"),B1:B10)

However not sure why "--" is needed before each array

Seva
  • 57
  • 10