How to limit formula result to maximum or minimum value in Excel?
Here are some cells needed to be entered, and now I want to use a formula to sum up the cells but limit the result to a maximum value such as 100. In other words, if the summation is smaller than 100, display the summation, otherwise display 100.
Select Cells with Max & Min Value function can quickly select the largest or smallest data from a range, each column or each row.
|1) Select the cells type you want to find max or min value fromin the Look in list,
you can find the maximum value in both formula and value cells, or only formula cells, or only value cells;
2) Specify to find out min value or max value in Go to section;
3) If you want to find max value based on each column, check Entire column in Base section;
4) To find out all max values, check All cells in Select section, if you just need to find the first appearing max value, check First cell only.
Excel Productivity Tools
Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial
Kutools for Excel: Save 70% of your time and solve 80% Excel problems for you. 300+ advanced features designed for 1500+ work scenario, make Excel much easy and increase productivity immediately.60-day Unlimited Free Trial
To handle this task, you only need to apply the Max or Min function in Excel.
Limit formula result to maximum value (100)
Select a cell which you will place the formula at, type this formula =MIN(100,(SUM(A5:A10))), A5:A10 is the cell range you will sum up, and press Enter. Now, if the summation is greater than 100, it will display 100, if not, display the summation.
|Summation is greater than 100, show 100|
|Summation is smaller than 100, show summation|
Limit formula result to minimum value (20)
Select a cell which you place the formula at, type this =MaX(20,(SUM(A5:A10))), A5:A10 is the cell range you will sum up, and press Enter. Now, if the summation is smaller than 20, it will display 20; if not, display the summation.
|Summation is smalller than 20, show 20|
|Summation is greater than 20, show summation|