Excel Formula to Sum the Five Largest of Six Numbers
Question details
The user needs an Excel formula that calculates the sum of the five largest values from six noncontiguous cells, such as D7, D9, D11, D13, D15, and D17.

- Product
- WPS Office Spreadsheet / Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user is working with six values placed in noncontiguous cells and needs to total only the five highest values, excluding the smallest.
- Observed behavior
- The formula should return the sum of the five largest values from the six referenced cells.
Open the workbook that contains the six values and confirm the cell references to include, such as D7, D9, D11, D13, D15, and D17.
Use SUM and LARGE with an Array Constant
Best for all Excel versions and WPS Office Spreadsheet; this formula extracts the five largest values from a noncontiguous range and sums them.
The LARGE function accepts a union of noncontiguous cells wrapped in parentheses. The array constant {1;2;3;4;5} tells LARGE to return the first through fifth largest values, and SUM adds them.
Click the cell where you want the total to appear, for example E1.
Type =SUM(LARGE((D7,D9,D11,D13,D15,D17),{1;2;3;4;5})) and press Enter.
Check that the returned value is the sum of the five highest numbers from the six referenced cells.

Use LET to Subtract the Smallest Value in Excel 365
Use this simpler alternative in Excel 365 or WPS Office versions that support LET and dynamic arrays.
Sum the Five Largest of Six Numbers in WPS Office Spreadsheet
Open your workbook in WPS Office Spreadsheet and enter the LARGE-based formula in the result cell. WPS Office Spreadsheet is compatible with Excel formulas, so you can calculate the sum without changing files.
- 1. Download and install WPS Office: Visit the official WPS Office download page, download the installer, and open WPS Office Spreadsheet.
- 2. Open your workbook: Click Menu > Open and select the Excel workbook that contains the six noncontiguous cells.
- 3. Select the result cell: Click the cell where you want the total to appear.
- 4. Enter the formula: Type =SUM(LARGE((D7,D9,D11,D13,D15,D17),{1;2;3;4;5})) and press Enter.
- 5. Save your file: Click Menu > Save As to keep the result as .xlsx or save a copy in WPS format.

Frequently Asked Questions
Can I use this formula with noncontiguous cells that are not in the same column?
Yes. Replace the cell references inside the LARGE formula with your own cell references, separated by commas and wrapped in parentheses.
Why does the formula use {1;2;3;4;5}?
The array constant tells LARGE to return the 1st through 5th largest values. The semicolons create a vertical array; commas can also work depending on your regional settings.
Does this formula work in WPS Office Spreadsheet?
Yes. WPS Office Spreadsheet supports SUM and LARGE, so you can enter the formula exactly as shown.
Do I need Excel 365 for the LET alternative?
The LET formula requires Excel 365 or a version of WPS Office that supports LET. The SUM/LARGE formula works in older versions.




