the DGET function

Contents

the DGET function <Article <Blog | SumProduct are Excel training experts: financial modeling, strategic data modeling, model audit, planning and strategy, training courses, tips and online knowledge base

keep in mind javascript is required for full website functionality.

Welcome back to our regular blog of Excel functions from A to Z. Today we look at the DGET function.

The DGET function

This function extracts a unique value from a column in a list or database that matches the conditions that you specify.

function_126_-_dget_part_1-3326757

The DGET The function uses the following syntax to operate:

DGET (database, field, criteria)

The DGET function has the following arguments:

  • database: is required and represents the range of cells that make up the list or database. A database is a list of related data in which the rows of related information are records and the columns of data are fields.. The first row of the list contains labels for each column.
  • field: this is also mandatory. This indicates which column is used in the function. Enclose the column label in double quotes, What “Age” O “Performance”, or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column , and so on
  • Criteria: this is also mandatory. This is the range of cells that contains the conditions that you specify. You can use any range for the criteria argument, as long as you include at least one column label and at least one cell below the column label where you specify a condition for the column.

It should also be noted that:

  • if no records match the criteria, DGET returns the #VALUE! error value
  • if more than one record matches the criteria, DGET returns the #ON ONE! error value
  • you can use any range for criteria argument, as long as you include at least one column label and at least one cell below the column label to specify the condition. For instance, if range G1: G2 contains the column label Revenue in G1 and the amount of $ 10,000 and G2, you can define range as Matching Revenue and use that name as criteria argument in database functions.
  • although the criteria range can be located anywhere in the worksheet, do not put the criteria range below the list. If you add more information to the list, the new information is added to the first row below the list. If the row below the list is not blank, Excel cannot add the new information
  • make sure the criteria range does not overlap the list
  • to perform an operation on a complete column in a database, enter a blank line below column labels in criteria range.

Please, see my example below:

function_126_-_dget_part_2-1562134

Soon we will continue with our functions from A to Z of Excel. Keep checking: there is a new blog post every business day.

You can find a full page of feature articles here.

Subscribe to our Newsletter

We will not send you SPAM mail. We hate it as much as you.