Hi all,
This might be as much a maths question as an excel question.
I’m trying to apportion a value between twenty different descriptors. This is linearly apportioned based on another numeric feature and will add up to the original value, example below.
However, to make things complicated, I want to ensure that none of the apportioned values fall below a minimum, whilst still making sure that all twenty will add up to the original value.
Is there anyway I can do this in formula rather than in VBA?
For example apportioning linearly below, 'D', ends up with 106k. Can I set a minimum value, of say, 150k, that would then automatically adjust all the other values to linearly apportion the remainder whilst still adding up to 10m?
<colgroup><col><col><col></colgroup><tbody>
</tbody>
Thanks
This might be as much a maths question as an excel question.
I’m trying to apportion a value between twenty different descriptors. This is linearly apportioned based on another numeric feature and will add up to the original value, example below.
However, to make things complicated, I want to ensure that none of the apportioned values fall below a minimum, whilst still making sure that all twenty will add up to the original value.
Is there anyway I can do this in formula rather than in VBA?
For example apportioning linearly below, 'D', ends up with 106k. Can I set a minimum value, of say, 150k, that would then automatically adjust all the other values to linearly apportion the remainder whilst still adding up to 10m?
Total to apportion | 10,000,000.00 | |
Numeric feature | Apportioned value | |
A | 0.901310638 | 805,843.83 |
B | 0.803327803 | 718,239.33 |
C | 0.302376282 | 270,348.59 |
D | 0.118878557 | 106,286.94 |
E | 0.940530667 | 840,909.67 |
F | 0.241567195 | 215,980.40 |
G | 0.81744142 | 730,858.04 |
H | 0.521753703 | 466,489.56 |
I | 0.337175248 | 301,461.65 |
J | 0.612220382 | 547,374.01 |
K | 0.781189611 | 698,446.02 |
L | 0.772540213 | 690,712.77 |
M | 0.19931728 | 178,205.60 |
N | 0.844274884 | 754,849.30 |
O | 0.271566755 | 242,802.41 |
P | 0.556527301 | 497,579.94 |
Q | 0.539259607 | 482,141.24 |
R | 0.765787615 | 684,675.40 |
S | 0.364686522 | 326,058.93 |
T | 0.492949588 | 440,736.38 |
TOTAL | 10,000,000.00 |
<colgroup><col><col><col></colgroup><tbody>
</tbody>
Thanks