Formula Errors

Fix Excel VLOOKUP Returning the Wrong Date Result

Kushani NimanthikaKushani Nimanthika Nov 18, 2026 869 views

Question details

Find the correct value for a target date when an approximate VLOOKUP returns an unexpected result.

Fix Excel VLOOKUP Returning the Wrong Date 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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the closest-date formula

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.

2
Confirm the formula

Press Enter in current Excel versions. In older Excel versions, confirm the array formula with Ctrl+Shift+Enter.

3
Check the result

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.

Find the closest date with INDEX and MATCH
365 days versus one calendar year: Subtracting 365 days is not always the same as subtracting one calendar year. To target the same date one year earlier, replace A96-365 with EDATE(A96,-12) in both places.
Work with date lookups in WPS

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. 1. Open the workbook: In WPS Spreadsheets, choose Open and select your Excel workbook.
  2. 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. 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. 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.
Find a date closest to the target without relying on ascending sort order.Open and edit Microsoft Excel XLSX and XLS workbooks.Use familiar spreadsheet formulas and a menu-based interface.Use WPS Office for free.
microsoft office alternative - wps office

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.