Sum Range

andy_2610

Board Regular
Joined
Jan 29, 2015
Messages
168
Hi all,

I want to sum a range once the range is greater than a certain amount.

For an example in column D starting in D2
Once the sum of "20% of sales" is greater than 10, I want it to sum anything afterwards in Column A. I want to be able to drag that down and as soon it is greater than 10 in cells D5 will be 10 and D6 will be 30.

My formula was =SUMIF(sum($B$2:B2),">10",$A$2:A2)

ABCD
1SALES20% of sales
2102
3204
4204
5102
6204

<tbody>
</tbody>


Thanks in advance,

Andrew
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Not sure if i understand what you need. See if this is Ok

Formula in D2 copied down
=IF(SUM(B$2:B2)>10,SUM(D1,A2),"")

M.
 
Upvote 0
Put in D2

=B2

put in D3 [ then press enter and drag down to copy]

=IF(D2<10,SUM(D2,B3),SUM(D2,A3))
 
Last edited:
Upvote 0
It is the same as D1+A2 but with the advantage of not generating an error when D1 contains a text (a header for example), not a number.

M.
 
Upvote 0
How do I do that without using a drag down formula? So after it reaches >=10 it will start adding afterwards so we will have a sum of 6. (So I know it equals 10 up in the example, but say it crosses 10 and it equals 11, how do I split that "1" away to add on with the others after?)
 
Upvote 0

Forum statistics

Threads
1,214,527
Messages
6,120,054
Members
448,940
Latest member
mdusw

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
Back
Top