How to Find the Latest Date for Partial Text Matches in Excel
Question details
The user needs an Excel formula that looks for a partial text value from cell A2 within column E and returns the latest matching date from column F.
- Product
- WPS Office Spreadsheets
- Device & OS
- not provided
- Scenario
- The user has text entries in column E and accounting dates in column F, and wants to retrieve the most recent date whose corresponding text contains the value in A2.
- Observed behavior
- Older Excel versions require the formula to be entered as a CSE array formula; newer dynamic array versions allow the formula to be entered normally.
Make sure the lookup text is in A2, the text strings are in E1:E11, and the dates in F1:F11 are true date values rather than text-formatted dates.
Use the INDEX-MATCH-MAX-IF array formula to return the latest matching date
Use this formula in classic Excel versions or when you need a single-cell result. In older Excel versions, enter it as an array formula with Ctrl+Shift+Enter.
This formula checks whether the text in A2 appears anywhere inside each cell in column E with FIND, then evaluates only the matching rows in column F. MAX returns the latest date, and INDEX-MATCH retrieves that date cell cleanly, with IFERROR hiding errors when no match exists.
Click the empty cell where you want the latest date to appear, for example G2.
Type or paste: =IFERROR(INDEX($F$1:$F$11,MATCH(MAX(IF(ISNUMBER(FIND(A2,$E$1:$E$11)),$F$1:$F$11)),IF(ISNUMBER(FIND(A2,$E$1:$E$11)),$F$1:$F$11),0)),"")
In older Excel versions, press Ctrl+Shift+Enter instead of Enter. In newer Excel versions or WPS Office Spreadsheets that support dynamic arrays, pressing Enter is enough.

Find the Latest Partial-Text Date with WPS Office Spreadsheets
You can use the same INDEX-MATCH-MAX-IF array formula in WPS Office Spreadsheets to return the latest date for partial text matches. WPS Office supports Excel-compatible formulas, so your workbook and formulas work without switching tools.
- 1. Open your workbook in WPS Office Spreadsheets: Launch WPS Office and open the .xlsx or .xls file containing the text list in column E and dates in column F.
- 2. Select the result cell: Click an empty cell, such as G2, where the latest matching date should be shown.
- 3. Enter the formula: Type or paste =IFERROR(INDEX($F$1:$F$11,MATCH(MAX(IF(ISNUMBER(FIND(A2,$E$1:$E$11)),$F$1:$F$11)),IF(ISNUMBER(FIND(A2,$E$1:$E$11)),$F$1:$F$11),0)),"") and press Enter. For legacy compatibility, use Ctrl+Shift+Enter.
- 4. Confirm the result: Check that the cell displays the latest date from column F where the corresponding column E cell contains the text in A2.

Frequently Asked Questions
Why do I need Ctrl+Shift+Enter in older Excel?
Because older Excel evaluates IF over a range only as an array formula. Ctrl+Shift+Enter tells Excel to calculate the formula element by element; in newer dynamic array versions and WPS Office Spreadsheets, ordinary Enter usually works.
Does this formula work if column F dates are formatted as text?
No. Text-formatted dates may not work with MAX because they are not numeric date values. Convert them to real dates or use a date-conversion method first.
How do I change the formula if my data continues beyond row 11?
Replace $F$1:$F$11 and $E$1:$E$11 with your full range, for example $F$1:$F$100 and $E$1:$E$100, keeping the same range size in both references.
Can I perform a case-insensitive partial match?
Yes. Replace FIND with SEARCH in the formula. SEARCH is not case-sensitive, while FIND is case-sensitive.
What happens if there is no matching text?
IFERROR returns an empty string, so the result cell appears blank instead of showing an #N/A error.




