Software Venture Consulting

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages

Shopping Cart
Shopping Cart


Free Newsletter


Privacy Policy

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


 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

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

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:

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


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 Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it


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, 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?


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:
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:

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

Newest Custom Functions:

1. HexUUIDToNum_cf (_uuid)
  (Sat, Jun 16, 1:55pm)
2. httpResponseCode ( responseHeaders )
  (Tue, Jun 12, 10:40pm)
3. FindDuplicateCharacters ( string )
  (Fri, Jun 08, 5:01pm)
4. FieldRepetitionLast ( field ; maxRepetition )
  (Wed, Jun 06, 6:05pm)
5. CountModifiedRecords ( NameTimestampField ; StartTimestamp ; EndTimestamp )
  (Mon, May 28, 8:23am)
6. JSONArrayLength ( JSONArrayStr )
  (Fri, May 25, 7:46am)
7. interpolation (y1; y2; y3; x1; x2; x3; x1y1; x2y1; x1y2; x2y2; rnd)
  (Sat, May 19, 3:55am)
8. @JSONFormatElements ( json )
  (Tue, May 15, 3:31am)

RSS Feed of Custom Functions