Reducing balance and moving to next column

Jessica553

New Member
Joined
Nov 21, 2021
Messages
24
Office Version
  1. 2010
Platform
  1. Windows
I have a distribution formula that I can't figure out. I have created a basic version of what I want the result to be below.
Basically the Row 1 items need to be distributed based on the 'pools' or balances in column a. IE B1 has 100 to be distributed. It takes 10 from A2, 12 from A3, 78 from A4. It's made up to 100. Then it moves to Cell C1 for 20. It picks up 20 from the remainder in Cell A4. Then goes to Cell D1. Picks up the last of Cell A4 and moves to A5 and so on. Tried to do a If then >< formula but it just got really complicated with balances etc.

Thank you

ABCDEFG
1
100​
20​
18​
21​
159​
2
10​
10​
3
12​
12​
4
115​
78​
20​
17​
5
18​
1​
17​
6
4​
4​
7
8
159​
100​
20​
18​
21​
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Could you use something like this?

I have inserted a new row 2 and a new column B. Both are empty and have been hidden.
The formula in C3 is now copied across and down.

23 12 14.xlsm
ACDEFGH
1100201821159
31010   10
41212   12
5115782017 115
618  11718
74   44
8
9159100201821
Distribute
Cell Formulas
RangeFormula
C3:F7C3=IF(OR(SUM(C$2:C2)=C$1,SUM($B3:B3)=$A3),"",MIN(C$1-SUM(C$2:C2),$A3-SUM($B3:B3)))
H3:H7H3=SUM(C3:F3)
C9:F9C9=SUM(C3:C8)
 
Upvote 1
Solution
Could you use something like this?

I have inserted a new row 2 and a new column B. Both are empty and have been hidden.
The formula in C3 is now copied across and down.
Thank you so much Peter, I have added it to my real figures and it works perfectly! Thank you!
 
Upvote 0
You're welcome. Glad it helped. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,774
Members
452,353
Latest member
strainu

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