Sumif number is greater than a number but less than another number

L

lulu151

I want to sumif a number in the range is greater than ie 4000 but less than
5000 than return the sum range?

How do I enter the criteria to give the results required.

Example:
Range: A2:A875
Sum_Range: D2:D875
Criteria Need: ??????

Sum if the number in A is greater than 4000 but less than 5000, than return
corresponding sum range D
 
B

Bernard Liengme

=SUMIF(A2:A875,">"&4000,D2:D875)-SUMIF(A2:A875,">"&4999,D2:D875)
or
=SUMPRODUCT(--(A2:A875>4000),--(A2:A875<5000),D2:D875)
or in Excel 2007+
=SUMIFS(D2:D875, A2:A875, ">"&4000, A2:A875, "<"&5000)
best wishes
 

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