How to Return Values for Multiple Numeric Ranges in Excel
Question details
The user needs a dynamic Excel formula to check if a number falls within specified minimum and maximum ranges and return a corresponding value.
- Product
- Excel
- Device & OS
- not provided
- Scenario
- Categorizing or matching numeric inputs to specific tiers or results based on non-overlapping number ranges.
- Observed behavior
- The user requires a formula that can be dragged down a column to automatically update results when input values change.
Ensure your reference ranges do not overlap and that your minimum values are sorted in ascending order. This guarantees the lookup functions work correctly without returning incorrect tiers.
Use the LOOKUP Function (For Sorted, Non-Overlapping Ranges)
The simplest method when your minimum threshold values are sorted in ascending order.
When your data is structured with minimum values sorted from smallest to largest, the standard LOOKUP function is the most efficient choice. It automatically checks where your value falls between the thresholds.
Locate your lookup value cell (e.g., A2), the column containing your minimum thresholds (e.g., Column D), and the column with your desired return values (e.g., Column C).
Select the cell where you want the result to appear (e.g., B2). Type the formula: =LOOKUP(A2,D:D,C:C) and press Enter.
Click the bottom-right corner of cell B2 and drag the fill handle down to apply the formula to the rest of your dataset.

Use INDEX and MATCH (For Explicit Min/Max Bounds)
Ideal if your data isn't perfectly sorted or if you must explicitly check both minimum and maximum bounds.
Categorize Data Easily with WPS Spreadsheet
WPS Spreadsheet fully supports advanced lookup functions like LOOKUP, VLOOKUP, XLOOKUP, and complex array formulas like INDEX/MATCH. It provides a familiar, fast, and completely free environment to handle complex data ranges seamlessly.
- 1. Open your file in WPS: Launch WPS Spreadsheet and open your existing workbook containing the numeric ranges.
- 2. Organize your thresholds: Enter your minimum and maximum data bounds in separate columns, ensuring they are sorted from lowest to highest.
- 3. Apply the formula: Use the standard =LOOKUP() or =INDEX(MATCH()) formulas exactly as you would in Microsoft Excel.
- 4. Fill the column: Double-click the fill handle in the bottom right corner of the cell to instantly apply the formula to thousands of rows.

Frequently Asked Questions
Can I use VLOOKUP instead of LOOKUP for numeric ranges?
Yes, you can use VLOOKUP by setting the last argument to TRUE (approximate match). For example, =VLOOKUP(A2, $D$2:$F$15, 3, TRUE). This requires the minimum values in the first column to be sorted in ascending order.
Why is my INDEX MATCH formula returning an #N/A error?
The #N/A error usually means the lookup value does not fall within any of the specified bounds. Ensure your greater-than (>=) and less-than (<=) operators are pointed at the correct columns and check for gaps between your maximum and minimum ranges.
How do I handle overlapping numeric ranges?
If ranges overlap, a standard LOOKUP will generally return the last matching value. To prioritize a specific range over another, you should use nested IF statements or the IFS function to evaluate conditions in a strict, sequential order.




