How to Fix Excel XLOOKUP When Retrieved Times Are Missing
Question details
The user needs to fix an XLOOKUP formula that fails to return the correct game times alongside team information.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Using the XLOOKUP function to retrieve scheduled game times based on specific team names from a schedule sheet.
- Observed behavior
- The formula successfully returns team information but the associated time column appears missing, blank, or incorrect.
Verify that the source data actually contains the time values you are trying to retrieve, and ensure the destination cells are formatted as 'Time' rather than 'Text' or 'General'.
Correct the XLOOKUP Return Array
Ensure the formula's return array points exactly to the column containing the time values, rather than an empty or incorrect column.
One of the most common reasons XLOOKUP fails to display a specific value is an offset or incorrectly selected return array. If your formula is returning team names instead of times, or simply showing a blank result, the third argument in your XLOOKUP formula might be referencing the wrong column.
Click on the cell containing the faulty XLOOKUP formula to make it active.
Look at the formula bar and locate the third argument of your XLOOKUP function, which dictates the return array.
Modify the column letters in the return array to precisely match the column where the game times are stored (e.g., change =XLOOKUP(A2, Sheet2!A:A, Sheet2!C:C) to reference Sheet2!D:D if the times are in column D).
Press Enter to apply the correction, and then drag the fill handle down to update the rest of your column.

Remove Unintended Spaces from Lookup Text
Clean up leading or trailing spaces in the source data, as mismatched text formatting prevents XLOOKUP from finding the exact match.
Easily Manage Lookups and Clean Data with WPS Spreadsheet
WPS Spreadsheet provides powerful array functions like XLOOKUP, alongside built-in data cleaning tools to seamlessly manage your records. It is highly compatible with Microsoft Excel formats, allowing you to troubleshoot and resolve formula errors quickly.
- 1. Open your workbook: Launch WPS Spreadsheet and open your existing Excel (.xlsx) schedule file.
- 2. Locate the error: Click on the cell containing the XLOOKUP formula and use the Formula bar to easily spot mismatched array ranges.
- 3. Use formula evaluation: Navigate to the Formulas tab and select 'Evaluate Formula' to step through the XLOOKUP process and see exactly where the retrieval fails.
- 4. Format times instantly: Select the result column, right-click, choose 'Format Cells', and select 'Time' to ensure properly retrieved numbers display correctly.

Frequently Asked Questions
Why does my XLOOKUP return a 0 instead of a time value?
If the destination cell in the return array is genuinely empty, XLOOKUP will return a 0 by default. If this 0 is formatted as a time, it may display as '12:00 AM'. You can fix this by appending an IF statement or formatting the cell to hide zero values.
Can XLOOKUP search multiple criteria to find the exact game time?
Yes. You can concatenate multiple lookup values (e.g., Team & Date) in the first argument using the ampersand (&) symbol, and similarly concatenate the corresponding lookup arrays in the second argument to ensure you retrieve the time for a specific match.
How do I format the XLOOKUP result properly as a time?
If the formula returns a decimal number (like 0.75), select the cell, press Ctrl+1 to open the Format Cells dialog, select the 'Time' category, and choose your preferred 12-hour or 24-hour time format.
What if XLOOKUP returns #N/A even after I removed all spaces?
The #N/A error indicates that the lookup value still cannot be found. Double-check for spelling mistakes, hidden non-breaking spaces (which TRIM does not remove), or verify that your lookup array range fully covers the dataset you are searching.




