Apple iWork '09 User Manual
Page 212

close match (TRUE, 1, or omitted): If there’s no exact match, select the column with
the largest top-row value that is less than the search value. Wildcards can’t be used
in search-for.
exact match (FALSE or 0): If there’s no exact match, return an error. Wildcards can
be used in search-for.
Usage Notes
HLOOKUP compares a search value to the values in the top row of a specified range.
Â
Unless an exact match is required, the column containing the largest top-row value
that is less than the search value is selected. Then, the value from the specified row
in that column is returned by the function. If an exact match is required and none of
the top-row values match the search value, the function returns an error.
Examples
Given the following table:
=HLOOKUP(20, A1:E4, 2) returns “E.”
=HLOOKUP(39, A1:E4, 2) returns “E.”
=HLOOKUP(”M”, A2:E4, 2) returns “dolor.”
=HLOOKUP(”C”, A2:E3, 2) returns “lorem.”
=HLOOKUP(”blandit”, A3:E4, 2) returns “5.”
=HLOOKUP(”C”, A2:E4, 3, TRUE) returns “1.”
=HLOOKUP(”C”, A2:E4, 3, FALSE) returns an error because the value can’t be found (there is no exact
match).
Related Topics
For related functions and additional information, see:
“Specifying Conditions and Using Wildcards” on page 360
“Listing of Reference Functions” on page 206
“Value Types” on page 36
212
Chapter 9
Reference Functions