SumIf help

  • Thread starter Thread starter Brad E.
  • Start date Start date
B

Brad E.

Column A contains 5-digit codes. The third digit is a distance code, and I
want to sum entries in column C if the third digit is 4, 5 or 6. The only
other codes for the third digit are 1, 2 and 3, so I can use ">3" since there
won't be anything over 6.

=SUMIF(MID(A1:A100,3,1),">3",C1:C100) isn't working for me.

Thank you, Brad
 
You'll need to convert the result of MID to a number:

=SUMPRODUCT(--(--MID(A1:A100,3,1)>3),C1:C100)
 
Back
Top