Formula 3

Operators/Functions Used

Concatenate (+), ToText, ToNumber, Multiply (*), Make Range (to), Subscript [], Parentheses ()

Formula Purpose

A sail maker, as part of his loan agreement with his bank, has to submit a detailed inventory analysis monthly. The analysis must include the cost of fabric in raw material inventory and the cost of fabric by item number for each item in finished product inventory.

The company uses one fabric for all of the sails it produces, and it uses the 5th and 6th characters in the item number for each product to represent the number of meters of material (rounded to the nearest meter) necessary to make that item.

In the form letter the manager sends to his banker each month, he wants the computer to automatically insert the quantity on hand, the item number, and the dollar value of the fabric for each item number.

Formula

ToText({file.QUANTITY}) + " each, Item " + {file.ITEM} +
", $ " + ToText({file.QUANTITY} * ToNumber({file.ITEM}[5
to 6]) * {file.FABRIC COST})

Result

With a fabric cost of $14.88/meter, the formula delivers the following result:

Quantity Item Letter Text

46

4423141006

"46 each, Item 4423141006, $ 9582.72"

27

4423081009

"27 each, Item 4423081009, $ 3214.08"

Explanation

Related topics

Formulas In Action



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