Google Sheets DGET Function: Syntax, Examples & Tips

The DGET function retrieves a single value from a database that matches specified criteria, based on a given field.
Google Sheets
DGET(database, field, criteria)

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What is a DGET?
  3. A Practical Example
  4. DGET Formula
  5. Result of the Formula
  6. Why Use DGET?
  7. Key Takeaways:
  8. Example use case

Parameters

database:
The range of cells that contains the data you want to extract information from. This should include the column headers.

field:
The column from which you want to retrieve data. This can be specified by the column header name (as text) or by the column number (as a number) within the database.

criteria:
The range of cells that contains the conditions you want to apply to the database. This defines which records will be evaluated for extraction.

What is a DGET?

The DGET function in Google Sheets is a database function that retrieves a single value from a specified column in a database (or table) based on a set of criteria. It is particularly useful when you want to extract specific information from a structured dataset without having to filter or sort the data manually.

In simpler terms, DGET allows you to find a specific piece of information in a table based on defined conditions.

A Practical Example

Imagine you are managing a student database that contains information about students and their grades:

Student Database:

StudentIDNameGrade
1AliceA
2BobB
3CharlieA
4DavidC

You want to find the grade of a specific student based on their name.

DGET Formula

To achieve this, you would use the DGET function as follows:

Google Sheets
=DGET(StudentDatabase, "Grade", A1:A2)

In this formula:

  • StudentDatabase is the range that includes the entire database (including headers).
  • "Grade" is the column from which you want to retrieve the value.
  • A1:A2 is the criteria range where you specify the conditions (e.g., the name of the student).

Assuming you have the following criteria set up:

Name
Alice

Result of the Formula

When you apply the DGET formula, the output would return:

Grade
A

If you were to change the criteria to "Bob," the result would update accordingly:

Grade
B

Why Use DGET?

DGET is beneficial because it allows for precise data retrieval based on specific criteria, making it easier to extract relevant information from large datasets. It simplifies the process of looking up data without needing to create complex formulas or filters.

Key Takeaways:

  • DGET: A database function that retrieves a single value from a specified column based on criteria.
  • Specificity: Allows for precise data extraction from structured datasets.
  • Simplicity: Reduces the need for complex formulas, making data retrieval straightforward.
  • Common Use Cases: Ideal for querying databases, extracting specific values based on conditions, and simplifying data analysis tasks.

DGET is a valuable function for anyone working with structured data in Google Sheets, providing an efficient way to access specific information quickly.

Happy spreadsheeting!

Example use case

You have a database of sales transactions with columns for Product ID, Product Name, and Sales Amount. Use DGET to input a specific Product ID and retrieve the total Sales Amount for that product, streamlining sales analysis and reporting.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.