Tandy 600 Owner's Manual page 204

Hide thumbs Also See for Tandy 600:
Table of Contents

Advertisement

LOOKUP Example
Assume that Column I lists base salaries, Column 2 lists minimum tax,
and Column 3 lists marginal tax rates as percents:
)
}
)
')
)
1
)
CI
o
2300
3400
4400
6500
8500
C2
o
o
154
314
692
1072
C3
0%
14%
16%
18%
19%
21%
197
LOOKUP (Salary, CI: C2) + (Salary - LOOKUP (Salary, CI ))*
LOOKUP (Salary, CI: C3)
Also assume that a name, Salary, is defined and contains a value N. The
tax on a salary in one of the tables tax brackets can be expressed as:
"Best of"&FIXED (COUNT (scores), 0) &" is
"&FIXED (MAX (scores), 2)
scores=95, 80, 73, 74, 89, 95, 98, 97
Best of 8 is 98
Salary = 6800
692 + (6800 - 6500)* 19%
=749
Example:
Result:
The first LOOKUP finds the tax on the base amount (using CI to find a
value in C2). The second LOOKUP finds the actual base amount (using C I
to find a value in itself). The third LOOKUP finds the marginal tax rate for
the amount of salary that exceeds the base amount (using C I to find a value
in C3).
Assume:
Result:
Example:
MAX (list)
Returns the largest number value from the list. Returns 0 ifthere are no
number values in the list.
If count is 0 or if start is greater than the result of T, MID returns no
characters. Start and count must be N values. If either start or count are
not integers, MID truncates the fractional portion of the numbers.
MID
(T,
start, count)
Returns characters from T. Start specifies the position of the first character
of T, counted from the left. (The first character is position I.) Count
specifies the number of characters to return.

Advertisement

Table of Contents
loading

Table of Contents