• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4338
  • 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:
hidrau
  • 4
  • 3
  • 2
1 Solution
 
Infinity08Commented:
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
 
hidrauAuthor 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
 
ozoCommented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Infinity08Commented:
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
 
hidrauAuthor 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
 
Infinity08Commented:
Then use :

        ((B - A) / A) * 100

So, for your earlier example

        ((127,78 - 100,35) / 100,35) * 100 = 27,33 %
0
 
ozoCommented:
B is (B-A)*100/A % more than A
0
 
hidrauAuthor Commented:
thanks
0
 
Infinity08Commented:
So, what I posted didn't help you ?
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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