Skip to main content

Excel DMAX Function

The Excel DMAX function returns the largest number in a field of records in a list or database that matches the specific criteria.

dmax function 1


Syntax

=DMAX(database, field, criteria)


Arguments

  • database (required): The range of cells that makes up the database. The first row of the database should be the column headers.
  • field (required): The column you will retrieve the largest number from. It can be entered as a column label or index number:
    • Column label: The column label (column header) needs to be entered between double quotation marks, such as “quantity”.
    • Index number: The number that represents the position of the column in the database, from which you will return the largest number. For example, 1 indicates the first column, 2 indicates the second column, and so on.
  • criteria (required): The range of cells that contains the criteria. The first row of this criteria range should be the column headers.

Return Value

The DMAX function returns a numeric value.


Function Notes

  • You can replace the snippet “total” in the formula with the relative index number 5 since the Total column is the 5th column in the database: =DMAX(B3:F14,5,H3:J5).
  • You can use any range for the criteria argument, but it must include at least one column header and at least one cell value below the column header for specifying the condition.
  • In case you need to add new information to the database in the future, do not place the criteria range below it. Since Excel cannot add the new information if the rows below the database are not blank.
  • The headers of database and criteria ranges must match with each other.
  • The function is not case-sensitive. To make the formula case-sensitive, you can add the EXACT function with the help of MATCH: =DMAX(B3:F14,MATCH(TRUE,EXACT("Total",B3:F3),0),H3:J5).
  • The result of the formula is a numeric value. To add a currency symbol to it, please apply the Format Cells feature.

Example

As the picture shown below, to get the highest total price that meets the two sets of criteria: Item=Washer, Store=B; Item=TV, Store=C, Quantity>25, please copy or enter the formula below in a blank cell, and press Enter to get the result:

=DMAX(B3:F14,"total",H3:J5)

dmax function 2


Related functions

Excel DAVERAGE Function

The Excel DAEVARAGE function returns the average of values in a field of records in a list or database that match the specific criteria.

Excel DGET Function

The Excel DGET function returns a single value in a field of records in a list or database that matches the specific criteria.

Excel DMIN Function

The Excel DMIN function returns the smallest number in a field of records in a list or database that matches the specific criteria.

Excel DPRODUCT Function

The Excel DPRODUCT function multiplies the values in a field of records in a list or database that match the specific criteria.

Excel DSUM Function

The Excel DSUM function returns the sum of values in a field of records in a list or database that match the specific criteria.


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Description


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations