10.6 C
London
Sunday, May 18, 2025
HomeExcelDescriptive Statistics in ExcelExcel: How to Find Max Value by Group

Excel: How to Find Max Value by Group

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

Often you may want to find the max value of some dataset in Excel based on a category or group.

For example, suppose we have the following dataset and we’d like to find the max value of “points” for each team:

The following step-by-step example shows how to do so.

Step 1: Enter the Data

First, enter the data values into Excel:

Step 2: Find the Unique Groups

Next, we need to use the =UNIQUE() function to produce a list of unique team names.

In our example, we’ll type the following formula in cell D2:

=UNIQUE(A2:A16)

This will produce a list of unique teams:

Step 3: Find the Max Value by Group

Next, we will use the following formula to find the max points scored by each team:

=MAX(IF(A:A=D2,B:B))

We will type this formula into cell E2 and then copy and paste it down to the remaining cells in column E:

This tells us:

  • The max points scored by players on the Mavs is 26.
  • The max points scored by players on the Warriors is 19.
  • The max points scored by players on the Lakers is 33.
  • The max points scored by players on the Heat is 19.
  • The max points scored by players on the Celtics is 29.

Note: To calculate the minimum points scored by each team, simply replace the MAX in the formula with MIN.

Additional Resources

The following tutorials explain how to perform other common tasks in Excel:

How to Count by Group in Excel
How to Calculate the Sum by Group in Excel
How to Calculate a Five Number Summary in Excel

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories