Say I have the following ingredients in the following percents:
+-------+----------+
| Name | percent |
+-------+----------+
| Ing1 | 2 |
| Ing2 | 35 |
| Ing3 | 30 |
| Ing4 | 33 |
| total | 100 |
+-------+----------+
If I want to increase Ing1 to 5%, how do I adjust the rest of the ingredients to maintain their proportions to each other?
If I use the following formula (increase + increase/100 or 3 + 3/100) to calculate the successive increase I get an increase value of 3.03 (or 0.0303%). If I then adjust the remaining ingredients by that percent (orig - orig*0.0303) I get the following:
+-------+------+----------+
| Name | orig | adjusted |
+-------+------+----------+
| Ing1 | 2 | 5 |
| Ing2 | 35 | 33.9395 |
| Ing3 | 30 | 29.091 |
| Ing4 | 33 | 32.0001 |
| total | 100 | 100.0306 |
+-------+------+----------+
Which leaves me 0.0306 over 100%. What is my mistake or what would be a better way to calculate this?
Thanks,
Solve
newIng1 / (newIng1 + oldIng2 + oldIng3 + oldIng4) = 5%
to find newIng1.
Then you divide each of newIng1, oldIng2, oldIng3, oldIng4 by the sum
newIng1 + oldIng2 + oldIng3 + oldIng4
to get 100%.