Per cent change formula give different results - which should be used?

i_excel

Board Regular
Joined
Jun 4, 2015
Messages
113
The following expressions of per cent change are mathematically equivalent:
x/y - 1 and (x-y)/y

However, they give slightly different results in excel, which complicates figure checking.

Does anyone know which is preferable?

i_excel
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi i_excel

Can you give an example where you get different results?

Cheers

pvr928
 
Upvote 0
Hi @i_excel

Yes - I see what you mean. I tried it out with VBA and the two formula were equal:

Code:
Option Explicit
Sub TestForPrecision()
Dim x As Variant
Dim y As Variant
x = 0.067
y = 0.066
x = CDec(x)
y = CDec(y)
Sheet3.Range("D2") = x / y - 1
Sheet3.Range("D3") = (x - y) / y
End Sub

I got the inspiration to use CDec() from this article: https://en.wikipedia.org/wiki/Numeric_precision_in_Microsoft_Excel , although I achieved the same result dimensioning each of x and y as Double and then not using the CDec() function at all.

Is this an option?

Cheers

pvr928
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,222
Messages
6,129,589
Members
449,520
Latest member
TBFrieds

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top