Microsoft Office Tutorials and References
In Depth Information
Specialized Lookup Formulas
Figure 8-17: Column B contains formulas that perform a lookup using linear interpolation.
It’s critical that the values in the x range appear in ascending order. If B1 contains a value less
than the lowest value in x or greater than the largest value in x, the formula returns an error
value. Table 8-2 lists and describes these formulas.
Table 8-2: Formulas for a Lookup Using Linear Interpolation
Performs a standard lookup on the x range and returns the
Returns TRUE if the looked-up value equals the value to be looked up.
Returns the row number of the x range that contains the matching
Returns the same row as the formula in B6 if an exact match is
found. Otherwise, it adds 1 to the result in B6.
Returns the x value that corresponds to the row in B6.
Returns the x value that corresponds to the row in B7.
Returns the y value that corresponds to the x value in B9.
Returns the y value that corresponds to the x value in B10.
Calculates an adjustment factor based on the difference between
the x values.
Calculates the estimated y value using the adjustment factor in B15.
Combining the lookup and trend functions
Another slightly different approach, which you may find preferable to performing lookup using
linear interpolation, uses the LOOKUP and TREND functions. One advantage is that it requires
only one formula (see Figure 8-18).