Contact

DMIN in Excel: Find a Selected Minimum Without Losing Its Context

Database Intermediate Microsoft Excel

Find the minimum in an Excel database selection, track ties and restricted groups, and avoid mistaking a minimum value for an entire matching record.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: DMIN returns the smallest numeric field value among matching database records. For North/A Units 2, 4 and 6, =DMIN(A1:D7,"Units",F1:G2) has expected result 2.

Syntax and database layout

=DMIN(database, field, criteria)

The database range includes the header row. Field identifies the column to calculate: use a quoted heading such as “Units”, or its one-based position within the database. Here Units is field 3, even if the database is later moved to another part of the sheet. Criteria is a separate range containing matching field headers and at least one conditions row. All three arguments are required.

Enter this numeric database in A1:D7:

Team Product Units Sales
North A 2 100
North B 9 450
South A 10 500
North A 4 200
South B 7 350
North A 6 300

Put Team in F1 and Product in G1. In F2 enter ="=North"; in G2 enter ="=A". These formulas produce the exact-match criteria text =North and =A. The range F1:G2 selects the three North/A records, whose Units values are 2, 4 and 6 and Sales values are 100, 200 and 300.

Conditions in the same criteria row act together with AND. Alternative criteria rows act with OR. Keep the criteria and output cells outside the database, and leave room for the data to grow.

Example 1: specify the field separately from the filter

=DMIN(A1:D7,"Units",F1:G2)
=DMIN(A1:D7,4,F1:G2)

Expected outputs are 2 Units and 100 Sales. Both apply the same Team/Product filter. Field 4 means the fourth database column, Sales, rather than the worksheet’s column number in every possible layout.

The function returns a selected minimum. It does not decide whether the smallest observation is desirable, valid or representative of normal performance.

Example 2: compare a different team

Put Team in J1 and ="=South" in J2. =DMIN(A1:D7,"Units",J1:J2) has expected 7, the smaller of South’s 10 and 7.

Comparing North/A’s 2 with South’s 7 uses different selections. Preserve both the criteria and field labels in a report so the numbers are not mistaken for competing calculations over the same records.

Advanced application: a threshold check with a data-count guard

Suppose an explicitly chosen review rule flags a group if its minimum Units value is below 3. For the North/A fixture:

=DMIN(A1:D7,"Units",F1:G2)<3

Expected flag: TRUE. The rule should be applied only when the intended numeric records actually exist; a count control helps avoid interpreting a no-data result as a real low observation.

This is an illustrative policy, not a recommendation about any real measurements. DMIN supplies a value; the decision threshold comes from the user’s task.

Advanced application: handle tied minima

In a separate copy, change the North/A value 4 to 2. DMIN still returns 2, but two records now share that minimum. The function does not return a row identifier or break ties.

If a follow-on retrieval needs a product description or date from the minimum row, define whether all tied rows, the earliest row, or another specific rule is intended. DGET requires one matching record and cannot silently resolve multiple matches.

Advanced control: translation and range

For the original 2, 4 and 6, adding 100 to every selected value gives a new minimum of 102 and maximum of 106. Their difference remains 4. The extreme values shift with the data’s origin, while the range does not.

Multiplying the original values by -1 gives -2, -4 and -6. The minimum becomes -6, the negative of the original maximum rather than the negative of the original minimum. A negative scale reverses order, so a simple “minimum times multiplier” shortcut is wrong in that case.

These are independent mathematical controls using a separate copy of the numeric values. They do not require editing the original fixture.

Empty selections and errors

The dedicated DMIN reference does not give a full no-match, blank-target or mixed-error table. Exact native boundary outputs are not asserted here. Keep a numeric count with the minimum, and distinguish a true observed zero from an absent or malformed selection.

If the minimum is unexpected, inspect which records meet the criteria, whether the field index moved, and whether numeric-looking text has entered the data. The example does not certify coercion behavior for every such input.

Criteria checks and troubleshooting

Use the complete header-and-condition range, not just the condition cells. Check the field heading for spelling and spacing, and verify that a numeric field index still points to the intended column after a layout change. A worksheet’s visible rows are not a substitute for the explicit database range and criteria used in the formula.

Do not include an accidental empty conditions row in the criteria range: an unrestricted alternative can broaden selection. Microsoft’s DAVERAGE reference documents the shared AND/OR, exact-text and case-insensitive matching rules. These examples avoid wildcard, case-sensitive-formula and numeric-text complications.

The database functions do not validate whether the selected records are the right records for the question. Keep a matching-record or numeric-field count beside an important result. Native blank/formula-empty handling, coercion, extreme precision and error propagation not explicitly documented in this guide remain unverified.

Availability and version history

  • Current documentation: the dedicated Microsoft reference lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016.
  • Introduced: the first introduction version/build is not established by the dedicated reference used here.
  • Last functioning version: unknown; a current help listing is not a last-working-build test.
  • Evidence checked: October 15, 2026. Official documentation was freshly retrieved; examples were independently calculated. No native Excel, Mac or web-client execution was performed.

References and verification

Examples use English function names and comma separators. Expected numbers are rounded independent mathematical calculations; documented error expectations are labeled as such. They are not captured Excel output. All illustrative data and policies are fictional.