Brian Dunning's FileMaker Custom Functions

Profit ( Cost ; Price )

Returns the profit margin between cost and price

  Average rating: 4.3 (26 votes) Log in to vote

Ibrahim Bittar Torres   Ibrahim Bittar Torres - Show more from this author
Eikonsys, S.A. de C.V.

Share on Facebook Share on Twitter

  Sample input:
Profit ( 100 , 125 )
Profit ( 125 , 100 )
Profit ( 125 , 0 )
  Sample output:
20 (20% profit)
-25 (25% loss)
-100 (100% loss)

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This function returns the percent difference between two numbers. In this case if you compare cost vs. price then you get the profit margin.

This function requires two parameters: Cost and Price.

If the selling price is less than the cost then the result is negative, showing a loss.

If the price is 0 then the profit is -100 indicating a 100% loss, regardless of the cost.



Log in to post comments.


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

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 16 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: