How to Limit a SUMIFS or SUM Total to a Maximum of 100 in Excel
Question details
The user needs to cap the result of a SUM or SUMIFS calculation so that the final displayed total does not exceed a maximum value of 100.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Calculating conditional totals where business rules or scoring systems dictate a strict upper limit.
- Observed behavior
- The formula should return the actual calculated sum unless it exceeds 100, in which case the cell must display exactly 100.
Ensure that your current SUM or SUMIFS formula is returning the correct totals without the limit before you apply the capping function.
Use the MIN Function to Cap the Total
Wrapping your existing SUM or SUMIFS formula inside a MIN function is the most efficient and concise way to enforce a maximum limit.
The MIN function evaluates two or more values and returns the smallest one. By comparing your desired maximum limit (100) against the result of your SUM formula, Excel will automatically cap the output.
Click on the cell where you want the limited total to appear.
Type =MIN(100, followed by your existing SUM or SUMIFS formula. For example, type =MIN(100, SUMIFS(B2:B50, A2:A50, "Completed")).
Press the Enter key to apply the formula. The cell will now display the calculated sum or 100, whichever value is lower.

Use an IF Function to Enforce the Limit
An IF function provides a more explicit way to set a limit, though it requires writing the SUM or SUMIFS formula twice within the same cell.
Use WPS Spreadsheet to Cap Complex Formula Results
You can easily apply the MIN or IF functions to limit your SUMIFS totals in WPS Spreadsheet. It provides a robust formula engine that operates exactly like Excel, allowing you to manipulate data efficiently.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your spreadsheet file containing the data.
- 2. Input the MIN formula: Click your target cell, type =MIN(100, SUMIFS(...)), and fill in your specific range criteria.
- 3. Press Enter: Press Enter to calculate the capped total instantly.

Frequently Asked Questions
Can I limit a formula to a minimum value instead of a maximum?
Yes, to set a minimum threshold (a floor), use the MAX function instead. For example, =MAX(0, SUM(A1:A50)) ensures the result never drops below 0.
Does this capping method work with other Excel functions like AVERAGE or COUNTIF?
Absolutely. You can wrap any calculation inside a MIN formula. For instance, =MIN(100, AVERAGE(B2:B20)) will limit the calculated average to a maximum of 100.
What if I want to reference a cell for the maximum limit instead of hardcoding 100?
You can replace the number 100 in the formula with a cell reference, such as =MIN(C1, SUM(A1:A50)). This allows you to dynamically change the maximum limit by simply updating the value in cell C1.




