Excel function

DMINfunction

Returns the smallest field value among records that meet the criteria.

All versions
=DMIN(A1:D9, 3, F1:F2)
Range to drag
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9

Drag the corner dots to change database, criteria. Click the numbers on the top to change field. Change field to 4 for the smallest sales. Try breaking it on purpose to see the errors.

Result

8

database
A1:D9Drag the corner dots on the table

The whole list. The first row must hold the headers (field names).

field
3database has 4 columns

The column to calculate. The first column of the database is 1. In Excel you can also write a header name such as "Sales" or a cell like D1.

criteria
F1:F2

The criteria table. Its first row holds headers; conditions on the same row must all hold (AND), conditions on different rows are alternatives (OR).

What is the DMIN function?

=DMIN(database, field, criteria)

DMIN picks only the records in a list (database) that meet a criteria table and returns the smallest value in the field (column) you choose. Its conditions are written as a separate table on the sheet.

F1:G3 is the criteria table: F2 holds "Seoul", F3 holds "Busan" and G2 holds ">=40000". Drag the criteria range to F1:F2 (Seoul), F1:F3 (Seoul or Busan) or F1:G2 (Seoul with sales of 40000 or more).

DMIN finds the smallest sale, quantity or price among the records that meet a criteria table, for example the weakest deal of one branch or the cheapest quote that meets a spec. If no record matches it returns 0, so check with DCOUNT before trusting a 0.

Arguments

database
The whole list. The first row must hold the headers.
field
The column to calculate: a column number (the first column is 1), a header name such as "Sales", or a cell holding the header (D1).
criteria
The criteria table. Its first row uses the same headers as the database, with the conditions below.

DMIN examples

  1. Example 1. Basic use

    =DMIN(A1:D9, 3, F1:F2)

    Of the Seoul quantities 30, 8 and 40, the smallest is 8.

  2. Example 2. Changing the criteria

    =DMIN(A1:D9, 4, F1:F3)

    The smallest sales for Seoul or Busan: 25600.

  3. Example 3. Minimum for each criteria range

    =DMIN(A1:D9, "Sales", criteria)

    The same formula with only the criteria range changed.

    Criteria rangeRecordsResult
    F1:F2Seoul25,600
    F1:F3Seoul or Busan25,600
    G1:G2Sales of 40000 or more45,000
    F1:G2Seoul and 40000 or more45,000

Common mistakes

FAQ

How is it different from SUMIFS?
You can get the same results, but database functions keep the conditions in a table on the sheet, which makes OR conditions and changing conditions easy.
Can I give the field as a name?
Yes. Use a header name in double quotes, such as "Sales", or a cell that holds the header.
And the largest?
Use DMAX. For Seoul sales it is 96,000.