Skip to content

How to Use Excel DGET Function?

Ads
Listen to this article.
DGET FunctionPin
DGET Function

Excel DGET Function: Excel is a spreadsheet program that is developed for WindowsMacAndroid, and iOS. It helps to perform calculations on your PC. The purpose of this software is to do complicated calculations which are difficult to do manually. If you want to get a single value from the range of data based on some criteria, use the DGET function.

In this article, you will learn the usage of Excel DGET Function with its syntax, explanation, and examples. Get an official version of MS Excel from the following link:

https://www.microsoft.com/en-in/microsoft-365/excel

Excel DGET FunctionPin
Excel DGET Function

Description of DGET Function

  • It is one of the built-in functions in Microsoft Excel.
  • This function gets a single value from a list or database that matches certain conditions or criteria.

Syntax

  • Here, you will see the syntax of the DGET function.
  • To apply this function on your spreadsheet, you have to select a cell and enter the formula in the following format.
  • Once you enter the formula, just click on the Enter button to get the result.

=DGET(database, field, criteria)

Arguments Description:

  • Database – It is the database range including table headers.
  • Field – This is the field name or index to count.
  • Criteria – It is the criteria range including table headers.

Note:
1) You need to give the field argument as a name within the double quotes (” “) or a number representing the field index.
2) The database and criteria range must include the matching headers.
3) If more than one record matches the given condition or criteria, then it returns #NUM! Error.
4) If you didn’t give the field argument as a name within the double quotes (” “), then it returns #NAME? Error.

Example

Here is an example to make you understand this concept easily.

  • Initially, you have to open your Excel workbook on your PC and launch a worksheet that has data.
  • For example, we have given a range of input values in B5:E10 and the criteria range (B2:E3). The given condition is “Product=Book, Price>40” and the output is displayed in Cell G6.
Input DataPin
Input Data
  • Then, we have to apply the above-mentioned formula to get the result, as shown in the following screenshot.
Enter the formulaPin
Enter the formula
  • Finally, we need to click on the Enter button to get the result.
OutputPin
Output
  • If more than one record matches the given condition or criteria, then it returns #NUM! Error.
Num ErrorPin
Num Error
  • If you didn’t give the field argument as a name within the double quotes (” “), then it returns #NAME? Error.
Name ErrorPin
Name Error

Conclusion

In the above article, you can clearly understand the usage of Excel DGET Function with its syntax, explanation, and examples. Give your feedback in the comment section. To learn more about Excel functions, then visit our webpage Aawexcel.com.

Video Tutorial

Use the following video to know how to apply Excel DGET Function in the spreadsheet with examples.

See Also:

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *

Share to...