DEV Community

Andrews
Andrews

Posted on • Originally published at geekexcel.com on

How to Use Excel DMAX Function in Office 365? – {with Examples}

Excel DMAX Function:

DMAX Function
DMAX Function

In this article, we are going to see how to use the Excel DMAX Function in Office 365 with its syntax, explanation, and example. Get an official version of MS Excel from the following link: https://www.microsoft.com/en-in/microsoft-365/excel

DMAX Function – Description:

  • This function returns the largest number from the list or database that matches the given condition or criteria.

Syntax:

=DMAX(database, field, criteria)

Arguments Description:

*Database – * It is the database range including headers.

*Field – * It is an optional one. This is the field name or index to count.

*Criteria – * It is the criteria range including headers.

Note:

  • You need to give the field argument as a name within the double quotes ( ” “ ) or a number representing the field index.
  • The database and *criteria * range must include the matching table headers.

Example:

  • In the below screenshot, you can see the database range ( A5:D13 ) and the criteria range ** ( **A2:D3 ).
  • The given condition is “ Product=Pencil, Qty>3 ” and the output is displayed in the Cell F6.

Example
Example

Multi-row Criteria

  • Multi-row criteria have one or more rows below the headers. These are joined by using OR logic.
  • The expressions in a given criteria row are joined with AND logic.

Closure:

In the above article, you can understand the usage of Excel DMAX Function in Office 365 with its syntax, explanation, and example. Drop your feedback in the comment section. Thanks for visiting Geek Excel. Keep Learning!!

Similar Article:

  • DMIN Function

Keep Reading:

Top comments (0)