ExcelNewbie2020
Active Member
- Joined
- Dec 3, 2020
- Messages
- 354
- Office Version
- 365
- Platform
- Windows
i have monthly sales table (jan to mar).. i need a formula to place it into the summary table..
however, need to consider the capacity.. like for example sold qty for apple in the month of jan is 120 but the first truck capacity is only 100. the remaining qty (20) will be distributed to the next truck..
see table (blue is the expected result)
however, need to consider the capacity.. like for example sold qty for apple in the month of jan is 120 but the first truck capacity is only 100. the remaining qty (20) will be distributed to the next truck..
see table (blue is the expected result)
Excel.xlsm | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | formula here | sold | ||||||||||||
2 | fruits | truck | capacity | jan | feb | mar | jan | qty | ||||||
3 | apple | 1001 | 100 | 100 | apple | 120 | ||||||||
4 | apple | 1002 | 120 | 20 | 100 | grapes | 80 | |||||||
5 | apple | 1003 | 80 | orange | 110 | |||||||||
6 | grapes | 1004 | 100 | 80 | 20 | |||||||||
7 | grapes | 1005 | 80 | 30 | 20 | feb | ||||||||
8 | orange | 1006 | 100 | 100 | apple | 100 | ||||||||
9 | orange | 1007 | 120 | 10 | 100 | grapes | 50 | |||||||
10 | orange | 1008 | 90 | |||||||||||
11 | ||||||||||||||
12 | mar | |||||||||||||
13 | grapes | 20 | ||||||||||||
14 | orange | 100 | ||||||||||||
15 | ||||||||||||||
16 | ||||||||||||||
Sheet12 |