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
Eikonsys, S.A. de C.V.
http://www.eikonsys.com

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.

 

Comments

Log in to post comments.

 

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

Under construction. Email me your wish list for improvements.