DGET
This function examines a list of information and produces one result.
If more than one record matches the criteria the error #NUM is shown.
If no records match the criteria the error #VALUE is shown.
Syntax
=DGET(DatabaseRange,FieldName,CriteriaRange)
The DatabaseRange is the entire list of information you need to examine, including the
field names at the top of the columns.
The FieldName is the name, or cell, of the values to Get, such as “Value Of Stock” or I3.
The CriteriaRange is made up of two types of information.
The first set of information is the name, or names, of the Fields(s) to be used as the basis
for selecting the records, such as the category Brand or Wattage.
The second set of information is the actual record which needs to be selected, such
as Horizon as a brand name, or 100 as the wattage.
Formatting
Example 1
This example extracts information from just one record.
How many boxes of a particular item do we have in stock?
Example 2
This example extracts information from multiple records and therefore shows the #NUM error.
How many boxes of a particular item do we have in stock?
This example extracts information from no records and therefore shows the #VALUE error.
How many boxes of a particular item do we have in stock?