Find the Lower Limit for a Value in an Excel Range
Question details
Find the largest lower-limit value in an Excel range that is less than or equal to a given value.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user has a list of numeric lower limits and wants to identify the applicable limit for a base value.
- Observed behavior
- The formula should return an exact match or the next smaller lower limit.
Enter the lower limits as numbers and sort them in ascending order. If the limits have associated data in adjacent columns, sort the entire table so the rows stay together.
Use XLOOKUP to Find the Exact or Next Smaller Limit
Use XLOOKUP when your Excel version supports it and you want an explicit next-smaller match.
Place the lower limits in A2:A12 and enter the base value in E2. Select the table and use Data > Sort to sort the limits from smallest to largest.
Select F2 and enter =XLOOKUP(E2,$A$2:$A$12,$A$2:$A$12,,-1). The -1 match mode returns an exact match or the next smaller value.
Press Enter. For example, if the limits are 0, 10, and 20 and E2 is 15, F2 returns 10.

Use LOOKUP in Older Excel Versions
Use LOOKUP for an approximate match in Excel versions that do not support XLOOKUP.
Find a Lower Limit with LOOKUP in WPS Spreadsheet
Use the LOOKUP function in WPS Spreadsheet to return the largest sorted lower limit that does not exceed your base value.
- 1. Open the spreadsheet: Open WPS Spreadsheet and use File > Open to select your workbook.
- 2. Prepare the limits: Put numeric lower limits in A2:A12, select the table, and use Data > Sort to arrange the limits from smallest to largest.
- 3. Enter the base value: Select E2 and type the value you want to check.
- 4. Calculate the lower limit: Select F2, enter =LOOKUP(E2,$A$2:$A$12), and press Enter.

Frequently Asked Questions
What happens if the base value matches a lower limit exactly?
Both =XLOOKUP(E2,$A$2:$A$12,$A$2:$A$12,,-1) and =LOOKUP(E2,$A$2:$A$12) return the matching limit.
Why does my formula return #N/A?
The base value may be below the smallest limit. Check E2 against the first numeric limit after sorting A2:A12 in ascending order.
Can I return a label associated with the lower limit?
Yes. If the labels are in B2:B12, use =XLOOKUP(E2,$A$2:$A$12,$B$2:$B$12,,-1) or =LOOKUP(E2,$A$2:$A$12,$B$2:$B$12). Sort both columns together to keep each label with its limit.
Does LOOKUP work if the limits are not sorted?
LOOKUP requires the limits in ascending order and can return an incorrect result otherwise. Select the full table and use Data > Sort before applying the formula.




