DMAX Function in Google Sheets

Find the maximum value in a database that meets specified criteria using the DMAX function.

DMAX Function

The DMAX function in Google Sheets finds the maximum value in a specified field of a database that meets given criteria.

Syntax

DMAX(database, field, criteria)
  • database: The range of cells that make up the database.
  • field: The column number or header name containing the values to evaluate.
  • criteria: The range of cells that contain the conditions for finding the maximum value.

Examples

  1. Basic Example

Find the maximum value in field 2 of the database A1:C10 where criteria are in E1:E2:

=DMAX(A1:C10, 2, E1:E2)
  1. Using Header Names

Find the maximum value in the ‘Sales’ column where criteria are in G1:G2:

=DMAX(A1:C10, "Sales", G1:G2)

Notes

  • Useful for identifying the highest value in a subset of data.
  • DMIN: Find the minimum value in a database meeting specified criteria.
  • DAVERAGE: Calculate the average of values meeting criteria.