Cumulative backwards sum

alepaladio

New Member
Joined
Apr 27, 2015
Messages
2
Hi everyone, I have an issue, how can you, using excel vba 2010 do a sum of the elements of a column backwards, i have this

Sum0.7447
Sum by 1/30.2482
0.09800.74480.0730
0.20000.74480.1490
0.26270.74480.1957
0.18040.74480.1344
0.08630.74480.0643
0.09410.74480.0701
0.04310.74480.0321
0.02350.74480.0175
0.01180.74480.0088

<colgroup><col width="80" span="3" style="width:60pt"> </colgroup><tbody>
</tbody>
where value 0.7447 is the sum of last column, and sum by 1/3 is 0.7447*1/3

what I need, is to make a sum, starting from last value in last column (Cells(11,3)), and stop when it is greater than sum by 1/3. I have this...

For i = 8 To 0 Step -1
Cells(11 - i, 4) = i
Next i


this helps me count from 0 to 8 backwards, but I dont know hot to make the cumulative sum, until It reaches 0.2482, please help!

Thanks for your help!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
In your example the sum of the last column is 0.7449 not 0.7447
 
Upvote 0
I will look tomorrow, I wanted to make sure we were on the same page before I went any further....
 
Upvote 0

Forum statistics

Threads
1,215,966
Messages
6,127,974
Members
449,414
Latest member
sameri

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