Formula 16

Operators/Functions Used

If-Then-Else, Add (+), Less than (<), Multiply (*)

Formula Purpose

A manufacturer of lawn and garden products grants a 10-5-5 discount on Category A products and 15-10-5 discount on Category B products. It also pays the freight on all orders of $5,000 or more (before discount). It charges a flat 4% freight on all orders of less than $5,000. Management wants a Total Including Freight figure to appear on the daily sales report.

Formula

If ({file.CAT A} + {file.CAT B}) < 5000 Then
    1.04 * .95 *.95 *.90 *{file.CAT A} + .95 *.90 *.85
    *{file.CAT B}
Else
    .95 *.95 *.90 *{file.CAT A} + .95 *.90 *.85 *{file.CAT B}

Result

Cat A Cat B Cat A+Cat B TotInclFrt

9524

1344

10868

8712.62

3424

1344

4768

3908.21

Explanation

Related topics

Formulas In Action



Seagate Software, Inc.
http://www.seagatesoftware.com
Please send comments to:
techpubs@seagatesoftware.com