Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Determining Winners, by Category.

# Determining Winners, by Category

by Allen Wyatt
(last updated March 5, 2022)

Suppose that your company sponsors a benefit car show, and you are charged with keeping track of scores and coming up with the winners. Each column in the worksheet represents a different category of car, and each row represents a different entrant in the contest. Each cell in the table contains a score for that contestant in the appropriate categories. Your job, after tracking the scores, is to calculate the top three winners in each category: first, second, and third place.

If each category will contain a unique score for each person (there are no ties), then calculating the top three scores in each category is relatively easy. Let's assume that the first three rows of the worksheet are used to show the top three winners in each category. Cell A1 contains 1 (for first place), cell A2 contains 2 (for second place), and cell A3 contains 3 (for you know which place).

The actual scoring table begins in cell A5, with column labels. Cell A5 contains the word "Names," and then cells B5:AA5 have the names of each car category. Cells A6:A100 contain the names of each contestant, and B6:AA100 contains the scores for those contestants, by category.

Enter the following formula into cell B1:

```=INDEX(\$A\$6:\$A\$100,MATCH(LARGE(B\$6:B\$100,\$A1),B\$6:B\$100,0))
```

Copy the formula to the rest of the results range, B1:AA3. The formula looks at the ranking in column A (1 through 3) and then uses that to pick the first, second, and third largest values in each column. Rather than return the value, however, the value is used to pick the name of the person with that value; it is this name that is returned.

This approach, as mentioned, assumes there are no ties in the scoring table. If it is possible to have ties, then the scoring becomes much more complex and, perhaps, the best solution is to create a user-defined function in a macro. (The reason that ties make it more difficult is that the judges need to come up with a set of rules by which to break ties. These rules can vary, which means that the formulas—and user-defined functions—can vary.)

Another suggestion is to modify the way in which your scoring table is maintained. Instead of creating a large matrix (26 columns and however many contestants there are), create a small database that only has three columns: name, category, and score. You would then enter the data for each person into the database, and sort the database to get the desired winners. Simply sort first by category and then by score, and you can easily see who the top three contestants are in each category.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11521) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Excel here: Determining Winners, by Category.

##### Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

##### MORE FROM ALLEN

Inconsistent Adding of Words to a Custom Dictionary

Custom dictionaries are a great way to adapt the spelling and grammar checkers to your needs. If you find that Word isn't ...

Discover More

Scrolling Up and Down

Need an easy way to move through a spreadsheet using a mouse? Here are a couple of ideas.

Discover More

Inserting Workbook Comments Into a Cell

One of the pieces of information that Excel can maintain relative to a workbook is a set of comments of your choice. ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

##### More ExcelTips (ribbon)

Summing Absolute Values

You can easily sum a series of values in Excel, but it is not so easy to sum the absolute values of each value in a ...

Discover More

Deriving Antilogs

Creating math formulas is a particular strong point of Excel. Not all the functions that you may need are built directly ...

Discover More

Incrementing References by Multiples when Copying Formulas

You can easily set up a formula to perform some calculation on a range of cells. When you copy that formula, the copied ...

Discover More
##### Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. Youâ€™ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is nine more than 9?

There are currently no comments for this tip. (Be the first to leave your commentâ€”just use the simple form above!)

##### This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.