DGET(database, field, criteria)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
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.
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.
Imagine you are managing a student database that contains information about students and their grades:
| StudentID | Name | Grade |
|---|---|---|
| 1 | Alice | A |
| 2 | Bob | B |
| 3 | Charlie | A |
| 4 | David | C |
You want to find the grade of a specific student based on their name.
To achieve this, you would use the DGET function as follows:
=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 |
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 |
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.
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!
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.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.