Jessica553
New Member
- Joined
- Nov 21, 2021
- Messages
- 24
- Office Version
- 2010
- Platform
- 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
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
A | B | C | D | E | F | G | |
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 |