Microsoft Office Tutorials and References
In Depth Information
Figure 8-14: The formula in cell B2 returns the address in the Data range for the value in cell B1.
The formula in cell B2, which follows, returns the address of the cell in the Data range that contains the Target
If the Data range occupies a single row, use this formula to return the address of the Target value:
If the Data range contains more than one instance of the Target value, the address of the first occurrence is re-
turned. If the Target value is not found in the Data range, the formula returns #N/A.
Looking up a value by using the closest match
The VLOOKUP and HLOOKUP functions are useful in the following situations:
• You need to identify an exact match for a target value. Use FALSE as the function's fourth argument.
• You need to locate an approximate match. If the function's fourth argument is TRUE or omitted, and an ex-
act match is not found, the next largest value that is less than the lookup value is used.
But what if you need to look up a value based on the closest match? Neither VLOOKUP nor HLOOKUP can do