Excel Formula to Apply a Variable Percentage Based on Cell Value
Question details
Apply a percentage rate based on a value's range and display the result as currency.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet needs to select a rate automatically from predefined value thresholds.
- Observed behavior
- The calculated amount should change with the value and appear in currency format.
Enter a nonnegative numeric value in B1 and decide which lower thresholds and percentage rates you want to use. The example thresholds are 0, 2001, 3501, and 5000.
Use LOOKUP to Select a Percentage Rate in Excel
Use this formula when one rate should apply to the entire value based on its range.
LOOKUP selects the rate associated with the largest threshold that is less than or equal to B1. In this example, the rates are 7% from 0, 8% from 2001, 9% from 3501, and 10% from 5000.
Select C1, enter =B1*LOOKUP(B1,{0,2001,3501,5000},{0.07,0.08,0.09,0.1}), and press Enter.
Select C1, then go to Home > Number and choose Currency from the number format list.
Edit the formula in C1 to add or change thresholds and corresponding rates. Keep the thresholds in ascending order and include one rate for each threshold.

Apply a Variable Percentage in WPS Spreadsheets
Use the same LOOKUP formula in WPS Spreadsheets to select a rate from value thresholds and display the result as currency.
- 1. Open a spreadsheet: Open WPS Spreadsheets and create a workbook or open an existing spreadsheet.
- 2. Enter a value: Select B1 and enter a nonnegative number.
- 3. Calculate the amount: Select C1, enter =B1*LOOKUP(B1,{0,2001,3501,5000},{0.07,0.08,0.09,0.1}), and press Enter.
- 4. Apply currency formatting: Select C1 and use the number format controls on the Home tab to choose Currency.

Frequently Asked Questions
Which rate applies when the value is exactly 3501?
The formula applies 9%, because LOOKUP matches the threshold of 3501. A value of 5000 or more receives 10%.
How do I add another percentage range?
Edit the formula in C1 and add the new lower threshold to the first array and its matching rate to the second array. Keep the thresholds in ascending order and the arrays the same length.
Why does the formula return #N/A for a negative value?
The first threshold is 0, so LOOKUP cannot find a matching threshold for a value below 0. Add a lower threshold and its corresponding rate if your calculation allows negative values.
Does this formula calculate a progressive rate?
No. It multiplies the entire value in B1 by the single rate selected by LOOKUP. A progressive calculation requires a different formula that applies rates to separate portions of the value.




