A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

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



 
 
Thread Tools Display Modes
  #1  
Old May 7th, 2010, 07:01 PM posted to microsoft.public.excel.misc
lulu151
external usenet poster
 
Posts: 2
Default Sumif number is greater than a number but less than another number

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: D2875
Criteria Need: ??????

Sum if the number in A is greater than 4000 but less than 5000, than return
corresponding sum range D
  #2  
Old May 7th, 2010, 07:12 PM posted to microsoft.public.excel.misc
Brad
external usenet poster
 
Posts: 943
Default Sumif number is greater than a number but less than another number

=sumproduct(--(a2:a8754000),--(a2:a8755000),d2:d875)
--
Wag more, bark less


"lulu151" wrote:

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: D2875
Criteria Need: ??????

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

  #3  
Old May 7th, 2010, 07:12 PM posted to microsoft.public.excel.misc
Bernard Liengme
external usenet poster
 
Posts: 516
Default Sumif number is greater than a number but less than another number

=SUMIF(A2:A875,""&4000,D2875)-SUMIF(A2:A875,""&4999,D2875)
or
=SUMPRODUCT(--(A2:A8754000),--(A2:A8755000),D2875)
or in Excel 2007+
=SUMIFS(D2875, A2:A875, ""&4000, A2:A875, ""&5000)
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"lulu151" wrote in message
...
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: D2875
Criteria Need: ??????

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


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:56 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.