Sum if greater than but less than

turnej

New Member
Joined
May 4, 2013
Messages
23
Hi Guys,

I need to calculate the values of a particular cell if certain conditions are met - I will try and explain

If C11=12000 then the sum will be 30% of the value between 5000 and l0000 and 50% of the value above 10000

eg.

0-5000=0
5000-10000*30%=1500
2000*50%=1000

Formula result 3000
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

oldbrewer

Well-known Member
Joined
Apr 11, 2010
Messages
11,005
Hi Guys,
I need to calculate the values of a particular cell if certain conditions are met - I will try and explain
If C11=12000 then the sum will be 30% of the value between 5000 and l0000 and 50% of the value above 10000
eg.
0-5000=0
5000-10000*30%=1500
2000*50%=1000
Formula result 3000
120002500
formula is
=IF(D18<5000,0,IF(D18<10000,(D18-5000)*0.3,5000*0.3+(D18-10000)*0.5))

<colgroup><col span="13"></colgroup><tbody>
</tbody>
 

West Man

Well-known Member
Joined
Mar 27, 2006
Messages
1,175

ADVERTISEMENT

Another way, slightly shorter without IF: =(D11 >=5000)*(((D11-5000)*0.3)+MAX(0,(D11-10000)*0.2))
 

West Man

Well-known Member
Joined
Mar 27, 2006
Messages
1,175
=(D11 >=5000)*

so what if D11 = 4999

Then that portion should evaluate to false, be coerced to zero and when multiplied by the rest of the formula would result in zero
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,651
Messages
5,838,584
Members
430,557
Latest member
MK15

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top