logo
search
Function Problems

How to Find the Range Name for a Value Between Two Numbers in Excel

Maira MehtabMaira Mehtab Sep 21, 2026 871 views

Question details

The user needs to look up a specific value against separate range-start and range-end columns to find its corresponding category or range name.

Product
Excel
Device & OS
not provided
Scenario
Categorizing or matching a specific number into predefined numeric tiers that are spread across separate start and end columns.
Observed behavior
A standard VLOOKUP fails to return accurate results because the lookup must evaluate two separate conditions (start and end values), especially when the defined ranges are not continuous.
Before you start

Verify that your numeric ranges do not overlap to prevent multiple conflicting matches, and check your Excel version to see if modern array functions like XLOOKUP are supported.

Solution 1Recommended

Use INDEX and MATCH for a Two-Condition Lookup

This method utilizes an array-based INDEX and MATCH combination to check both range-start and range-end columns simultaneously. It works well across most versions of Excel.

By multiplying two logical conditions, Excel creates an array of 1s and 0s. The MATCH function then looks for the number 1, identifying the exact row where both the start and end conditions are true.

1
Define named ranges

Select your columns and use the Name Box (next to the formula bar) to define optional names for your ranges. For example, name A2:A6 as RangeStart, B2:B6 as RangeEnd, and C2:C6 as RangeName.

2
Enter the formula

Select your output cell (e.g., F2) and type the formula: =IFERROR(INDEX(RangeName,MATCH(1,(E2>RangeStart)*(E2<RangeEnd),0)),"Not Found"). Adjust the > and < to >= and <= if the boundary numbers are inclusive.

3
Evaluate the array

If you are using an older version of Excel, you must press Ctrl+Shift+Enter instead of just Enter to evaluate this as an array formula.

Easily Find Values Between Two Numbers in WPS Spreadsheet

WPS Spreadsheet fully supports advanced array formulas, INDEX/MATCH combinations, and modern lookup functions, allowing you to seamlessly process complex multi-condition data lookups without hassle.

  1. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your Excel workbook containing the numeric ranges.
  2. 2. Apply the lookup formula: Select your destination cell and input the multi-condition INDEX/MATCH or XLOOKUP formula.
  3. 3. Press Enter to evaluate: WPS Spreadsheet instantly processes the boolean array logic and retrieves the accurate range name.
100% compatibility with Microsoft Excel formulas and array functions.Supports modern functions like XLOOKUP for efficient data querying.Lightweight software with a familiar interface that requires zero learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my XLOOKUP formula return a #NAME? error?

The #NAME? error occurs if your version of Excel does not support the XLOOKUP function. XLOOKUP is only available in Microsoft 365 and Excel 2021 or newer. If you are on an older version, use the INDEX and MATCH array method.

Can I use VLOOKUP to find a value between two numbers?

Yes, but only if your numeric ranges are completely continuous (without gaps) and sorted in ascending order. If these conditions are met, you can use VLOOKUP with the approximate match argument (TRUE or 1) based on just the start column.

How does the boolean logic (E2>=RangeStart)*(E2<=RangeEnd) work?

It evaluates each condition separately, creating two arrays of TRUE (1) and FALSE (0) values. Multiplying them acts like an AND operator; 1*1 equals 1 (both conditions met), while any other combination results in 0. The formula then searches for the number 1 to find the correct row.