I am trying to set a maximum amount allowed in my "Adjusted Number Column" (D). But I also want to carry that excess amount to the next availalbe row.
See attached workbook.
For example, the max is set to 10.
Cell B4 is 12, and cell B5 is only 4, so the adjusted amount in cell D4 is "10" (the max), and the excess amount of "2" from B4 can be added to the adjusted amount cell D5, equalling "6".
Here is where it gets tricky:
Cell B6 is "11", and Cell B7 is "14", so both of their adjusted amounts, cells D6 and D7, will be "10".
But I don't want to lose the excess amounts, "1" from B6, and "4" from B7. Since, B8 is only 1, then its adjusted cell D8, can include both the "1" and "4", so it equals "6"
Still following me.
Furthermore, if all of an excess amount can't be added to the next available row, I still want whatever can be added to it to be included in the adjusted amount.
For example,
Cell B9 is "15", over by "5", so it's adjusted amount is "10".
But the next available row is not B10, but B11, which has a value of "6", so it can accept an additional "4" in its adjusted cell D11, which equals "10", now.
And finally, Cell B12 is only "1", so it can accept the remaining "1" and add it to its adjusted value cell D12, equals "2".
The purpose of this spreadsheet is to forecast production in an office environment. The "Amount" column represents how much business is received. The "Max" value represents the maximum amount of output. Therefore, I can't just cut off new business that has been received, it must be rolled over into the next available day.
Any suggestions are welcome and I hope I explained it well enough.
Bookmarks