I have a known final number. Lets say that is 100. Also I have a percentage difference between original two number. That is number 1 was 10% more than number 2. How do I find the two numbers. I want to do this for a lot of numbers. So any general formula for this would be helpful. Basically I need to find the two numbers that are 1 number is 10% higher than other number but there sum has to equal to 100.
1 Answer
You mean:
y=100
x1=1.1*x2 #110% of x2
x2=?
y=x1+x2
100=1.1*x2+x2
100=2.1*x2
100/2.1=x2
47.61905=x2 #circa
x1=1.1*x2
x1=47.61905*1.1
x1=52.38096 #circa
Check:
x1+x2=y
52.38096+47.61905=100
?
seems maybe correct ^^
numbers are circa, but equations should be good
-
1$\begingroup$ This seems absolutely fine. Let me just confirm and thank you once again later on. You are a life saver. $\endgroup$– Ahsan TechJul 14, 2021 at 21:12
-
$\begingroup$ This works perfectly fine. Thank you for the quick reply. This helps a lot. $\endgroup$– Ahsan TechJul 14, 2021 at 21:35
-
$\begingroup$ @AhsanTech nice, im happy it helped you :-) $\endgroup$– user2120Jul 14, 2021 at 21:38