How do I do a "between" in an IF statement?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to sum a column and the condition has multiple criteria:


SUMIF($G$16:$G$28, between 5 and 10, $E$16:$E$28)

how do I represent "between 5 and 10"?
 
MojoBaer said:
I need to sum a column and the condition has multiple criteria:

SUMIF($G$16:$G$28, between 5 and 10, $E$16:$E$28)
how do I represent "between 5 and 10"?

I thin you need an AND(___<10, ___>5) in there

Beege
 
Bearacade said:
Or you can do this..
=SUMIF($G$16:$G$28,">=5")-SUMIF($G$16:$G$28,">10")

A m-u-c-h more intuitive expression. KISS!

Of course you meant sumif(..., $E$16:$E$28) in both cases; a minor
omission.
 
Thanks, Don! It worked great.

sumproduct? never in a million years would I have figured that out....
 
A m-u-c-h more intuitive expression. KISS!

Of course you meant sumif(..., $E$16:$E$28) in both cases; a minor
omission.

Aye yes, hehe. Thanks for catching that mistake =
 
A m-u-c-h more intuitive expression. KISS!
why do you think that is better than learning to use sumproduct?
 

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