WorkbookLogic
FormulaFreeFormula StructureintermediateMAXMINIFAND

Cap a Percentage Between 0% and 100%

By WorkbookLogic

Keep a numeric percentage inside inclusive lower and upper limits with nested MAX and MIN, while preserving valid in-range values and clearly exposing any resulting adjustment.

ExcelLast reviewed Sep 11, 2026
cap-percentage-between-0-and-100-v1.0.0.xlsxFree
Cap Percentage Between 0 and 100, Formula Review
MIN applies an upper ceiling; MAX applies a lower floor. Nested together, they constrain both sides.
1. MIN applies the upper cap
InputValueFormula syntaxResult
Raw percentage125.0%=MIN(B12,B13)100.0%
Upper bound100.0%
2. MAX applies the lower floor
InputValueFormula syntaxResult
Upper-capped value-15.0%=MAX(B18,B19)0.0%
Lower bound0.0%
Combined nesting
=MAX(lower_bound,MIN(raw_percentage,upper_bound))

Overview

Return one bounded percentage for each numeric input. Values below the selected floor become the floor, values above the ceiling become the ceiling, and values already inside the inclusive interval pass through unchanged.

When to use it

Use it to constrain repayment rates, cash-sweep percentages, progress measures, allocation rates, or other numeric assumptions that must remain inside known limits. The same formula works with editable bounds other than 0% and 100% when the lower bound does not exceed the upper bound.

When not to use it

Use data validation when invalid entries should be rejected at input rather than adjusted in a calculation. Use IF when different boundary breaches require different messages or actions. Validate or clean text and blanks upstream when they must not be treated as numbers.

Problem

Downstream calculations can become nonsensical when a percentage falls below 0% or above 100%. A long nested IF can enforce the bounds but obscures the simple rule. Applying one ceiling and one floor expresses the allowed interval directly.

Inputs

Input

Location

Sample

Raw percentage

Combined Example!B12:B17

-15% to 240%

Lower bound

Combined Example!G12

0%

Upper bound

Combined Example!G13

100%

Source data

The synthetic source contains six numeric percentage scenarios:

Raw percentage

Expected bounded result

Adjustment

-15%

0%

+15 percentage points

0%

0%

0

35%

35%

0

100%

100%

0

125%

100%

-25 percentage points

240%

100%

-140 percentage points

Percentage cells store decimals—100% is 1, not 100. Sorting and duplicates do not affect row-by-row results.

Calculations

  1. Compare the raw value with the upper bound and retain the smaller value.
  2. Compare that intermediate value with the lower bound and retain the larger value.
  3. Return the value now inside both inclusive limits.
  4. Subtract the raw value from the result when an adjustment measure is needed.

Outputs

The primary output is one bounded percentage per input row. The optional adjustment is measured in percentage points and shows how much the formula added or removed. Exact boundary values remain unchanged.

Formula map

=MAX($G$12,MIN(B12,$G$13))

MIN applies the upper cap first; MAX then applies the lower floor. The bounds are absolute so the formula can fill down, while B12 remains relative to the current row.

The optional adjustment is:

=C12-B12

Model checks

The workbook tests that every result is greater than or equal to the floor and less than or equal to the ceiling. It also confirms that the valid 35% input remains unchanged. Each passing check returns OK.

Edge cases

  • Values exactly equal to either bound remain unchanged.
  • Large positive and negative numbers still return the nearest bound.
  • Reversed bounds do not describe a valid interval and require input validation.
  • Blank or nonnumeric inputs should be governed by an explicit source-data rule rather than implicit MIN/MAX coercion.
  • Formula errors in the input propagate to the result.

Common errors

  • Entering 100 instead of 100%: Excel interprets 100 as 10,000%. Enter 1 or type 100%.
  • Reversing the bounds: the formula no longer represents the intended interval. Confirm lower is less than or equal to upper.
  • Using formatting as a control: percentage formatting changes appearance, not the stored value. Apply the numeric formula or input validation.

Example

With a 0% floor and 100% ceiling, MIN(125%,100%) returns 100%, and MAX(0%,100%) leaves it at 100%. For 35%, both comparisons leave the input unchanged. For -15%, the ceiling does nothing and the floor raises the result to 0%.

Example workbook

Replace the cream bounds in Combined Example!G12:G13 or edit the six raw percentages in B12:B17. The adjacent columns show bounded results and adjustments. Formula Review isolates the upper-cap and lower-floor stages.

Key takeaway

Apply a ceiling with MIN and a floor with MAX to express an inclusive numeric boundary clearly, while treating input validation as a separate decision.