Total values in one column to equal value in another column.

john3sixteen

New Member
Joined
Nov 17, 2014
Messages
1
I hope that I can accurately describe what I'd like to do. I would be interested in any option (using just formulas in excel or using a macro). I want to pull the value in Column D into column C until the sum reaches the number in column C corresponding to the next blank cell in Column B. Then the process would restart for the next number in column C corresponding to the next blank cell in Column B. In my example, column C would have 2100 in the first row, 6300 in the second row, and 600 in the third row (of the 700 in column D), & either a blank or 0 in the next row to equal the 9000 in column C, next to the blank cell in column B. Then it would reset to do the same thing to equal the 20000 in column C, next to the blank cell in Column B. (putting 430, 5520, 7700, & 6350 of the 13150 in column C to total 20000) Then continue on down the sheet in this manner. Everything is a variable in this data set, and will change everytime, with the exception of the total to sum (using the values in Column D) will always be in Column C, next to the blank cell in Column B. Any help would be greatly appreciated.

Column BColumn CColumn D
1002100
2006300
300700
40011200
900020300
1001430
10505520
12217700
136513150
20881000
2000027800

<tbody>
</tbody>
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,214,642
Messages
6,120,700
Members
448,979
Latest member
DET4492

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