• Status: Solved
• Priority: Medium
• Security: Public
• Views: 4343
• Last Modified:

how to get the percent of two value

Hello guys,

I used to know how to do this, but I don't remember anymore after a long time without using it.

I have two value:

A=100,35
B=127,78

I would like to know what is the percent between A and B. How is the formula to get the percent.

Thanks

0
hidrau
Asked:
• 4
• 3
• 2
1 Solution

Commented:
If you want to know how much A is compared to B, expressed as a percentage, then just do :

(A / B) * 100

or for your example : A is 78,53 % of B
0

Author Commented:
A is the cost of my product and B is the price to sale

then this count is true? because if I do 78,53 on A I will have a value different from B

0

Commented:
WHat do you mean by "between"
A is A * 100 / B % of B
B is B * 100 / A % of A
A is (A-B)*100/B % less than B
B is (B-A)*100/A % more than A
0

Commented:
No A is 78,53 % of B, so the cost is 78,53 % of the price.

If you want the inverse, then you use this formula :

(B / A) * 100

which gives that the price is 127,33 % of the cost.
0

Author Commented:
I need to get the percent of profit between my cost and value of sale

If I have A = 100 and add 30%  I will have 130
If I have A = 100 and the value of sale in 130 I must have 30% as percent.

0

Commented:
Then use :

((B - A) / A) * 100

So, for your earlier example

((127,78 - 100,35) / 100,35) * 100 = 27,33 %
0

Commented:
B is (B-A)*100/A % more than A
0

Author Commented:
thanks
0

Commented:
So, what I posted didn't help you ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Featured Post

• 4
• 3
• 2
Tackle projects and never again get stuck behind a technical roadblock.