Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.
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.
Learn more about Allen...
Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Adding Up Tops and Bottoms.
As you are collecting data for your Excel project, you may have a need to add up the top N number of values in a range or the bottom N number of values. For instance, you may be keeping track of golfing scores and need to add up only the top three scores or the bottom three scores out of a series of scores.
As with most any Excel problem, there are several ways you can go about implementing a solution. For instance, you could sort the scores so that they are in ascending or descending order. You would then have the top or bottom scores in a set place where you could always sum them.
There is an easier way, however. You can use the LARGE and SMALL functions, which do the job very nicely. For instance, say you have the scores in cells C5 through C25. All you need to do is put the following formula in a cell in order to add up the top three scores:
The function returns the Nth largest value from the specified range. As shown in the formula, the largest, second largest, and third largest values are returned and added together. You can similarly use the SMALL function to sum the three lowest scores:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2161) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Adding Up Tops and Bottoms.
Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!