Fix Excel VLOOKUP Returning the Wrong Date Result
Question details
Find the correct value for a target date when an approximate VLOOKUP returns an unexpected result.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet looks up a date approximately 365 days before the date in A96 and returns a value from a table sorted by date in descending order.
- Observed behavior
- VLOOKUP with an approximate match returns a value from the bottom of the date table instead of the expected result.
Check that the lookup dates are real Excel dates, not text, and identify the date column and corresponding return-value column. The examples use dates in A96:A115 and values in B96:B115; adjust both ranges to match your table.
Find the closest date with INDEX and MATCH
Use this formula when you want the date with the smallest difference from the target, whether it falls before or after it.
Select the result cell and enter =INDEX(B96:B115,MATCH(MIN(ABS(A96-365-A96:A115)),ABS(A96-365-A96:A115),0)). Replace the ranges if your table is elsewhere.
Press Enter in current Excel versions. In older Excel versions, confirm the array formula with Ctrl+Shift+Enter.
Compare the returned value with the date in column A closest to A96 minus 365 days. If two dates are equally close, MATCH returns the first one in the range.

Use INDEX and MATCH with descending dates
Use this option when the desired match is the smallest date greater than or equal to the target, rather than necessarily the closest date.
Sort dates ascending for approximate VLOOKUP
Use VLOOKUP when you want the latest date on or before the target and can sort the table from oldest to newest.
Find the Closest Lookup Date in WPS Spreadsheets
Open your workbook in WPS Spreadsheets and use INDEX and MATCH to return the value associated with the closest date.
- 1. Open the workbook: In WPS Spreadsheets, choose Open and select your Excel workbook.
- 2. Check the ranges: Locate the date column and the corresponding return-value column, and confirm that the date cells contain dates rather than text.
- 3. Enter the formula: Select the result cell and enter =INDEX(B96:B115,MATCH(MIN(ABS(A96-365-A96:A115)),ABS(A96-365-A96:A115),0)), adjusting the ranges as needed.
- 4. Confirm and review: Press Enter; if your WPS version requires an array formula, use Ctrl+Shift+Enter. Check that the returned value corresponds to the closest date.

Frequently Asked Questions
Why does approximate VLOOKUP return the wrong date?
VLOOKUP with TRUE assumes the first column of the lookup range is sorted in ascending order. Select the full table and use Data > Sort to arrange its dates from oldest to newest, or use a formula designed for descending dates.
Does MATCH with -1 find the closest date?
No. With dates sorted in descending order, MATCH with -1 finds the smallest date greater than or equal to the target. Use the MIN and ABS array formula when you need the closest date on either side.
What if the closest-date formula returns an error?
Check that the date cells and target are numeric Excel dates and that the date and return ranges have the same number of rows. In older Excel versions, select the formula cell and confirm it with Ctrl+Shift+Enter.
How can I look up one calendar year earlier instead of 365 days earlier?
Replace A96-365 with EDATE(A96,-12) in the formula. In the closest-date formula, make the replacement in both places where A96-365 appears.




