How to Return the First Matching Date Using Multiple Criteria in Excel
Question details
The user needs to retrieve the first activity date from a dataset on another sheet based on multiple specific criteria, including application ID, activity type, and activity detail.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Extracting the earliest date from a large dataset that matches multiple specific textual and identifier conditions.
- Observed behavior
- The goal is to return a single matching date when three distinct columns satisfy complex AND/OR logic criteria.
Ensure that your application IDs and text values match exactly across both sheets, as trailing spaces or slight typos will cause the formula to return an empty result.
Use TAKE and FILTER Functions to Return the First Match
This is the most direct method to extract the first date matching multiple conditions by utilizing Excel's dynamic array functions.
Click on the cell where you want the matching date to be displayed.
Use the FILTER function to define your date column and apply criteria. Use asterisks (*) for AND logic and plus signs (+) for OR logic. Example: FILTER('Activity-Risk'!X:X, ('Activity-Risk'!A:A=A2)*('Activity-Risk'!O:O="Conversion Support")*(('Activity-Risk'!P:P="Arrange Engagement Call")+('Activity-Risk'!P:P="Arrange Interview")),"").
Enclose your FILTER formula within the TAKE function to limit the output to the very first matching row: =TAKE(FILTER(...), 1).
Press Enter to apply the formula. Right-click the cell, select Format Cells, and choose Date to ensure the serial number displays as a readable date.
Combine LET, FILTER, and XLOOKUP for Complex Datasets
For complex datasets where you need to filter records first and define dynamic lookups, the LET function can optimize performance.
Manage Complex Array Formulas Easily with WPS Spreadsheet
WPS Spreadsheet fully supports advanced dynamic array functions like TAKE, FILTER, and XLOOKUP, allowing you to solve complex multi-criteria data extraction across sheets seamlessly.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your data sheets.
- 2. Select the destination cell: Click on the exact cell where you want the first matching date to appear.
- 3. Enter the array formula: Type your TAKE and FILTER formula directly into the formula bar to process the multiple criteria.
- 4. Apply formatting: Press Enter, then use the format dropdown on the Home tab to display the extracted value as a Date.

Frequently Asked Questions
How do I apply OR logic within a multiple criteria formula?
In array formulas like FILTER, you can apply OR logic by enclosing each condition in parentheses and joining them with a plus sign (+). For example, (Range="Condition1")+(Range="Condition2") tells the formula to accept records matching either condition.
Why does my formula return an empty cell when I know the data exists?
This usually occurs because the lookup values do not match exactly. Hidden characters, leading/trailing spaces, or formatting discrepancies between the application IDs on the two sheets will prevent a match. Use the TRIM function or thoroughly check your source data for exact matches.
Can I use VLOOKUP with multiple criteria instead?
VLOOKUP natively supports only a single search criterion. To use it for multiple criteria, you would need to create a helper column that concatenates the criteria strings. Using FILTER or XLOOKUP is generally preferred as they do not require altering your dataset.
What if the TAKE function is not available in my version of Excel?
The TAKE function is available in newer versions like Microsoft 365. If you are using an older version, you can combine the INDEX, MATCH, and array formulas (using Ctrl+Shift+Enter) to locate the first matching date, though the syntax will be more complex.




