Table of Contents
Google Sheets is a powerful tool that allows users to organize and analyze data in a spreadsheet format. One useful function of Google Sheets is the ability to find the maximum value within each group of data. This feature is especially helpful when working with large datasets that contain multiple groups of data. By using the MAX function and grouping the data by a specific criteria, users can easily identify the highest value within each group. This allows for efficient and accurate data analysis, making Google Sheets a valuable tool for managing and manipulating data.
Google Sheets: Find Max Value by Group
Often you may want to find the max value of some dataset in Google Sheets 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 Google Sheets:

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:
=ArrayFormula(MAX(IF(A:A=D2,B:B)))
We will type this formula into cell E2 and then drag it down to the remaining cells in column E:

From the results we can see:
- 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.
The following tutorials explain how to perform other common tasks in Google Sheets:
Cite this article
stats writer (2024). How can I use Google Sheets to find the maximum value within each group of data?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-to-find-the-maximum-value-within-each-group-of-data/
stats writer. "How can I use Google Sheets to find the maximum value within each group of data?." PSYCHOLOGICAL SCALES, 27 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-to-find-the-maximum-value-within-each-group-of-data/.
stats writer. "How can I use Google Sheets to find the maximum value within each group of data?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-to-find-the-maximum-value-within-each-group-of-data/.
stats writer (2024) 'How can I use Google Sheets to find the maximum value within each group of data?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-to-find-the-maximum-value-within-each-group-of-data/.
[1] stats writer, "How can I use Google Sheets to find the maximum value within each group of data?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I use Google Sheets to find the maximum value within each group of data?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
