DMAX(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 evaluate. This range should include both the field names (headers) and the data.
field:
The specific column from which you want to extract the maximum value. This can be specified either by the column header name (as a string) 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 considered when determining the maximum value.
The DMAX function in Google Sheets is a statistical function used to find the maximum value from a set of data that meets specified criteria. It is particularly useful when working with databases or tables where you want to extract the highest value based on certain conditions. DMAX stands for "Database Maximum," and it allows users to perform conditional analysis efficiently.
In simpler terms, DMAX helps you identify the highest number in a dataset while filtering out unwanted data based on specific criteria.
Imagine you are managing a sales database that contains information about different products and their sales figures:
| ProductID | ProductName | Sales |
|---|---|---|
| 101 | Widget A | 250 |
| 102 | Widget B | 300 |
| 103 | Widget C | 150 |
| 101 | Widget A | 400 |
| 102 | Widget B | 200 |
You want to find the maximum sales figure for a specific product, say "Widget A."
To achieve this, you would use the DMAX function as follows:
=DMAX(SalesDatabase, "Sales", Criteria)In this formula:
SalesDatabase is the range that includes your entire sales data."Sales" is the field (column) from which you want to find the maximum value.Criteria is the range that specifies the condition you want to apply (e.g., filtering for "Widget A").To set up the criteria for "Widget A," you would create a small table like this:
| ProductName |
|---|
| Widget A |
When you apply the DMAX formula with the criteria for "Widget A," the output would return the maximum sales figure for that product:
400This indicates that the highest sales figure for "Widget A" in the database is 400.
DMAX is beneficial because it allows for efficient data analysis by enabling users to extract specific information from large datasets based on defined criteria. It simplifies the process of finding maximum values without the need for complex formulas or manual filtering.
DMAX is an essential function for anyone working with data in Google Sheets, providing a powerful way to enhance data analysis and reporting capabilities.
Happy spreadsheeting!
You have a sales database with columns for product names, sales amounts, and regions. Use the DMAX formula to find the highest sales amount for a specific product in a given region, enabling quick insights into top-performing products without manual calculations.
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.