A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I have found solution other place.
what i have done is to put «ROUND» on dates with time.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
XLOOKUP could not find date range when dates are in formula
And when i copy the date value to another column , I have to click to each cell and click enter to each dates in column to get correct return value.
please help. maybe there is another way than XLOOKUP I should use.
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I have found solution other place.
what i have done is to put «ROUND» on dates with time.
Hi,
Additionally, ensure that the calculation mode is set to automatic.
Hello Angko Hayes,
Thank you for reaching out in Microsoft Q&A forum.
I understand you're trying to use XLOOKUP with dates that come from formulas and it doesn’t return the correct result, even after copying the values.
XLOOKUP can only match correctly when the lookup values are true Excel date‑serial numbers. When a date is created by another formula, sometimes the result is text instead of a real date, and XLOOKUP cannot match text against date‑serial numbers. That is why XLOOKUP only works again after you click each cell and press Enter.
To fix this without re‑entering every date manually, convert the formula results into actual dates:
If you prefer a formula‑only solution, wrap your date formula in DATEVALUE(), for example: =DATEVALUE(your_formula_here)
Or, if your lookup range may contain mixed types, use: =XLOOKUP(--lookup_cell, --lookup_range, return_range)
(The double minus converts text to real numbers/dates so XLOOKUP can match consistently.)
Hope this helps
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread
It seems that you are experiencing issues with the XLOOKUP function when working with date ranges in Excel. Here are a few suggestions that might help you resolve the problem:
DATEVALUE function. This can help ensure that all dates are recognized correctly.INDEX and MATCH to achieve similar results. For example:
=INDEX(return_range, MATCH(lookup_value, lookup_range, 0))
This combination can sometimes handle date lookups more effectively, especially if you are dealing with ranges.CTRL + ALT + F9. This can help ensure that all formulas are up to date.Application.Volatile in your VBA code. This will ensure that the function recalculates whenever changes are made in the workbook.If these suggestions do not resolve your issue, please provide more details about the specific formulas and data you are working with for further assistance.
References: