Formulyo

Excel 365 + Google Sheets · MAXIFS

The maximum, with conditions

Returns the largest value among the rows that meet your conditions.

The formula

=MAXIFS(C2:C5, A2:A5, "North")

What each part means

Example

Before
ABC
1RegionClientAmount
2NorthAcme1,200
3SouthBolt900
4NorthCora700
5NorthDyno1,450
6Max North
After
ABC
1RegionClientAmount
2NorthAcme1,200
3SouthBolt900
4NorthCora700
5NorthDyno1,450
6Max North1,450

Step by step

  1. Click cell C6.
  2. Type the formula: =MAXIFS(C2:C5, A2:A5, "North")
  3. Press Enter.
  4. Drag the small square in the bottom-right corner of the cell down to copy it to the other rows.

Where it works

The same formula in other languages

Get 1 formula a day, free

Plus a free weekly planner template for Excel and Google Sheets. Unsubscribe in 1 click.

✓ Done! Check your inbox to confirm.

Want ready-made templates? See the Formulyo pack →

Keep learning