Excel RATE Function

gavs73

Board Regular
Joined
Apr 22, 2008
Messages
138
Hi

I'm trying to use the Excel RATE function to replace an existing SQL equivilent, but I am getting different results, is anyone able to please point me towards the actual Math behind the Excel RATE function ? obviously i can see in the help section the component parts of the RATE function, but it doesn't include the actual math used by Excel.

Thanks in advance for any help.

Kind Regards
Gavin
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
is anyone able to please point me towards the actual Math behind the Excel RATE function ?

Frankly, no one can. Excel RATE is implemented with an iterative algorithm that is similar to Excel IRR. In very high-level terms (and imprecisely), it iteratively tries various rates until the "NPV" is close to zero. Actually, the formula that must become close to zero is:

pv formula 2.jpg

(See PV function . There is a typo in the image: "pmt(..." should be "pmt*(...".)

I could provide a VBA function that even works better than the Excel implementation. But I don't know if that would be useful for your purposes.

However, you neglect to say how you would use the RATE function equivalent.

If you would use RATE with pmt=0, the formula above becomes simply pv*(1+r)^n + fv = 0, and the formula for r is simply:

r = (fv/pv)^(1/n) - 1

Note: In the math formula above, both pv and fv are positive values, not signed cash flows as Excel RATE requires.
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,732
Members
449,093
Latest member
Mnur

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