## How to use the DMAX function

*Article last updated on April 07, 2018*

The DMAX function extracts the maximum number from a column in a database whose records match a condition or criteria.

Formula in cell B15:

The formula gets the largest number from column 3 (D) with the condition that the size is L. The maximum number of 690 and 550 is 690 which is returned in cell B15.

### Excel Function Syntax

DMAX(*database*, *field*, *criteria*)

### Arguments

database |
Required. The cell reference to a list or database. |

field |
Required. The field argument lets you choose which column to use. You can use the column name enclosed with double quotation marks or the corresponding column number. |

criteria |
Required. A cell reference to the criteria range. The criteria range needs to have column labels and at least one condition below the column label. |

### Comments

Excel defines a database as a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.

Allowed criteria range characters are less than and greater than signs <>, use them to specify a criteria range. Also, asterisks * can be used to match partial strings.

You can place your criteria range wherever you want on your worksheet, however, it is not recommended below the list/database. The function needs a blank row below the list to work properly.

To include the entire list/database enter a blank line below the criteria range column labels.

### Functions in 'Database'

The DMAX function function is one of many functions in the 'Database' category.

How to use the DAVERAGE function

The DAVERAGE function calculates an average based on values in a list or database that meet specific conditions. Formula in […]

How to use the DCOUNT function

The DCOUNT function counts cells containing numbers and that meet a condition or criteria. Formula in cell D3: =DCOUNT(B6:D12,3,B2:C3) The […]

How to use the DCOUNTA function

The DCOUNTA function counts nonempty cells in a column you specify, in a database where records also meet a condition […]

The DGET function fetches a value from a column in a database whose records meet a condition or criteria. Formula […]

The DMAX function extracts the maximum number from a column in a database whose records match a condition or criteria. […]

The DMIN function extracts the smallest number from a column in a database whose records match a condition or criteria. […]

How to use the DPRODUCT function

The PRODUCT function multiplies numbers that match a condition or criteria in a database. Formula in cell B15: =PRODUCT (B6:D12, 3, […]

How to use the DSTDEV function

The DSTDEV function calculates an estimation of the standard deviation based on a sample of a population. The function also […]

How to use the DSTDEVP function

The DSTDEVP function calculates the standard deviation based on a population. The function also allows you to specify criteria applied […]

The DSUM function adds numbers in a database that meets a condition or criteria. Formula in cell B15: =DSUM(B5:D12, 3, B2:D3) […]

The DVARP function returns the variance of an entire population. The numbers are in a column of records in a dataset […]

## How to comment

How to add a formula to your comment<code>Insert your formula here.</code>

Convert less than and larger than signsUse html character entities instead of less than and larger than signs.

< becomes < and > becomes >

How to add VBA code to your comment[vb 1="vbnet" language=","]

Put your VBA code here.

[/vb]

How to add a picture to your comment:Upload picture to postimage.org or imgur

Use the img tag, like this: <img src="Insert pic link here">

Contact OscarYou can contact me through this contact form