DGET

Database Functions:
Function: DGET() - Extracts a single value from a column of a list or database that matches criteria that you specify.
Database
     +--------+--------+-----+-------+--------+
     | A      | B      | C   | D     | E      |
+----+--------+--------+-----+-------+--------+
|  4 | Tree   | Height | Age | Yield | Profit |
|  5 | Apple  | 18     | 20  | 14    | 105    |
|  6 | Pear   | 12     | 12  | 10    | 96     |
|  7 | Cherry | 13     | 14  | 9     | 105    |
|  8 | Apple  | 14     | 15  | 10    | 75     |
|  9 | Pear   | 9      | 8   | 8     | 76.8   |
| 10 | Apple  | 8      | 9   | 6     | 45     |
+----+--------+--------+-----+-------+--------+
Criteria
    +--------+--------+-----+-------+--------+--------+
    | A      | B      | C   | D     | E      | F      |
+---+--------+--------+-----+-------+--------+--------+
| 1 | Tree   | Height | Age | Yield | Profit | Height |
| 2 | =Apple | >10    |     |       |        | <16    |
+---+--------+--------+-----+-------+--------+--------+
The height of the Apple tree between 10' and 16' tall
=DGET(A4:E10,"Height",A1:F2)
DGET() Result is 14
Criteria
    +--------+
    | A      |
+---+--------+
| 1 | Tree   |
| 2 | =Apple |
+---+--------+
The height of the Apple tree (will return an Excel error, because there is more than one apple tree)
=DGET(A4:E10,"Height",A1:A2)
DGET() Result is #NUM!