The article below explains both approaches.

See below for more information.

MAXIFS solution

TheMAXIFS functioncan get the maximum value in a range based on multiple criteria.

Custom number format to display months in column E

Notice we need toconcatenatethe dates tological operators, as required by the MAXIFS function.

Using EDATE is therefore simpler and more robust.

In this version, we use theTEXT functionto convert thedatestotext stringsin the format “mmyy”.

Custom number format to display months in column E

This array is then multiplied by the values inamount.

For a side-by-side comparison of formulas vs. pivot tables, see this video:Why pivot tables.

MAX ignores empty cells, the logical values TRUE and FALSE, and text values.

Custom number format to display months in column E

TEXT Function

The Excel TEXT function returns a number formatted as text.

in a text string with the number format of your choice.

How to calculate maximum and minimum values

Custom number format to display months in column E

Custom number format to display months in column E

Excel formula: Max value on given weekday

Excel formula: Minimum value if

Excel formula: Maximum value

Excel formula: Minimum value

Excel formula: Minimum if multiple criteria

Excel formula: Maximum if multiple criteria

Excel formula: Get next scheduled event

Excel MAXIFS function

Excel MAX function

Excel TEXT function

Article image