I want col F to calculate the reallocation of excess demand quantities shown in Col E to the suppliers who can take additional demand. But that reallocation must not exceed the max supplier capacity shown in Col C. And the SUM quantities in Col B must match the revised demand quantities SUM in Col F.
Best I can tell, I need a second IF statement to account for the multiple conditions I’m facing, but am struggling to put the formula construction together.
Best I can tell, I need a second IF statement to account for the multiple conditions I’m facing, but am struggling to put the formula construction together.
Col A | Col B | Col C | Col D | Col E | Col F | |||
Row 1 | Original Business Share | Original Demand (QTY) Allocation | Supplier's Capacity | Supplier’s Remaining Capacity | Excess demand | Revised Demand (QTY) Allocation | Revised Demand allocation current formula in use | |
Row 2 | Supplier A | 17% | 1,684 | 3,000 | 1,316 | - | 1,967 | =IF(B5<C5,B5+(E$6/2),B5) |
Row 3 | Supplier B | 21% | 2,051 | 2,000 | (51) | 51 | 2,000 | |
Row 4 | Supplier C | 23% | 2,250 | 2,500 | 250 | - | 2,533 | |
Row 4 | Supplier D | 17% | 1,750 | 1,500 | (250) | 250 | 1,500 | |
Row 5 | Supplier E | 23% | 2,265 | 2,000 | (265) | 265 | 2,000 | |
Row 6 | SUM LINE | 10,000 | 11,000 | - | 566 | 10,000 |