if function help

K

kathy

i am trying to create an if function that will sum data in a column if the
cell value is between certain values.
This works for sum if greater than, =ifsum(b:4:b14,"<366",e4:E14)
When I try to have the sum of E4:e14 if b4:b14 is between 151 and 366 I am
unable to get the criteria written correctly. HELP!
 
R

Rick Rothstein

Use SUMPRODUCT to handle multiple conditions...

=SUMPRODUCT(B1:B14*(B1:B14>151)*(B1:B14<366))
 
K

kathy

Thank you that works, now how do I change this to count if with the same
information. I tried changing sumif to countif, but the answer was not
correct.
 
K

kathy

Sorry for the last post, I figured it out, I had to remove the E4:e14 and now
it works.
 

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

Top