Fix Excel XLOOKUP Not Finding Decimal Values from SEQUENCE
Question details
Find decimal values generated by SEQUENCE using XLOOKUP, MATCH, or VLOOKUP in Excel.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A lookup formula searches for a decimal value in a range generated by SEQUENCE.
- Observed behavior
- The lookup may fail to find a value that appears to match because the calculated decimal values differ in floating-point precision.
Check how many decimal places are meaningful for your data and identify the cell containing the SEQUENCE formula. Make sure the intended return range has one corresponding entry for each generated value.
Round the SEQUENCE results and lookup value
Use this approach when values look identical but exact-match lookups fail because of floating-point precision.
Excel stores many decimal fractions as approximations. Formatting a cell to show fewer decimal places changes its appearance, but does not change the stored value used in a lookup.
Select the cell containing SEQUENCE and wrap the formula in ROUND. For example, enter =ROUND(SEQUENCE(31,1,0.85,0.01),2) in A2 to generate values rounded to two decimal places.
In your XLOOKUP formula, wrap the value being searched in ROUND using the same precision. For a value in D2, use ROUND(D2,2).
If the rounded sequence starts in A2 and its 31 corresponding results are in B2:B32, enter =XLOOKUP(ROUND(D2,2),A2#,B2:B32,"Not found"). The # refers to the entire spilled sequence.
Enter a value such as 0.90 in D2 and confirm that XLOOKUP returns the corresponding entry from B2:B32. Adjust the rounding precision if two distinct values would otherwise become identical.

Work with Decimal Lookups in WPS Spreadsheets
WPS Office is a free, lightweight alternative for working with spreadsheets in a familiar interface. Open Excel files in WPS Spreadsheets for a smooth transition, and use appropriate rounding when comparing calculated decimal values.

Frequently Asked Questions
Why does XLOOKUP miss a decimal value that looks identical?
Calculated decimals can have small floating-point differences even when cells display the same value. Wrap both the SEQUENCE formula and the lookup value in ROUND using the same number of decimal places.
Can I use the same fix with MATCH or VLOOKUP?
Yes. Round the lookup value and the values in the lookup range to the same precision. Use MATCH with 0 for an exact match, or VLOOKUP with FALSE for an exact match; for VLOOKUP, the rounded lookup values must be in the first column of the table.
What does A2# mean in the XLOOKUP formula?
A2# refers to the full array spilled from the formula in A2. Use it as the lookup array and make sure the return range has the same number of rows.
Will changing the number format fix the lookup?
No. The Home tab's number-format controls change what you see, not the stored value. Use ROUND in the formulas to change the values being compared.
How many decimal places should I use for time values?
Choose enough decimal places to preserve the distinctions your data needs. Excel stores times as fractions of a day, so rounding to two decimal places may be too coarse; test a higher precision such as five decimal places if appropriate.




