Totals and counts function

MAXIFS

The largest number among the matching rows.

Purpose

Find the largest figure among the rows that qualify

Returns

The largest matching number, or nought if nothing matched

Syntax

=MAXIFS(max_range, range1, condition1, [range2], [condition2], ...)

ArgumentRequiredWhat goes here
max_rangeRequiredThe column of amounts to look at.
range1RequiredThe first column to test.
condition1RequiredWhat that column has to match.
range2OptionalThe next column to test.
condition2OptionalWhat that column has to match.

How to use MAXIFS

MAXIFS puts the column to search first, then range and condition in pairs, like SUMIFS.

It answers the exposure question with the population narrowed: the largest invoice that is actually overdue, rather than the largest invoice.

When nothing matches it returns nought rather than an error, which is worth remembering because nought is a plausible looking answer for an amount.

Examples

Every result below is worked out by the same evaluator that marks your answers, on the sheet shown here.

Payables ageing — October.xlsxSheet1
Harbour Foods payables at 31 October 2026, with supplier terms alongside
ABCDEFGH
1InvoiceSupplierStatusDays overdueAmountSupplierTerms (days)
2INV-8801Brightwell PaperOverdue12940Ashgrove Catering30
3INV-8802Calder UtilitiesQueried471180Brightwell Paper30
4INV-8803Meridian FreightOverdue632450Calder Utilities14
5INV-8804Ashgrove CateringOn terms0405Meridian Freight45
6INV-8805Brightwell PaperOverdue38760Thornbury Print60
7INV-8806Thornbury PrintOverdue911320
8INV-8807Meridian FreightOn terms0580
9INV-8808Calder UtilitiesOverdue24215
FormulaResult
=MAXIFS(E2:E9,C2:C9,"Overdue")The largest overdue invoice.2450
=MAXIFS(E2:E9,D2:D9,">60")The largest of the debts past sixty days.2450
=MAXIFS(E2:E9,C2:C9,"Written off")No row has that status, so the answer is nought. Nothing distinguishes it from a genuine nought.0

Notes

  • No match gives nought. Count the matching rows alongside it if that would be misleading.