Formula 8

Operators/Functions Used

If-Then-Else, Less than (<), Negate (-), Add (+), Round, Average([array]), Parentheses ().

Formula Purpose

To better control her purchasing and inventory, a store owner wants the inventory report to include a QtyToOrder column. She wants that column to tell her what quantity she needs to order to keep on hand the average quantity sold monthly during the previous three months.

Formula

If {file.ONHAND} < 0 Then
((- ({file.ONHAND})) + Round
((Average([{file.MONTH1}{file.MONTH2},
{file.MONTH3}]))))
Else
(Round((Average([{file.MONTH1}{file.MONTH2},
{file.MONTH3}])) - {file.ONHAND}))

Result

OnHand Month1 Month2 Month3 Avg. Order

2

16

6

30

17

15

5-

7

3

19

10

15

0

9

8

18

12

12

Explanation

Related topics

Formulas In Action



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