Function Problems

Excel Formulas to Distribute Values Across Three Tiers

Huda QurayshiHuda Qurayshi Nov 12, 2026 868 views

Question details

The user needs to distribute one input value across three tiers with maximum amounts of 100, 50, and 15.

Product
Microsoft Excel
Device & OS
not provided
Scenario
An input value is entered in E1 and must be allocated sequentially into three output cells without assigning more than each tier allows.
Observed behavior
Chained comparison formulas do not allocate the value correctly across the tiers.
Before you start

Enter the input value in E1 and place the tier limits in D1:D3: 100, 50, and 15. Leave B1:B3 available for the calculated amounts.

Solution 1Recommended

Use MIN and MAX formulas for sequential tier allocation

Use this method when each tier has a maximum and any unassigned amount should flow to the next tier without producing negative values.

The first formula assigns up to the first limit. Each following formula subtracts the amounts already assigned, uses MAX to prevent a negative remainder, and uses MIN to enforce the current tier limit.

1
Enter the tier limits

In a spreadsheet, enter 100 in D1, 50 in D2, and 15 in D3. Enter the source value in cell E1.

2
Calculate the first tier

Select cell B1 and enter =MIN($D$1,E1), then press Enter.

3
Calculate the second tier

Select cell B2 and enter =MIN($D$2,MAX(0,E1-B1)), then press Enter.

4
Calculate the third tier

Select cell B3 and enter =MIN($D$3,MAX(0,E1-B1-B2)), then press Enter.

Use MIN and MAX formulas for sequential tier allocation
Example result: If E1 contains 140, B1 returns 100, B2 returns 40, and B3 returns 0. Keeping the limits in D1:D3 makes them easy to change later.

Allocate Values Across Tiers in WPS Spreadsheet

WPS Spreadsheet supports the same MIN and MAX formulas, so you can distribute values across capped tiers, prevent negative remainders, and maintain the limits in separate cells with a familiar spreadsheet interface.

  1. 1. Open a spreadsheet: Launch WPS Office, choose Spreadsheet, and open a blank workbook or the workbook containing your input data.
  2. 2. Enter the source and limits: Put the source value in E1 and enter the tier limits 100, 50, and 15 in D1:D3.
  3. 3. Add the allocation formulas: Enter =MIN($D$1,E1) in B1, =MIN($D$2,MAX(0,E1-B1)) in B2, and =MIN($D$3,MAX(0,E1-B1-B2)) in B3.
  4. 4. Check and save the results: Change the value in E1 to test the allocation, then use File > Save As to save the workbook as an XLSX file if needed.
Build reliable three-tier allocation formulas with MIN and MAXKeep tier limits in cells for easier updates and maintenanceUse a lightweight spreadsheet interface similar to ExcelOpen and save Microsoft Excel XLSX files with format compatibility
microsoft office alternative - wps office

Frequently Asked Questions

Why do chained comparisons fail for tier allocation in Excel?

Spreadsheet formulas do not evaluate chained comparisons like some programming languages. Use MIN to cap each tier and subtract the amounts already assigned instead.

What formula should I use when the input value is in E1?

With limits stored in D1:D3, use =MIN($D$1,E1) in B1, =MIN($D$2,MAX(0,E1-B1)) in B2, and =MIN($D$3,MAX(0,E1-B1-B2)) in B3.

How can I prevent a tier from returning a negative amount?

Wrap the remaining amount in MAX(0,...). For example, B2 uses =MIN($D$2,MAX(0,E1-B1)) so the result cannot be below zero.

Can I change the tier maximums without editing the formulas?

Yes. Store the maximums in D1:D3 and reference those cells with absolute references such as $D$1, $D$2, and $D$3. You can then update the limits directly in those cells.

What happens if the input exceeds the combined tier limits?

The formulas assign the maximum values to all three tiers. Any amount above the combined limit of 165 remains unallocated unless you add another tier or a separate remainder formula.