I have 3 sets of values in the table below:
Excel Sheet.png
I have a tolerance band of 7-10. So cells B1, B8, B10 and B15 are out of tolerance.
However I can distribute the excess between the other values in the same set.
So for Set 1, I could move 1 value from B1 (11) to B4 (7) to make all those values fall between the tolerance band as below.
Excel Sheet2.png
Is there a formula which can do this for me? I could manually do this but I have a lot more data than just these 3 sets.
Bookmarks