How to Return Values Based on Amount Thresholds Using Excel Formulas
Question details
The user needs to automatically return specific assigned values (0, 300, 400, or 500) based on numerical thresholds entered in a corresponding column.
- Product
- Excel
- Device & OS
- not provided
- Scenario
- Categorizing or scoring numerical data based on predefined tiers or amount thresholds.
- Observed behavior
- The user is seeking a dynamic formula that evaluates the input amount against specific conditions and outputs the correct tier value.
Ensure that the data in your reference column consists of standard numerical values; numbers formatted as text may prevent comparison formulas from calculating accurately.
Use Nested IF Formulas for Conditional Thresholds
The nested IF function evaluates multiple conditions in sequence. It is highly compatible across all spreadsheet software versions and perfect for evaluating layered threshold tiers.
When using nested IFs for thresholds, it is important to order your conditions logically. In this case, checking from the smallest threshold to the largest ensures the formula stops at the correct matching tier.
Click on cell B1 (or the cell directly adjacent to your first data point in Column A) where you want the calculated value to appear.
Type the following formula into the formula bar: =IF(A1<3000,0,IF(A1<4000,300,IF(A1<5000,400,500)))
Press Enter to execute the formula. Then, click and drag the fill handle at the bottom-right corner of the cell to copy the formula down to the remaining rows.
Use the XLOOKUP Function for Modern Excel Versions
XLOOKUP provides a cleaner alternative to nested IFs and is much easier to maintain or expand when you need to add more thresholds.
Use the Classic LOOKUP Function for Legacy Compatibility
If you are using an older version of Excel that does not support XLOOKUP, the standard vector LOOKUP function is perfect for assigning threshold values.
Easily Calculate Complex Threshold Formulas with WPS Spreadsheet
WPS Spreadsheet fully supports all advanced data analysis functions including IF, LOOKUP, and XLOOKUP, allowing you to categorize data with dynamic thresholds effortlessly.
- 1. Open your dataset: Launch WPS Spreadsheet and open the document containing your threshold data.
- 2. Input the formula: Select the target cell and type your preferred formula, such as =IF(A1<3000,0,IF(A1<4000,300,IF(A1<5000,400,500))).
- 3. Fill down the column: Press Enter, then drag the fill handle from the corner of the cell to apply the calculation to the rest of the column automatically.

Frequently Asked Questions
Why is my IF formula returning an error instead of the assigned value?
This usually happens due to syntax errors, such as missing commas or mismatched parentheses. It can also occur if the logical tests are sequenced incorrectly. When testing for 'less than' (<), you must arrange your thresholds from smallest to largest.
Can I reference cells instead of hardcoding the threshold values inside the formula?
Yes. Instead of typing the arrays like {3000,4000,5000} directly into an XLOOKUP or nested IF formula, you can list these values in a separate range on your worksheet. Use absolute references (e.g., $D$1:$D$3) in your formula to make future updates much easier.
Does the XLOOKUP formula work in older versions of Excel?
No, XLOOKUP was introduced recently and is only available in Microsoft 365, Excel 2021, and newer versions. If you are using Excel 2019 or earlier, you should use the classic LOOKUP function or nested IF formulas to achieve the same result.




