The information in this article applies to:
SUMMARY
A two-dimensional lookup table is one in which the desired value depends on
two different variables. The following formula finds a value in a table,
based on two lookup values:
This formula works well in cases where using the Intersection operator (space) will not work (for example, when lookup values are numbers or do not match row and/or column headings exactly). MORE INFORMATION
NOTE: Both column and row headers must be sorted in ascending order to use this formula. Note also that either the column or row headers can specify a range of values, rather than a single value. However, to specify a range, the header must use the minimum number in that column (for example, the header for a column that specifies the range 137-142 should be 137). ExampleThe following is a two-dimensional table that displays the cost per unit of several products. The cost per unit varies, depending on the number of items ordered. Column A contains the Product Name. Row 1 contains the minimum number of items that must be purchased to obtain the purchase price in that particular column:
Assume you want to find the unit price if you purchase 15 units of MS Project. If you enter "MS Project" (without the quotation marks) into cell A7 and the number 15 in cell A8, you can return the unit price by entering the following formula:
This formula returns $610. Example 2To use the values in A8 and B8 to indicate the two values to be cross-referenced on the table
use the following formula:
The result of this formula is 20. If you want to look for the largest value less than or equal to the values searched for (useful for a commission table, tax table, and so on), change the zeros in the MATCH functions to ones. REFERENCES
For more information about the MATCH() and INDEX() functions, click the
Index tab in Microsoft Excel version 7.0 Help, type the following text
click Display, and then double-click the "Lookup & Reference Functions" topic to go to that topic. "Function Reference," version 4.0, pages 236-237, 267 "Microsoft Excel Function Reference," version 3.0, pages 127-128, 148 Additional query words: 2.0 2.00 2.01 2.1 2.10 2.2 2.20 2.21 3.0 Cross-Reference multiplication table commission sheet
Keywords : |
Last Reviewed: March 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |