Function Problems

Find the Lower Limit for a Value in an Excel Range

Bushra ParveenBushra Parveen Nov 18, 2026 870 views

Question details

Find the largest lower-limit value in an Excel range that is less than or equal to a given value.

Find the Lower Limit for a Value in an Excel Range
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.
Before you start

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.

Solution 1Recommended

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.

1
Arrange the values

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.

2
Enter the formula

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.

3
Check the result

Press Enter. For example, if the limits are 0, 10, and 20 and E2 is 15, F2 returns 10.

Use XLOOKUP to Find the Exact or Next Smaller Limit
Values below the minimum: If E2 is smaller than every limit, XLOOKUP returns #N/A. To show a message instead, enter =XLOOKUP(E2,$A$2:$A$12,$A$2:$A$12,"Below minimum",-1).
Find lower limits in WPS Spreadsheet

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. 1. Open the spreadsheet: Open WPS Spreadsheet and use File > Open to select your workbook.
  2. 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. 3. Enter the base value: Select E2 and type the value you want to check.
  4. 4. Calculate the lower limit: Select F2, enter =LOOKUP(E2,$A$2:$A$12), and press Enter.
Find exact or next-smaller limits with a LOOKUP formulaOpen and save Microsoft Excel XLSX and XLS filesWork with formulas in a familiar spreadsheet interface
microsoft office alternative - wps office

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.