Use the Rank function in column c to Rank each item. In column d, use the vlookup or index/match to do a table lookup of looking for Rank 1, Rank 2...etc. Answer from smokinjoe72 on reddit.com
🌐
Statology
statology.org › home › excel: how to find top 5 values and names
Excel: How to Find Top 5 Values and Names
June 20, 2023 - This tutorial explains how to find the top 5 values and names in Excel, including a complete example.
Discussions

Return top 5 values with criteria in Excel - Stack Overflow
Return top 5 values with criteria in Excel: Mark "Y" in new column (i.e. column 4 ) if the record is in Top five value in column 3 grouped by column 1 and column 2 Mark the corresponding More on stackoverflow.com
🌐 stackoverflow.com
excel - Listing the top 5 values of a range and their matching titles - Stack Overflow
I have a sheet with a large amount of data where each row has a title for a project (F6:F244) and then in a column a bit further along it has the Total Hours spent on each project (V6:V244) along the More on stackoverflow.com
🌐 stackoverflow.com
excel - Rank the top 5 entries in different criteria - Stack Overflow
I have a table that I want to find the top X people in each of the different groups. Unique Names Number Group a 30 1 b 4 ... More on stackoverflow.com
🌐 stackoverflow.com
Extracting top 5th (or n) names based on values without sorting
I have a data set with n rows and 2 columns for names and values attached to them. The data set was spilled out from an array formula without order, except for sorted names created from the formula. I would like to extract from the table top 5 names with highest values using formula (rather than... More on mrexcel.com
🌐 mrexcel.com
5
0
October 30, 2020
🌐
Ablebits
ablebits.com › ablebits blog › excel › find & replace › excel formula to find top 3, 5, 10 values in column or row
Excel formula to find top 3, 5, 10 values in column or row
March 13, 2023 - The MATCH function searches for "1" in this array, and returns its relative position (9), which is Nick. Note. This solution implies that the return column (Name in our case) contains only unique values. Tip. In Excel 365, you can use a lot simpler FILTER formula that handles ties automatically. To get top values that match certain condition, express your criteria with the help of the IF function and nest them inside the formulas discussed in the previous sections.
🌐
ExcelDemy
exceldemy.com › home › excel functions › how to find top 5 values and names in excel (14 useful ways)
How to Find Top 5 Values and Names in Excel (14 Useful Ways) - ExcelDemy
June 24, 2024 - Please insert this formula into cell F7: =LARGE($C$5:$C$14,ROWS($F$7:$F7)) and, drag the fill handle to get the top 5 cgpa values. I hope, your problem will be solved in this way.
🌐
YouTube
youtube.com › watch
Extract Top 5 Values with Names with Dynamic Array Formulas & Conditional Formatting – EMT 1610 - YouTube
Download Excel File: https://excelisfun.net/files/EMT1610.xlsxLearn how to extract top five scores and names of people with the score, including when there a
Published   October 8, 2019
🌐
YouTube
youtube.com › watch
Find Top 5 Values and Names in Excel
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
🌐
YouTube
youtube.com › exceltips
Find top 5 values in excel list (Works for Top N Values | No Formula Required) - YouTube
In this video, I will show you how to find the top 5 values in an excel list. I will also show you how to make the results dynamic - so that you can display ...
Published   February 22, 2022
Views   1K
Find elsewhere
🌐
YouTube
youtube.com › startup akademia
How to find the Top 5 values in Excel with one formula (LARGE formula) - YouTube
I will explain in this video what is and how to find the top 5 values in Excel.This movie is a part of my online course Essential Excel for Business Analysts...
Published   May 14, 2022
Views   46K
🌐
ExtendOffice
extendoffice.com › documents › excel › how to find the lowest and highest 5 values in a list in excel?
How to find the lowest and highest 5 values in a list in Excel?
Find the lowest and highest 5 values in Excel with ease. Learn how to quickly identify top and bottom values for better data analysis.
Top answer
1 of 4
2

Proof of Concept

Use the following formula in the example above in cell F2 and copy down and to the right as needed.

=IFERROR(INDEX($A$2:$A$8,MATCH(AGGREGATE(14,6,($C$2:$C$8=F$1)*($B$2:$B$8),ROW($A2)-1),$B$2:$B$8,0)),"")

In the header row provide the group numbers. or come up with a formula to augment and reset the group number as you copy down based on your X number in your question.

Explanation:

The AGGREGATE function unlike the large function is an array function without the need to use CSE. As such we can add criteria to what we want to use. In this case only 1 criteria was used and that was the group number. in the formula it was the following part:

($C$2:$C$8=F$1)

If there were multiple criteria we would use either an + operator as an OR or we would use an * operator as an AND.

The 6 option in the aggregate function allows us to ignore errors. This is useful when trying to get the small. It is also useful for dealing with other information that may cause errors that do not need to be worried about.

As this is technically an array operation avoid using full column/row references as they can bog down your system.

The basics of what the over all formula is doing is building a list that match the group number you are interested in. After filtering your numbers, it then determines which is the largest, second largest etc by what row you have copied down to. It then determine what row the nth largest number occurs in through the match function, and finally it returns to the corresponding name to that row with the index function.

2 of 4
2

Building on all the other great answers.

Because you have the possibilities of duplicate values in each group we need to do this with two formulas.

First we need to get the numbers in order. I used the Aggregate, but this could be done with the array LARGE(IF()) also:

=IFERROR(AGGREGATE(14,6,$B$2:$B$8/($C$2:$C$8=E$1),ROW(1:1)),"")

Then using that number and order we can reference, we can use a modified version of @ForwardEd's formula, using COUNTIF() to ensure we get the correct name in return.

=IFERROR(INDEX($A$2:$A$8,AGGREGATE(15,6,(ROW($B$2:$B$8)-ROW($B$2)+1)/(($C$2:$C$8=F$1)*($B$2:$B$8=E3)),COUNTIF(E$2:E2,E3)+1)),"")

This will count the number in the results returned and then bring in the correct name.

🌐
Excel Off The Grid
exceloffthegrid.com › creating-a-top-10-using-formulas
How to calculate Top 10 with formulas in Excel
January 21, 2026 - Cell J4 contains the name of the city; London or Birmingham. We want the top 10 to only include customers in that city. Look at the Top 10 – DA with criteria tab in the example file. ... The only difference to the previous example is that we are using the FILTER function to include the matching items, before it is fed into the SORT function. ... It returns cells A2 to C27, but only where the corresponding values from B2 to B27 equal the selected city in cell J4.
Top answer
1 of 1
2

This seems to be not the easiest task, as you need to take care of the aggregation of totals etc., but a LET() statement should help you to keep things clean and provide you with a spilled array. Generally, the LET() allows you to assign names to intermediate values. I extended the example data a bit to have a more comprehensive example (see below) stored in range A1:C15.

Input data:

Name Sex Total
Taylor f 268
Taylor f 252
Halle f 251
Christian m 410
abc m 216
def f 508
abc m 608
ijk f 174
kjen m 208
vhjre f 302
vhjre f 658
ajk m 528
ertz f 148
kjen m 596

Case 1: Returning Aggregate Totals

The formula put in practice looks as follows:

=LET(
    data, $A$1:$C$15,
    criteria, "f",
    topN, 3,
    filteredData, FILTER(data, INDEX(data, , 2) = criteria),
    uniqueNames, UNIQUE(INDEX(filteredData, , 1)),
    totals, SUMIFS(INDEX(data, , 3), INDEX(data, , 1), uniqueNames, INDEX(data, , 2), criteria),
    sortedNames, INDEX(uniqueNames, MATCH(LARGE(totals, SEQUENCE(topN)), totals, 0)),
    sortedTotals, INDEX(totals, MATCH(LARGE(totals, SEQUENCE(topN)), totals, 0)),
    HSTACK(SEQUENCE(topN), sortedNames, sortedTotals)
)

Now to the important part, what is going on here: First we define the range of the data (as mentioned above), which we call data. Next, we define the criteria according to which we want to filter the data, e.g., "f" as well as the number of observations called topN that we want to return. I used here the top 3 for expositional purposes, but this can be changed flexibly.

Next, we filter the data based on the criteria defined from our data and extract the uniqueNames, which we need to aggregate the totals and return the correct data in the end. The next step is a simple SUMIFS() statement to aggregate the totals for each unique name based on which we decide if it is included in the topN or not. Once we obtained the totals, we can use this information to extract both the names and the totals that are part of the topN. Basically, here we obtain the row index for the INDEX() function by matching the totals using a combination of MATCH(), LARGE() and SEQUENCE(). The same idea applies to returning the aggregate totals. The final step is to return the rank, as well as the obtained names and totals in a table like structure. For this purpose, we use the HSTACK() function to horizontally stack multiple arrays.

The output for top 3 with criteria "f" is as follows:

Rank Name Total
1 vhjre 960
2 Taylor 520
3 def 508

The output for top 3 with criteria "m" is as follows:

Rank Name Total
1 abc 824
2 kjen 804
3 ajk 528

Case 2: Returning Maximum Totals (based on comment)

In case you want to return maximum totals, you need to slightly adjust the LET() statement because you also need to compute the maxTotals. The adjusted formula put in practice looks as follows:

=LET(
    data, $A$1:$C$15,
    criteria, "f",
    topN, 3,
    filteredData, FILTER(data, INDEX(data, , 2) = criteria),
    uniqueNames, UNIQUE(INDEX(filteredData, , 1)),
    totals, SUMIFS(INDEX(data, , 3), INDEX(data, , 1), uniqueNames, INDEX(data, , 2), criteria),
    maxTotals,MAXIFS(INDEX(data,,3),INDEX(data,,1),uniqueNames,INDEX(data,,2),criteria),
    sortedNames, INDEX(uniqueNames, MATCH(LARGE(totals, SEQUENCE(topN)), totals, 0)),
    sortedTotals, INDEX(maxTotals, MATCH(LARGE(totals, SEQUENCE(topN)), totals, 0)),
    HSTACK(SEQUENCE(topN), sortedNames, sortedTotals)
)

This LET() statement has basically two adjustments. The first is the additional computation of maxTotals, which simply uses the MAXIFS() instead of the SUMIFS(). The SUMIFS() is also in this case required, because you make the decision based on the aggregate totals. The second adjustment in this statement is in the line of sortedTotals because you want to return not the totals but the maxTotals. All other aspects remain the same.

The output for top 3 with criteria "f" is as follows:

Rank Name Max Total
1 vhjre 658
2 Taylor 268
3 def 508

The output for top 3 with criteria "m" is as follows:

Rank Name Max Total
1 abc 608
2 kjen 596
3 ajk 528

Additional explanations:

In case you want to return any intermediate step rather than the final result to trace whats going on, you can change in the LET() statement the line of HSTACK() as follows to return, e.g., the sortedNames:

    result, HSTACK(SEQUENCE(topN),sortedNames, sortedTotals),
    sortedNames
🌐
MrExcel
mrexcel.com › forums › question forums › excel questions
Extracting top 5th (or n) names based on values without sorting | MrExcel Message Board
October 30, 2020 - I have a data set with n rows and 2 columns for names and values attached to them. The data set was spilled out from an array formula without order, except for sorted names created from the formula. I would like to extract from the table top 5 names with highest values using formula (rather than...
🌐
Arabpsychology
statistics.arabpsychology.com › psychological statistics › how to extract top 5 values and corresponding names in excel: a step-by-step guide
How To Extract Top 5 Values And Corresponding Names In Excel: A Step-by-Step Guide - PSYCHOLOGICAL STATISTICS
November 13, 2025 - In this context, ‘k’ represents the rank we are seeking, which will range sequentially from 1 (the highest value) up to 5 in this specific use case. This requirement necessitates the use of an advanced Excel function that can return values based on their ordinal rank within a designated range, moving significantly beyond simple maximum calculations. Secondly, once these five top scores are successfully identified, we must reliably and accurately retrieve the corresponding student names from a separate column, ensuring that every single top score is correctly and instantaneously matched to its owner.
🌐
ExcelDemy
exceldemy.com › home › excel formulas › how to get top 10 values based on criteria in excel
How to Get Top 10 Values Based on Criteria in Excel - ExcelDemy
June 1, 2024 - Select Cell G6 and insert the following formula there. ... Press Enter. We will see the top 10 marks of physics in the range of cells G6:G15. ROW(A1:A10) creates an array of numbers 1 to 10. IF(D6:D20>60, C6:C20,””) checks the condition D6:D20>60, if the condition is met then it gives the output as a cell in the range of C6:C20, if criteria are not met it gives an empty value. Let’s extract the names of the students with the highest scores in Physics.
🌐
YouTube
youtube.com › watch
Excel FILTER Function Top or Bottom n Values With Criteria - YouTube
👍👍If you have found this content useful and want to show your appreciation, please use this link to buy me a beer 🍺. https://www.paypal.com/donate/?hoste...
Published   June 12, 2024
🌐
The Most 10
themost10.com › home › top list
Excel Top 5 Values And Names With Criteria - The Most 10 Of Everything
February 16, 2025 - 5. Use the IF function: The IF function in Excel allows users to perform logical tests on data. You can use the IF function in combination with the LARGE function to filter out values that do not meet a certain condition and display only the top 5 values that do. Emerging Trends in Excel Top Values and Names with Criteria
🌐
Sage Intelligence
sageintelligence.com › home › blog › tips & tricks › excel tips & tricks › using an array formula to display top five values
Using an Array Formula to Display Top Five Values | Sage Intelligence
February 13, 2014 - Applies To: Microsoft® Excel® 2007, 2010 and 2013 · To illustrate this example we use the screen shot below. 1. Select cells E3 to E7. This set of cells will hold the top five client balances. 2. In the formula bar, enter the following formula: =LARGE(C3:C17,{1;2;3;4;5}