How to Combine Excel Date Lookup Formulas in Priority Order
Question details
The user needs to retrieve a payment date from multiple sources based on a priority sequence while ensuring blank source cells do not display as 00-Jan-00.

- Product
- Excel / WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- Tracking dates where data might exist in different logs (actual payment, invoiced date, original expected date), requiring a hierarchical fallback sequence.
- Observed behavior
- When retrieving dates from multiple sources, formulas may fail or return an invalid 00-Jan-00 date if a higher-priority source cell is blank or missing.
Ensure that all source data ranges and lookup references across your workbooks are formatted consistently and that the target cells are formatted as Dates.
Use Nested IFERROR with VLOOKUP Functions
Nesting IFERROR functions allows you to evaluate lookup formulas in sequence, returning the first valid date according to your priority.
By chaining IFERROR functions, you establish a clear hierarchy. If the first VLOOKUP (highest priority) fails to find a match, the formula moves to the second lookup, and so on. Appending an empty string at the very end prevents error codes from displaying when all lookups fail.
Click on the cell where you want the final priority date to be displayed.
Start your formula with the highest priority lookup wrapped in an IFERROR: =IFERROR(VLOOKUP(lookup_value, actual_date_range, col_index, 0), ...)
Replace the 'value_if_error' argument with your second lookup: IFERROR(VLOOKUP(lookup_value, invoiced_date_range, col_index, 0), ...)
Add your final fallback lookup and end the entire formula with ,"") to ensure that if no dates are found, the cell remains blank instead of showing an error.

Prevent 00-Jan-00 Dates for Blank Source Cells
Use nested IF statements to check if the lookup result is blank, preventing Excel from converting empty cells to the 00-Jan-00 date.
Master Complex Lookup Formulas with WPS Spreadsheet
WPS Spreadsheet fully supports advanced nested functions like IFERROR, VLOOKUP, and XLOOKUP. It seamlessly handles complex date priorities and blank cell logic with complete Microsoft Excel compatibility.
- 1. Open your data file: Launch WPS Spreadsheet and open the workbook containing your date logs.
- 2. Initiate the formula: Click on the target cell and type =IFERROR( to start building your nested priority formula.
- 3. Use the Formula Prompt: Take advantage of the integrated Formula Prompt to easily select ranges and ensure your syntax is correct across multiple linked sheets.
- 4. Apply down the column: Press Enter to calculate the first result, then drag the fill handle down to apply the priority logic to all remaining rows.

Frequently Asked Questions
Why does my Excel date lookup return 00-Jan-00?
This happens when the lookup function finds a match for your lookup value, but the target return cell is empty. Excel interprets the empty cell as a 0, which translates to January 0, 1900 in the date format. You can avoid this by appending an empty string check using an IF statement.
Does the order of nested IFERROR formulas matter?
Yes. Excel evaluates nested IFERROR formulas from left to right. The first condition or lookup that successfully returns a valid result will be displayed, and all subsequent lookups in the chain will be ignored.
Can I use XLOOKUP instead of VLOOKUP for priority sequences?
Yes. XLOOKUP has a built-in 'if_not_found' argument, which simplifies nested formulas by eliminating the need for IFERROR. You can nest subsequent XLOOKUPs directly within the 'if_not_found' parameter of the previous one.
How do I handle #N/A errors in my date lookup?
Wrapping your lookup formula in the IFERROR function will catch #N/A errors natively. You can specify a secondary lookup formula or simply use an empty string ("") as the fallback to display a blank cell instead of the error.




