Function Problems

How to Fix Excel XLOOKUP When Retrieved Times Are Missing

Camila MilosovichCamila Milosovich Nov 11, 2026 868 views

Question details

The user needs to fix an XLOOKUP formula that fails to return the correct game times alongside team information.

How to Fix Excel XLOOKUP When Retrieved Times Are Missing
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.
Before you start

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'.

Solution 1Recommended

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.

1
Select the formula cell

Click on the cell containing the faulty XLOOKUP formula to make it active.

2
Inspect the formula arguments

Look at the formula bar and locate the third argument of your XLOOKUP function, which dictates the return array.

3
Adjust the return column

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).

4
Apply and drag

Press Enter to apply the correction, and then drag the fill handle down to update the rest of your column.

Correct the XLOOKUP Return Array
Absolute References: If you are using specific row numbers instead of whole columns (like A2:A100), ensure you lock the ranges using the F4 key (e.g., $A$2:$A$100) so the references do not shift when copying the formula down.
Effortless Data Lookup

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. 1. Open your workbook: Launch WPS Spreadsheet and open your existing Excel (.xlsx) schedule file.
  2. 2. Locate the error: Click on the cell containing the XLOOKUP formula and use the Formula bar to easily spot mismatched array ranges.
  3. 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. 4. Format times instantly: Select the result column, right-click, choose 'Format Cells', and select 'Time' to ensure properly retrieved numbers display correctly.
Fully supports XLOOKUP and advanced array functionsSeamless compatibility with Microsoft Excel (.xlsx) formatsBuilt-in data cleaning tools to effortlessly remove extra spacesLightweight software with a familiar, user-friendly interface
microsoft office alternative - wps office

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.