Start Free Course

DMAX Function In Excel

Written by ExcelMojo Editorial Team ExcelMojo Editorial Team ExcelMojo editorial profile and article credentials. Full Bio
Reviewed by Dheeraj Vaidya, CFA, FRM Dheeraj Vaidya, CFA, FRM Reviewed for accuracy, clarity, and editorial standards. Full Bio
Updated Apr 23, 2026
Read Time 7 min

What Is DMAX Function In Excel?

The DMAX function in Excel is a powerful data analysis tool that enables users to retrieve the maximum value from a range of cells based on specific criteria. Unlike other functions like MAX or MIN, DMAX allows for conditional filtering, making it particularly useful when dealing with large datasets. To utilize DMAX, one must set up a database table with headers and input relevant criteria within the table.

To gain a comprehensive understanding of the functionality of this particular function, let us delve into a simple example that will elucidate its usage. To apply the DMAX function in Excel, please follow the instructions: Start by selecting cell D2. Enter the formula =DMAX(A1:B6, B1, B2:B6).

📥Download the ready-to-use Excel template to practice this tutorial yourself.

Download Excel Template

Frequently Asked Questions (FAQs)

1. Explain how to use DMAX with an example.


To utilize the DMAX function in Excel, follow the below instructions: Begin by selecting cell D2. Proceed to enter the formula =DMAX(A1:B4, B1, B2:B4).

FAQs Example

Upon using the formula, we will obtain the desired maximum value of 14, as shown below.

FAQs Example Output

2. How can I avoid errors when using the DMAX function?

• Firstly, ensure that the database range specified in the function’s arguments is correct and valid. This means double-checking that the range covers all required data and does not include any unnecessary rows or columns.
• Secondly, carefully select the criteria range and criteria field within the function, as these parameters determine which records will be considered for calculation. Please make sure they accurately match our intended selection criteria.
• Additionally, pay attention to the order of values within our database range as DMAX operates based on sorted ascending or descending order, depending on our choice.

3. Are there any limitations when using the DMAX function in Excel

• Firstly, DMAX works only with databases or lists organized as tables, which means the data must be in rows and columns with unique headers.
• Additionally, the criteria used for extracting the maximum value must be provided within a separate range or table that matches the structure of the main data table.
• Moreover, DMAX can only return a single result at a time and does not work well with datasets that are constantly changing or being updated.

Download Template

📥Download the ready-to-use Excel template to practice this tutorial yourself.

Download Excel Template

Guide to DMAX Function In Excel. Here we learn how to use DMAX Excel function with step by step examples and template. You can learn more from the following articles –

COUNTIF Not Blank In Excel

Rotate Pie Chart In Excel

Enable Macros In Excel