Function Problems

Fix Excel XLOOKUP Not Finding Decimal Values from SEQUENCE

Amos GikundaAmos Gikunda Nov 18, 2026 871 views

Question details

Find decimal values generated by SEQUENCE using XLOOKUP, MATCH, or VLOOKUP in Excel.

Fix Excel XLOOKUP Not Finding Decimal Values from SEQUENCE
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.
Before you start

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.

Solution 1Recommended

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.

1
Round the generated sequence

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.

2
Round the lookup value

In your XLOOKUP formula, wrap the value being searched in ROUND using the same precision. For a value in D2, use ROUND(D2,2).

3
Reference the spilled range

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.

4
Test the result

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.

Round the SEQUENCE results and lookup value
Choose precision for your data: Use two decimal places only when that is appropriate for the values being compared. Time values may require more decimal places because Excel stores times as fractions of a day.
Free Microsoft Office alternative

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.

Free and lightweight office suiteCompatible with Microsoft Excel XLSX and XLS filesFamiliar spreadsheet interface for moving from ExcelROUND formulas help make decimal lookup comparisons consistent
microsoft office alternative - wps office

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.