Function Problems

How to Return Values for Multiple Numeric Ranges in Excel

Adam DavisAdam Davis Oct 28, 2026 871 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Identify your data columns

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).

2
Enter the LOOKUP formula

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.

3
Apply to the entire column

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 the LOOKUP Function (For Sorted, Non-Overlapping Ranges)
Important Note on Maximum Bounds: This method ignores the maximum bounds column (Column E) completely, as LOOKUP inherently checks between the current minimum and the next minimum in the sorted list.
Efficient Spreadsheet Management

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. 1. Open your file in WPS: Launch WPS Spreadsheet and open your existing workbook containing the numeric ranges.
  2. 2. Organize your thresholds: Enter your minimum and maximum data bounds in separate columns, ensuring they are sorted from lowest to highest.
  3. 3. Apply the formula: Use the standard =LOOKUP() or =INDEX(MATCH()) formulas exactly as you would in Microsoft Excel.
  4. 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.
100% compatible with Microsoft Excel formulas (.xlsx files).Lightweight software that loads large datasets instantly without lag.Built-in data analysis tools to highlight range distributions.Completely free to use with a familiar, easy-to-navigate tabbed interface.
microsoft office alternative - wps office

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.