How to Return the Value from the Most Recent Populated Date Column in Excel
Question details
The user needs to retrieve the workload value from the most recently populated (last non-blank) dated column in an Excel worksheet.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking workload across multiple date columns where future dates are left blank, requiring a dynamic lookup for the latest entry.
- Observed behavior
- The formula must dynamically identify the latest populated column from right to left and return its value for a specific row.
Ensure your spreadsheet software supports the XLOOKUP function (available in Microsoft 365, Excel 2021, and newer versions) before applying this specific formula.
Use the XLOOKUP Function to Find the Last Populated Cell
This is the most efficient method to search from right to left and return the last non-blank value in a row.
The XLOOKUP function can easily handle right-to-left searches, allowing you to bypass blank future date columns and locate the most recent entry.
Click on the cell where you want the most recent workload value to be displayed (e.g., next to the person's name).
Type the formula: =XLOOKUP(TRUE,E4:ZZ4<>"",E4:ZZ4,,,-1). This assumes your data dates span from column E to ZZ in row 4.
Press Enter. The '-1' at the end of the formula acts as the search mode, forcing Excel to search from the last column back to the first, stopping at the first non-blank cell it encounters.

Use the LOOKUP Function for Older Versions
If you are using an older version of Excel that lacks the XLOOKUP function, you can use the traditional LOOKUP function as an alternative.
Easily Manage Complex Formulas with WPS Spreadsheet
WPS Office provides a powerful, free Spreadsheet tool that fully supports advanced functions like XLOOKUP. Manage your workload tracking and data extraction seamlessly with high compatibility.
- 1. Download and Install: Download WPS Office for free from the official website and install it on your device.
- 2. Open Your Workbook: Launch WPS Spreadsheet and open your existing workload tracking file.
- 3. Apply the Formula: Select the target cell and type your XLOOKUP formula to find the most recent date value exactly as you would in Excel.

Frequently Asked Questions
Why does my XLOOKUP formula return a #NAME? error?
The #NAME? error typically occurs if you are using a version of Excel that does not support the XLOOKUP function (versions older than Excel 2021 or Microsoft 365). If this happens, use the alternative LOOKUP formula provided in the guide.
How does the -1 argument work in the XLOOKUP function?
The -1 argument in XLOOKUP's 'search_mode' parameter tells the function to search the array from last to first (right to left). This ensures it finds the most recent populated column instead of the first one.
Can I use this formula to return the date instead of the workload value?
Yes. To return the actual date instead of the workload value, simply change the 'return_array' (the third argument in the XLOOKUP formula) to reference the row containing your date headers, such as =XLOOKUP(TRUE,E4:ZZ4<>"",E1:ZZ1,,,-1).




