sumif criteria

  • Thread starter Thread starter Rick Stahl
  • Start date Start date
R

Rick Stahl

The following expression works fine in Excel 2002 ver SP3:

=SUMIF(Carlos!B14:B74,"<6",Carlos!F14:F74)

When values in B are less than 6 the corresponding values in F are summed.
However, I do not know how to write in the correct format when I wish to sum
values in F for the B values of 6, 7, 8, and 9.

Thanks in advance for any help.
 
You could use:
=SUMPRODUCT(--(Carlos!B14:B74>=6),--(Carlos!B14:B74<=9),Carlos!F14:F74)

Tyro
 
WOW ! Great ! Thank you. I will give it a try.

If you don't mind me asking, where could I learn the formats for these types
of expressions ?

Thanks again !
 
A simpler way is

=SUMIF(Carlos!B14:B74,">=6",Carlos!F14:F74)-SUMIF(Carlos!B14:B74,">9",Carlos!F14:F74)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Back
Top