Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. 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: Figuring Out the Low-Score Winner.
Written by Allen Wyatt (last updated March 6, 2021)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365
Mike asked if there is a way to determine the low-score winner on a hole-by-hole basis in a golf game. He uses Excel to track the individual hole scores, but he needs to know who has the lowest unique score on each hole. (If there is a tie on a hole, then he doesn't need to know who was involved in the tie.)
In providing an answer, there are several assumptions that must be made. First, assume that the values 1-18 (for each golf hole) are in cells A2 through A19. Second, assume that the low-score winner will be noted in column B. Third, assume that there are four golfers playing and that their names are in cells C1 through F1. This range (C1:F1) is named "GolferNames". Finally, the golf scores for each golfer are entered in cells C2 through F19.
With this structure used, there are any number of ways that the formula could be put together. I particularly like this formula, which should be placed in cell B2:
=IF(MIN(C2:F2)=SMALL(C2:F2,2),"There is a " & TEXT(COUNTIF(C2:F2, MIN(C2:F2)),"0") & "-way tie", INDEX(GolferNames,MATCH(MIN(C2:F2),C2:F2,0)))
This is a very long formula, and you should make sure that it is entered all on a single line. You can then copy the formula from B2 and paste it in B3 through B19.
If there is a tie (determined by comparing the results of the MIN function with the second lowest score, as returned by the SMALL function), then the formula returns "There is a 2-way tie", or whatever number is actually involved in a tie. If there is not a tie, then the INDEX function is used to retrieve the name of the golfer that had the lowest score for the hole.
This example used, of course, only four golfers. If there are more golfers involved, the only alterations to make involve changing the range covered by the GolferNames range and expanding all instances of C2:F2 in the formula to represent the actual range of golfer scores.
If you prefer to simply not list anything if there was a tie on a hole (i.e., don't say "There is a 2-way tie"), you can do so with this simplified version of the formula:
=IF(MIN(C2:F2)=SMALL(C2:F2,2),"", INDEX(GolferNames,MATCH(MIN(C2:F2), C2:F2,0)))
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10736) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Figuring Out the Low-Score Winner.
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!
Want to create a sequential pattern using formulas? It's easy to do if you take a look at how your data repeats. This tip ...
Discover MoreGot a large group of people listed in a worksheet and you want to make sure that each person has met with every other ...
Discover MoreExcel provides several different ways that you can split apart the contents of a cell. One way it doesn't provide is to ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
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.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments