When more than one record matches criteria, DGET will throw the #NUM error.

Criteria options

The criteria can include a variety of expressions, including somewildcards.

For example, the pattern ?

Excel DCOUNT function

will match strings with 3 exactly characters in more modern functions, but not in the database functions.

If you are using wildcards, test carefully.

Multi-row criteria

The criteria range for DGET can include more than one row below the headers.

Excel DCOUNTA function

When a field is provided DCOUNT will only count numeric values in the field.

UseDCOUNTAto count numbers or text values in a given field.

Use the DMIN function to get the minimum value.

Excel DMAX function

Use the MAX function to get the maximum value.

Excel DMIN function

Excel DAVERAGE function