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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top