Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Remove Duplicates Example in Excel
  • How To Remove Duplicates In Excel Column Or Row?
  • Understanding Pivot Tables in Excel
  • Create Scatter Chart in Excel
  • How to Create Column Chart in Excel

References

  • Convert text string to valid reference in Excel using Indirect function
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • How to get address of last cell in range in Excel
  • How to get last row in mixed data with blanks in Excel

Data Validations

  • Excel Data validation require unique number
  • Excel Data validation don’t exceed total
  • Excel Data validation only dates between
  • Prevent invalid data entering in specific cells
  • Excel Data validation specific characters only

DGET function: Description, Usage, Syntax, Examples and Explanation

by

What is DGET function in Excel?

DGET function is one of Database functions in Microsoft Excel that extracts a single value from a column of a list or database that matches conditions that you specify.

Syntax of DGET function

DGET(database, field, criteria)

The DGET function syntax has the following arguments:

  • Database: The range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
  • Field: Indicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as “Age” or “Yield,” 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: The range of cells that contains the conditions that you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.

DGET formula explanation

  • If no record matches the criteria, DGET returns the #VALUE! error value.
  • If more than one record matches the criteria, DGET returns the #NUM! error value.
  • You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label for specifying the condition.For example, if the range G1:G2 contains the column label Income in G1 and the amount $10,000 in G2, you could define the range as Match Income and use that name as the criteria argument in the database functions.
  • Although the criteria range can be located anywhere on the worksheet, do not place 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, Microsoft Excel cannot add the new information.
  • Make sure that the criteria range does not overlap the list.
  • To perform an operation on an entire column in a database, enter a blank line below the column labels in the criteria range.

Example of DGET function

Steps to follow:

1. Open a new Excel worksheet.

2. Copy data in the following table below and paste it in cell A1

Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.

You can adjust the column widths to see all the data, if need be.

Tree Height Age Yield Profit Height
=”=Apple” >10 <16
=”Pear” >12
Tree Height Age Yield Profit  
Apple 18 20 14 $105
Pear 12 12 10 $96
Cherry 13 14 9 $105
Apple 14 15 10 $75
Pear 9 8 8 $77
Apple 8 9 6 $45  
Formula Description Result
=DGET(A5:E11, “Yield”, A1:A3) Returns the #NUM! error value because more than one record meets the criteria (any apple or pear tree). #NUM!
=DGET(A5:E11, “Yield”, A1:F3) Returns 10 (the yield of the apple tree in row 9) because that is the only record that meets the conditions in A1:F3. 10

Post navigation

Previous Post:

How to generate random date between two dates in Excel

Leave a Reply Cancel reply

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

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IF function: Description, Usage, Syntax, Examples and Explanation
  • Extract multiple matches into separate rows in Excel
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • Complete List of Excel Logical Functions, References and Examples
  • How to use Excel NOT Function

Date Time

  • EOMONTH function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate next scheduled event in Excel
  • NETWORKDAYS function: Description, Usage, Syntax, Examples and Explanation
  • How to enter Today’s Date or Static Date and Time in Excel
  • How to calculate next day of week in Excel

Grouping

  • Calculate conditional mode with criteria in Excel
  • Group numbers with VLOOKUP in Excel
  • If cell contains one of many things in Excel
  • Categorize text with keywords in Excel
  • Group times into unequal buckets in Excel

General

  • How to get amount with percentage in Excel
  • How to test a range for numbers in Excel
  • How to calculate profit margin percentage in Excel
  • 3D SUMIF for multiple worksheets in Excel
  • How to get random value from list or table in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning