Excel - DMIN Function



DMIN Function

Multiple database functions are available in Microsoft Excel. To work seamlessly with these database functions, you first must create the dataset in the desired worksheet and define the condition. The DMIN Function is listed under Microsoft Excels Database Function. The Microsoft Excel DMIN function will return the minimum value from a column that fulfils the specified criteria in the database.

Compatibility

This advanced Excel function is compatible with the following versions of MS-Excel −

  • Excel for Microsoft 365
  • Excel for Microsoft 365 for Mac
  • Excel for the web
  • Excel 2021
  • Excel 2021 for Mac
  • Excel 2019
  • Excel 2019 for Mac
  • Excel 2016
  • Excel 2013

Syntax

The syntax of DMIN function is as follows −

=DMIN(database,field,criteria)

Arguments

You can use the following arguments with the DMIN function −

Argument Description Required / Optional
Database A database is a collection of fields and records. You may specify the cell range representing a list of records. Required
Field It specifies the column label, enclosed in double quotes, like group. You can also use numbers 1, 2, and 3 representing the column placement, like 1 shows the first column, 2 shows the second column, and so on. Required
Criteria The cell range represents a specific condition. Required

Points to Remember

  • If the invalid range of field argument is specified, the DMIN function will return the #VALUE! error.
  • If the database range is not valid, the DMIN function will return the #VALUE! error.
  • If the condition doesnt match with the field argument, the DMIN function will return the zero value.

Lets get started with a few exciting DMIN function examples.

Examples of DMIN Function

Our main task is to find out the minimum number of ACs retailed by the Samsung and the minimum number of AC retailed by the Voltas brand.

Step 1 − First, you may need to develop the product database where the name of product, brand and number of quantities are showcased in the range A1:C14. And then, you can write the formula =DMIN(A1:C13,C1,F2:G3) in the F9 cell and hit the Enter button.

DMIN Function 1

Therefore, the DMIN function will retrieve 5, that interprets only five number of the Voltas Air conditioner would be sold.

DMIN Function 2

Step 2 − Furthermore, we may write the DMIN function in the =DMIN(A1:C13,C1, F5:G6) in the G12 cell.

DMIN Function 3

And you may hit the Enter button to get the resulting value. Therefore, the DMIN function will return the minimum number of IFB washing machine that would have been sold is 10.

DMIN Function 4

Example 2

The DMIN function would return the #VALUE error if the incorrect cell reference for the second argument in the DMIN function.

Solution

Lets suppose that we entered the wrong field cell reference which is out of the range of our database then in that case, the DMIN function will produce the accurate result.

You can write the DMIN formula =DMIN(A1:C13,H1,F2:G3) in the G9 cell and hit the Enter button. Here, you may observe the second argument of DMIN function represents the invalid cell reference having quantity of products is not defined in that cell.

DMIN Function 5

DMIN Function 6

Therefore, the DMIN function will return the #VALUE! error.

Example 3

The DMIN function will retrieve the #VALUE! error if the cell range of the database is incorrect.

Solution

Lets suppose you entered the formula =DMIN(D1:E14,C1,F5:G6) in the G12 cell. Here, the first argument that specifies the database range is invalid as it contains null values.

DMIN Function 7

DMIN Function 8

Therefore, the DMIN function will return the #VALUE! error. You can edit the database range to obtain the appropriate result.

Example 4

If the cell range of the condition doesnt match with the defined database, then DMIN function will return the zero value.

Solution

You can type the formula =DMIN(A1:C14,C1,F5:G6) in the G12 cell. The F6 cell contains the brand name Bosch as no such brand exists in the defined database.

DMIN Function 9

Hence, the DMIN function will return a 0 value.

Advertisements