Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does Excel have a built-in percentage of change function like (A1-B1)/B1 %? I seem can't find it in built-in function list.

Example: A1=1.0123 B1=1.0 I want to get the ratio (1.0123-1.0)/1.0 % = 1.23%

share|improve this question
    
Do you want a decimal, or do you want something like 3:1 as a result? – soandos Nov 28 '11 at 23:51
up vote 1 down vote accepted

Create a UDF that will have the same behavior and return a string with the percent tacked onto the end:

Function Ratio(ByVal val1 As Range, ByVal val2 As Range) As String
    rat = (val1 - val2) / val2
    rat = rat * 100

    Ratio = Format(rat, "Fixed") & "%"
End Function
share|improve this answer
    
By definition a UDF isn't a built in function ..... – brettdj Nov 29 '11 at 4:30
    
@brettdj I agree, but I was offering an alternative to the OP. – jonsca Nov 29 '11 at 7:40
    
fair enough. Although returning a string probably isn't the most optimal form for a numeric calc – brettdj Nov 29 '11 at 9:38

No

You would simply enter in a formula as you have and then format it as a percentage

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .