Shopping Cart

Search:

Signup

Contact

FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

# FileMaker Pro Custom Functions

IRR ( cf0 ; cf1 ; cf2 ; cf3 ; cf4 ; cf5 ; cf6 ; cf7 ; cf8 ; cf9 ; cf10 ; cf11 ; x1 ; x2 ; accuracy )

Rate this function:

Average rating: 4.2  (31 votes)
Discuss this Custom Function

Pascal Marazzi-de Lima, Wuest&Partner
http://www.wuestundpartner.com

Calculates the internal rate of return (IRR)

Sample Input:
 IRR ( 0 ; -18184526 ; 983537 ; 983537 ; 983537 ; 19683537 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; .2 ; .000001 )
Sample Output:
 0.0605609

Then copy & paste into FileMaker Advanced's Edit Custom Function window.

## Description:

A recursive function that calculates the internal rate of return (IRR).

The first investment must be entered as a negative number in cf0, up to 10 cashflows can be entered in cf1 to cf11. x1 is always 0.0, x2 should be 0.2.

Accuracy must be entered as a fraction, eg. 0.000001. This means that the calculation is accurate up to the sixth decimal place.

In normal cases the calculation is done in less than 10 iterations but in some cases (don't know when) it takes longer.

Sometimes exist more than one result for the IRR, this case is not solved yet.

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

## Discuss:

Hi Brian,

Custom functions is the point that I don't know anything at all and I really have to make the calculation of IRR. I used your instructions and filemaker is asking for the field of cf0 do I have to create fields for every variable on your function or am I doing something wrong?

Okcun Sahin, Turkey
August 02, 2012 3:18am

Hi Okcun
First of all you need Filemaker Advanced in order to use custom functions.
The variables cf0, cf1 ... accuracy are the input variables for the custom function, not fields.
This is a recursive function, therefor it only works in custom functions and not in a normal calculation field.

Hope that helps
Pascal

Pascal, Zurich
August 02, 2012 5:16am

Hallo Pascal,
ich würde gerne Ihre Formel verwenden, jedoch habe ich Probleme sie in die eigenen Funktionen einzubauen. könnten Sie mir vielleicht einen Screenshot zusenden oder hier als Download reinstellen?

Danke
Robert

Robert, Germany
August 06, 2012 8:24am

Hallo Robert
Ich verstehe nicht ganz, welche Probleme Sie haben. Zudem weiss ich nicht, wie ich hier einen Screenshot publizieren kann.
Am besten schicken Sie mir eine Mail mit einer etwas ausführlicheren Beschreibung.

Gruss Pascal

Pascal, Zurich
August 06, 2012 10:57pm

Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:

 Your Name: City/Location: Comment: characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted. Answer 5 + 1 =
 Search for Custom Functions:

 Download the Custom Function Dashboard Widget for OS X Keep all the latest Custom Functions right at your fingertips!