Function Problems

How to Apply a Percentage Based on a Volume Range in Excel

Tauseeq MagsiTauseeq Magsi Nov 10, 2026 868 views

Question details

The user needs to calculate a final value by multiplying a given volume by one minus a specific percentage, where the correct percentage is dynamically retrieved based on predefined volume range thresholds.

How to Apply a Percentage Based on a Volume Range in Excel
Product
Excel
Device & OS
not provided
Scenario
Calculating tiered pricing, progressive discounts, or scalable commissions based on fluctuating volume amounts.
Observed behavior
A dynamic formula is required to look up the correct percentage for a specific volume bracket and execute the mathematical calculation without returning errors for the lowest volume values.
Before you start

Ensure you have your primary volume data ready and create a separate two-column lookup table containing your ascending volume thresholds and their corresponding percentage rates.

Solution 1Recommended

Use XLOOKUP with Approximate Match

Create an ascending lookup table and use the XLOOKUP function to find the exact or next smaller volume threshold, then apply the associated percentage to your calculation.

By utilizing the XLOOKUP function with an exact match or next smaller item search mode, you can easily map continuous volume ranges to their respective percentage discounts or modifiers.

1
Create a lookup table

In an empty area of your spreadsheet, set up a two-column table. Enter the volume thresholds in ascending order in the first column, and the corresponding percentages in the second column. Make sure to start with a threshold of 0.

2
Select the result cell

Click on the cell where you want the final calculated value (e.g., discounted volume) to appear.

3
Enter the XLOOKUP formula

Type the formula =Volume*(1-XLOOKUP(Volume, Thresholds, Percentages, , -1)). Replace 'Volume' with your target cell reference, 'Thresholds' with the absolute range of your threshold column, and 'Percentages' with the absolute range of your percentage column.

4
Apply and drag

Press Enter to execute the calculation. Use the fill handle at the bottom-right of the cell to drag the formula down to apply it to the rest of your volume data.

Use XLOOKUP with Approximate Match
Minimum Threshold: Always include a threshold of zero (or your lowest possible expected volume) in your lookup table. This prevents XLOOKUP from returning an #N/A error when evaluating volumes smaller than the first expected tier.
WPS Spreadsheet Solution

Calculate Volume Ranges Easily in WPS Spreadsheet

WPS Spreadsheet fully supports advanced array formulas and modern lookup functions like XLOOKUP. You can easily calculate complex, tiered percentages based on volume ranges without having to convert or rebuild your Excel workbooks.

  1. 1. Open your dataset: Launch WPS Spreadsheet and open the file containing your volume numbers and threshold rules.
  2. 2. Construct the threshold table: Input your volume thresholds and corresponding percentages into two adjacent columns, ensuring they are sorted in ascending order.
  3. 3. Apply the calculation formula: In your target output cell, type =A2*(1-XLOOKUP(A2,$E$2:$E$5,$F$2:$F$5,,-1)), substituting A2 with your actual volume cell and the E/F ranges with your actual threshold table.
  4. 4. Fill the data series: Press Enter, then double-click the green fill handle in the corner of the cell to cascade the calculation to all rows.
100% compatible with Microsoft Excel formulas, including XLOOKUP, VLOOKUP, and INDEX/MATCH.Lightweight architecture ensures quick calculation of complex formulas across large datasets.Completely free to use with an intuitive, familiar user interface for immediate productivity.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use VLOOKUP instead of XLOOKUP for volume ranges?

Yes, you can use VLOOKUP with an approximate match. Set the final argument of the VLOOKUP formula to TRUE (or 1). However, the threshold table must be sorted strictly in ascending order for VLOOKUP to return accurate results, whereas XLOOKUP offers more flexibility.

Why is my XLOOKUP formula returning an #N/A error?

This error typically occurs if the evaluated volume is smaller than the lowest value in your lookup array, and there is no default fallback. Adding a starting threshold of zero to your lookup table will resolve this issue.

How do I calculate volume pricing with a tiered discount rather than a flat percentage applied to the whole volume?

Tiered or progressive pricing (where different portions of the volume are charged at different rates) requires a more advanced formula using SUMPRODUCT, combined with a table that tracks the marginal rate difference between each tier, rather than a straightforward XLOOKUP.