Hi all,
This one is really tricky. I need to relocate some total (relocation) values to columns based on given ranks. But tricky part is that you should not relocate to columns above their max accepted value. For example: formula finds column with rank 1, it fulfills it max accepted quantity first, after it finds columns with rank 2, 3, 4, 5 to fulfill their needs, until it consumes total (relocation) value. So, the ranks, accepted quantaties per column (company) and Total Relocation value are given values and conditions. I must calculate relocation values per company based on these conditions in example. I marked with yellow color where formulas should go. Excel example in attachment.
example_ss1.png
Bookmarks