How to find max or min value based on unique values in Excel?

For instance, you have two column data, and one called Name with some duplicate values, now you want to find out the relative max or min values based on the unique values as below screenshot shown. How can you quickly handle with this task in Excel? In this article, you may find the answer.

doc find max unique 1

Find max or min value based on unique values with creating Pivot Table

Find max or min value based on unique values with Kutools for Excel good idea3

Find unique max or min value from a list with Kutools for Excel


arrow blue right bubble Find max or min value based on unique values with creating Pivot Table

In Excel, PivotTable is a powerful function, you can create a pivot table based on the range, and then find the max or min value by unique values.

1. Select the data you want to find max or min value from, and click Insert > PivotTable > PivotTable. See screenshot:

doc find max unique 2

2. Then check New Worksheet or Existing Worksheet in Create PivotTable dialog as you need, here I check New Worksheet. See screenshot:

doc find max unique 3

3. Click OK. Now a PivotTable Field List pane appears in a new sheet, and check Name (the column you want to select max or min values based on) and right click to Add to Row Labels, and check Score (the column you want to return to max or min value) and right click to Add to Values. See screenshots:

doc find max unique 4doc find max unique 5

4. Then you can see a pivot table created in the worksheet, and now right click at the Sum of Score and select Value Field Settings from context menu, then in the popping dialog, under Summarize Values By tab, select Max or Min as you need. See screenshots:

doc find max unique 6doc find max unique 7

5. Click OK. Now the max values of each unique value are found out.

doc find max unique 8


arrow blue right bubble Find max or min value based on unique values with Kutools for Excel

With Kutools for Excel, you can use the Advanced Combine Rows utility to quickly find the max or min value based on unique values.

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After free installing Kutools for Excel, please do as below:

1. Select the data that you want to find max or min value (if you want to keep the original data, you can copy and paste them to another location first), and then click Kutools > Merge & Split > Advanced Combine Rows. See screenshot:

doc find max unique 9

2. Then in the Advanced Combine Rows dialog, do as below:

1) Select the column that you want to get the unique value, then click Primary Key to set it as primary key column. See screenshot:

doc find max unique 10

2) Then select the column which you want to return the max or min value from, and click Calculate > Max or Min to find the max or min value. See screenshot:

doc find max unique 11

3. Now click Ok, and you can see the max or min values of each unique value are found out. See screenshot:

doc find max unique 12doc arrowdoc find max unique 13

Tip: The Use fomratted values will keep your value formatting after combining.

Click here to know more about Advanced Combine Rows.

Kutools for Excel is a multifunctional and handy tool, free install Kutools for Excel, makes your Excel working fly!


arrow blue right bubble Find unique max or min value from a list with Kutools for Excel

If you have a list with some duplicate values, and now you just want to find out the unique max or min value from this list as below screenshot shown, in this case, Kutools for Excel can help you.

doc find max unique 14

After free installing Kutools for Excel, please do as below:

1. Select the list that you want to find the unique max or min value (including header), and click Kutools > Select > Select Duplicate & Unique Cells. See screenshot:

doc find max unique 15

2. In the popping dialog, check Unique values only option, and check Select entire rows checkbox ( if you don’t need to show the corresponding value of the unique max value or min value, uncheck Select entire rows), and click Ok > OK. See screenshot:

doc find max unique 16

Note: If you need to select all unique values and the 1st duplicates, please check the All unique (Including 1st duplicates) option in above dialog.

3. Then you can see all unique rows are selected, press Ctrl + C to copy it, and then go to another sheet and select a blank cell, press Ctrl + V to paste it. See screenshot:

doc find max unique 17

4. Then select the list of values you want to find max or min value, click Kutools > Select > Select Cells with Max & Min Value. See screenshot:

doc find max unique 18

5. In the popped out dialog, check Minimum value or Maximum value as you need, and then check Cell under Base section. See screenshot:

doc find max unique 19

6. Click Ok, and the unique max value or min value is highlighted.

Unique minimum value            Unique Maximum value
doc find max unique 20doc find max unique 21

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.