Home : Table
Q11271 - INFO: Table

Table returns the value from a lookup table given a certain column and row value.  See Lookup Table Setup for information on creating Lookup Tables.

SYNTAX:

Table(TableName,ColValue,RowValue,MatchType,GetOutside,Optional Type)


TableName: The lookup table name.  To setup a lookup table see Lookup Table Setup.

ColValue: An expression (numeric value or formula) that specifies the column lookup value.

RowValue: An expression (numeric value, or formula) that specifies the row lookup value.

MatchType Specifies what to do if an exact match is not found.

1 - Average closest values

2 - Use closet value less than Lookup value

3 Use closest value greater than Lookup value

4 Use exact match only

5 Straight line Interpolation of values

GetOutside: Specifies the column or row to use if the lookup values are outside the range of the table.

0 Return blank if outside range

1 Use closest row or column to the lookup value

Type:  Optional. Sets what datatype to return.  1 returns a number (default), 2 to return a string (Text).

NOTES:

In order to locate text values for columns and rows, text must be in quotes

EXAMPLES:

TABLE(“CT”,A1,A2,5,0)

Returns the "Straight Line Interpolation of Values" located in the  "CT" table for the column value in cell A1 and the row value in cell A2

STR(Table("Exempt Status","OPS Systems", "Rio Rancho", 4,1,2))

Returns the tax exempt status of "Exempt" from the table"Exempt Status" for the "Company" (Column) in a particular "City" ( Row). Column and row text values must be in quotes.



The Table() function can be used in CT calculations; to do so, OPS has provided the necessary lookup tables here.

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 5/21/2008 9:13 PM.
Last Modified on 8/14/2008 10:09 AM.
Last Modified by No Author Name Available!.
Article has been viewed 5892 times.
Rated 8 out of 10 based on 3 votes.
Print Article
Email Article